OpenTelemetry¶
The exporter uses OpenTelemetry for tracing only. Metrics are exposed via
Prometheus at /metrics and are not exported through OTEL.
Enable OTEL Tracing¶
export MERAKI_EXPORTER_OTEL__ENABLED=true
export MERAKI_EXPORTER_OTEL__ENDPOINT=http://localhost:4317
# Optional
export MERAKI_EXPORTER_OTEL__SERVICE_NAME=meraki-dashboard-exporter
export MERAKI_EXPORTER_OTEL__RESOURCE_ATTRIBUTES='{"environment":"production"}'
- Endpoint: OTLP gRPC (
http://host:4317). The exporter connects withinsecure=True, so a plaintext (non-TLS) gRPC endpoint is required. Terminate TLS at a sidecar or local OpenTelemetry Collector if you need encryption in transit. - Required:
ENABLED=truerequiresENDPOINT; startup will fail without it. - Resource attributes: JSON string of key/value pairs. The
environmentkey is promoted to thedeployment.environmentresource attribute (defaults toproduction).
Tracing Configuration¶
Tracing is enabled whenever OTEL is enabled (with a valid endpoint). You can configure sampling:
SAMPLING_RATE is read directly from the environment at tracer-provider
initialization; it is not part of the pydantic settings schema, so it does not
appear in --help output but the MERAKI_EXPORTER_OTEL__ prefix is still
required.
See Tracing for details on spans, sampling behavior, and instrumented components.