Opentelemetry Collector K8S
Platform:
| Channel | Revision | Published | Runs on |
|---|---|---|---|
| 0.130/stable | 272 | 17 Sep 2026 | |
| 0.130/stable | 271 | 17 Sep 2026 | |
| 0.130/candidate | 331 | Today | |
| 0.130/candidate | 332 | Today | |
| 0.130/beta | 331 | Today | |
| 0.130/beta | 332 | Today | |
| 0.130/edge | 332 | Yesterday | |
| 0.130/edge | 331 | Yesterday | |
| dev/edge | 333 | Yesterday | |
| dev/edge | 334 | Yesterday | |
| 2/stable | 210 | 07 Jul 2026 | |
| 2/stable | 209 | 07 Jul 2026 | |
| 2/candidate | 283 | 10 Oct 2026 | |
| 2/candidate | 284 | 10 Oct 2026 | |
| 2/beta | 283 | 10 Oct 2026 | |
| 2/beta | 284 | 10 Oct 2026 | |
| 2/edge | 284 | 09 Oct 2026 | |
| 2/edge | 283 | 09 Oct 2026 | |
| 1/stable | 32 | 06 Aug 2025 | |
| 1/stable | 31 | 06 Aug 2025 | |
| 1/candidate | 32 | 06 Aug 2025 | |
| 1/candidate | 31 | 06 Aug 2025 | |
| 1/beta | 32 | 06 Aug 2025 | |
| 1/beta | 31 | 06 Aug 2025 | |
| 1/edge | 32 | 14 May 2025 | |
| 1/edge | 31 | 14 May 2025 |
juju deploy opentelemetry-collector-k8s --channel dev/edge
-
always_enable_jaeger_grpc | boolean
Force-enable the receiver for the 'jaeger_grpc' protocol in OpenTelemetry Collector, even if there is no integration currently requesting it.
-
always_enable_jaeger_thrift_http | boolean
Force-enable the receiver for the 'jaeger_thrift_http' protocol in OpenTelemetry Collector, even if there is no integration currently requesting it.
-
always_enable_zipkin | boolean
Force-enable the receiver for the 'zipkin' protocol in OpenTelemetry Collector, even if there is no integration currently requesting it.
-
cpu | string
DEPRECATED: this option has no effect and will be removed in a future release. The charm no longer sets Kubernetes resource limits. Use Juju constraints instead, for example
juju deploy --constraints cpu-power=500for 500 millicores. -
debug_exporter_for_logs | boolean
Add a debug exporter to the logs pipeline of the OpenTelemetry Collector config. WARNING: Using the debug exporter in a production environment is discouraged, as it will write all collected telemetry to stdout, i.e. to syslog, which is likely to cause log flooding. This can be avoided with the correct usage of the
path_excludeconfig option. -
debug_exporter_for_metrics | boolean
Add a debug exporter to the metrics pipeline of the OpenTelemetry Collector config. WARNING: Using the debug exporter in a production environment is discouraged, as it will write all collected telemetry to stdout, i.e. to syslog, which is likely to cause log flooding. This can be avoided with the correct usage of the
path_excludeconfig option. -
debug_exporter_for_traces | boolean
Add a debug exporter to the traces pipeline of the OpenTelemetry Collector config. WARNING: Using the debug exporter in a production environment is discouraged, as it will write all collected telemetry to stdout, i.e. to syslog, which is likely to cause log flooding. This can be avoided with the correct usage of the
path_excludeconfig option. -
extra_alert_labels | string
Comma separated key-value pairs of labels to be added to all alerts. This could be useful for differentiating between staging and production environments.
-
forward_alert_rules | boolean
Default: True
Toggle forwarding of alert rules.
-
global_scrape_interval | string
Default: 1m
How frequently should instances be scraped. Supported units: y, w, d, h, m, s.
-
global_scrape_timeout | string
Default: 10s
How long to wait before timing out a scrape from a target. Supported units: y, w, d, h, m, s.
-
loki_extra_labels | string
Comma separated log attribute names to promote to Loki labels, in addition to the charm's defaults (the Juju topology labels and the Pebble log-forwarding labels). Use this to keep custom labels a workload declares on its Pebble log targets queryable in Loki, for example
loki_extra_labels="foo, bar". Promoted labels are indexed by Loki, so keep their cardinality bounded. -
max_elapsed_time_min | int
Default: 5
Maximum time in minutes to wait for the storage backend. After this time, data loss will occur.
-
memory | string
The memory available to otelcol, as a Kubernetes quantity, for example "1Gi" or "500M". If unset, the memory limit of the otelcol container is used. This option can only lower it: a higher value is capped to the memory of the container. This option does not set a Kubernetes resource limit.
The memory limiter processor is added to all pipelines, unless the "processors" config option provides one. Its hard limit is 80% of the memory. Ref: https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterprocessor
To get a meaningful limit, set a memory limit on the otelcol container with a Juju constraint at deploy time, for example
juju deploy --constraints mem=1024M. Without it, the container is not limited and the memory of the whole node is used, so otelcol is likely to be killed for lack of memory before the limiter takes action. -
processors | string
A global opentelemetry-collector "processors" config in YAML format, without the "processors:" top-level key. For example, to represent a "processors" section such as:
processors: batch: memory_limiter: limit_mib: 4000you could use
juju config otelcol processors=@processors.yaml, with:# processors.yaml batch: memory_limiter: limit_mib: 4000The provided processors section will be applied to all relevant pipelines.
Reference: https://opentelemetry.io/docs/collector/configuration/#processors
-
queue_size | int
Default: 1000
Maximum number of incoming batches of metrics, logs, traces the queue can accept. Ref: https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md#configuration
-
remote_write_multiple_workers | boolean
Send metrics over the
send-remote-writerelation with multiple parallel workers instead of one. When enabled, the charm sets the prometheusremotewrite exporter's remote_write_queue.num_consumers to 5 and enables the exporter.prometheusremotewritexporter.EnableMultipleWorkers feature gate. This lifts the single-in-flight-request throughput cap, but allows out-of-order writes: the remote-write backend must accept out-of-order samples (e.g. Mimir requires out_of_order_time_window). The default of false preserves in-order delivery with a single worker. -
tls_insecure_skip_verify | boolean
Flag to skip the validation of certificates from servers we connect to with TLS. If "true", self-signed certs can be used seamlessly; this setting will be applied to all the otelcol exporter configurations and any receivers which actively make requests to servers, e.g. the prometheus receiver scraping metrics endpoints.
-
tracing_sampling_rate_charm | float
Default: 100.0
This property defines the percentage of charm traces that are sent to the tracing backend. Setting it to 100 would mean all charm traces are kept, setting to 0 means charm traces aren't sent to the tracing backend at all. Anything outside of 0-100 range will be clamped to this range by OpenTelemetry Collector.
-
tracing_sampling_rate_error | float
Default: 100.0
This property defines the percentage of error traces (from all sources) that are sent to the tracing backend. Setting it to 100 would mean all error traces are kept, setting to 0 means error traces aren't sent to the tracing backend at all. Anything outside of 0-100 range will be clamped to this range by OpenTelemetry Collector.
-
tracing_sampling_rate_workload | float
Default: 1.0
This property defines the percentage of workload traces that are sent to the tracing backend. Setting it to 100 would mean all workload traces are kept, setting to 0 means workload traces aren't sent to the tracing backend at all. Anything outside of 0-100 range will be clamped to this range by OpenTelemetry Collector.
-
traefik_max_idle_conns_per_host | int
Default: 7500
Maximum number of idle (keep-alive) connections Traefik keeps to each backend
host:portwhen otelcol is ingressed through Traefik.This limit is per
host:port, not global. Since the charm advertises otelcol's Kubernetes Service address, there is effectively onehost:portper application and receiver (for example,receive-otlp), so this value applies per ingressed receiver port rather than across the whole deployment. All services generated by this charm share the same Traefik transport.Traefik's default is 200. Connections beyond the pool are closed after each request and accumulate in
TIME_WAITuntil the ephemeral ports to the backend are exhausted, causing 502s, client retries and dropped telemetry. The value should exceed the peak number of concurrent requests to the backend.Higher values retain more idle connections and therefore more file descriptors and memory in Traefik. Lower values risk the connection churn and port exhaustion. Each Traefik unit keeps its own pool, so scaling Traefik multiplies the available capacity.
Use a value greater than zero. Zero makes Traefik fall back to Go's default (2), not Traefik's 200 default, and a negative value disables connection reuse entirely, reintroducing the connection churn this option prevents.