Connect Command
Launch the collector as a server to connect configured sources to sinks.
The connect command runs the collector in server mode, enabling configured sources to collect events and dispatch them to configured sinks through the pipeline. This is the primary operational mode for continuous event processing in production environments.
Usage
cdviz-collector connect [OPTIONS]Launch collector as a server to connect sources to sinks.
Runs the collector in server mode, enabling configured sources to collect events and dispatch them to configured sinks through the pipeline. The server provides HTTP endpoints for webhook sources and SSE sinks.
Usage: cdviz-collector connect [OPTIONS]
Options:
--config <CONFIG>
Configuration file path or HTTP/HTTPS URL for sources, sinks, and transformers.
Specifies the TOML configuration that defines the pipeline behavior. If not provided, the collector will use the base configuration with default settings. The configuration can also be specified via the `CDVIZ_COLLECTOR_CONFIG` environment variable.
Example: `--config cdviz-collector.toml` Example: `--config https://config.example.com/cdviz.toml`
[env: CDVIZ_COLLECTOR_CONFIG=]
-v, --verbose...
Increase logging verbosity
--config-header <CONFIG_HEADERS>
HTTP headers to use when fetching config from a URL.
Format: `"Header-Name: value"`. Can be repeated. Example: `--config-header "Authorization: Bearer token"`
-q, --quiet...
Decrease logging verbosity
--disable-otel
Disable OpenTelemetry initialization and use minimal tracing setup.
This is useful for testing environments or when you want to avoid OpenTelemetry overhead. When disabled, only basic console logging will be available without distributed tracing capabilities.
--set <SET>
Override individual config key/value pairs.
Format: `key=value`. Can be repeated. Values are auto-typed: `true`/`false` → bool, integers → int, decimals → float, everything else → quoted string.
Example: `--set sources.my-source.enabled=true`
-C, --directory <DIRECTORY>
Change working directory before executing the command.
This affects relative paths in configuration files and data files. Useful when running the collector from a different location than where your configuration and data files are located.
-h, --help
Print help (see a summary with '-h')TIP
See Configuration Guide for complete configuration reference and examples.
Server Features
When running, the server provides HTTP endpoints for:
- Webhook Sources - Receive events from external systems at
POST /webhook/{id} - SSE Sinks - Real-time event streaming to subscribers at
GET /sse/{id} - Health Checks - Liveness probe at
GET /healthzfor Kubernetes and load balancers
The exact endpoints depend on your configuration.
Common Usage
Development
# Start with verbose logging
cdviz-collector connect --config dev-config.toml --verboseProduction
# Production with specific working directory
cdviz-collector connect \
--config /etc/cdviz/config.toml \
--directory /opt/cdvizTesting
# Disable OpenTelemetry for testing
cdviz-collector connect --config test-config.toml --disable-otelObservability
Logging Control
# Increase verbosity (can use multiple times: -vvv)
cdviz-collector connect --config config.toml --verbose
# Quiet mode
cdviz-collector connect --config config.toml --quietOpenTelemetry
OpenTelemetry is enabled by default for distributed tracing and metrics. Configure the OTLP endpoint via environment variable:
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 cdviz-collector connect --config config.tomlDisable in environments without an OTLP receiver:
cdviz-collector connect --config config.toml --disable-otelKubernetes Deployment
In Kubernetes, connect is the entry point for the deployed pod. The health endpoint supports readiness/liveness probes:
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 2
periodSeconds: 30
readinessProbe:
httpGet:
path: /readyz
port: 8080
initialDelaySeconds: 3
periodSeconds: 10See Installation for Helm chart configuration.
Environment Variable Configuration
Any config value can be set or overridden via environment variables using the pattern CDVIZ_COLLECTOR__<SECTION>__<KEY> — the key does not need to exist in the TOML file:
# Set database URL (no TOML entry needed)
CDVIZ_COLLECTOR__SINKS__DATABASE__URL="postgresql://prod-db:5432/cdviz" \
cdviz-collector connect --config config.toml
# Enable specific sink at runtime
CDVIZ_COLLECTOR__SINKS__DATABASE__ENABLED="true" \
cdviz-collector connect --config config.tomlRelated
- Configuration Guide — full TOML config reference
- Installation — Helm chart and Docker setup
- Send Command — one-shot event delivery without starting a server
- Troubleshooting — common issues and solutions