Description
Friction
Every span the OpenTelemetry collector received since Tempo was deployed (known K1) has been dropped, and no alert fired: no rule covers collector export failures, so trace loss, and any future loss of logs or remote-written metrics through the collector, can last indefinitely and is visible only on a dashboard and in failure log lines. The collector's debug exporter, which #1132 already removes, is no longer the main log cost; the export failures are.
Evidence
Live, read-only, 2026-10-17 around 22:00Z (main = 3dd7fa6):
increase(otelcol_exporter_sent_spans{exporter="otlp_grpc/tempo"}[1d])= 0,send_failed_spans= 14,350,enqueue_failed_spans= 6,338; over 4d, 0 sent and 20,869 failed.otelcol_exporter_queue_size / otelcol_exporter_queue_capacityfor otlp_grpc/tempo = 1.0.- Loki, collector container, last 1d: 82,435 lines, of which 32,945 match retry_sender, queue_sender or base_exporter ("Sender failed ... sending queue is full" with Go stack traces), and about 7,638 (9%) are debug-exporter lines.
- Live Prometheus has 25 rules in 5 groups (homelab-gpus, homelab-nodes, homelab-storage, log-and-metric-retention, monitoring-self); none references
otelcol_*or tempo. The tempo pod never existed, soTargetDowncannot catch the outage either. - The dashboard shows it (
k8s/monitoring/dashboards/otel-collector.json:205spans sent and failed,:342queue fill); the Prometheus server scrapes the collector directly so failures "stay visible" (k8s/README.md:163,190).
Repo:
k8s/monitoring/prometheus-values.yaml(serverFilesalerting_rules.yml) has no collector rule on main or release/v0.2.37; the README Alerting table (k8s/README.md:243-262) lists none.tests/fixtures/metrics/otel-collector.yaml:36-37capturesotelcol_exporter_queue_size/_capacity;otelcol_exporter_enqueue_failed_spansis missing, sotest_every_alert_rule_selects_only_series_the_stack_serves(tests/test_k8s_monitoring_alerting.py:117) would reject a rule on it.- Related, not duplicated here: fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132 removes the debug exporter from all pipelines; feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 alerts on Alloy's own drops; feat(k8s): alert when pod logs stop reaching loki #890 on pod logs not reaching Loki; refactor(k8s): the monitoring stack runs on k8s-monitoring and chart features, with no duplicate collection, dead defaults or leftovers #1128 orders the monitoring work.
Remedy
- Tests first: pin the new rules in
tests/test_k8s_monitoring_alerting.pyas one structural tuple (name, severity,for, labels), and, if a rule usesotelcol_exporter_enqueue_failed_spans, add it totests/fixtures/metrics/otel-collector.yamlunderfrom_source(exporterhelperobs_report_sender.goat the deployed collector version). k8s/monitoring/prometheus-values.yaml: addOtelCollectorExportFailing(warning,for: 15m, with the node label like the other rules):sum by (exporter) (increase(otelcol_exporter_send_failed_spans[15m])) > 0, and the same onotelcol_exporter_send_failed_metric_pointsand_log_records. AddOtelCollectorExportQueueFull:max by (exporter, data_type) (otelcol_exporter_queue_size / otelcol_exporter_queue_capacity) >= 0.9for 15m.- Add both to the
k8s/README.mdAlerting table.
Expect the alert to fire as soon as it lands until the Tempo pod-security fix (K1) deploys, and to notify no one until Alertmanager has a receiver (feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392). File as part of refactor(k8s): the monitoring stack runs on k8s-monitoring and chart features, with no duplicate collection, dead defaults or leftovers #1128's sequence.
Priority: P3. Severity low on its own; it would have surfaced K1 a week earlier.
Proposed design
Problem statement
The OpenTelemetry collector has dropped every span since Tempo deployed, and no alert fired. No rule covers collector export failures, so loss of spans, logs, or remote-written metrics through the collector can last indefinitely. The failure is visible only on a Grafana dashboard and in log lines. This issue adds alert rules that fire when the collector fails to export any data type or when its export queue fills.
Acceptance criteria
- Criterion 1: Two new alert rules exist in k8s/monitoring/prometheus-values.yaml: OtelCollectorExportFailing (warning, for 15m) and OtelCollectorExportQueueFull (for 15m).
Verification: Read the alerting_rules.yml section of k8s/monitoring/prometheus-values.yaml and confirm both rule names, severities, and for-durations are present. - Criterion 2: OtelCollectorExportFailing uses sum by (exporter) (increase(otelcol_exporter_send_failed_spans[15m])) > 0 and the same expression for _metric_points and _log_records.
Verification: Inspect the expr field of the OtelCollectorExportFailing rule in prometheus-values.yaml. - Criterion 3: OtelCollectorExportQueueFull uses max by (exporter, data_type) (otelcol_exporter_queue_size / otelcol_exporter_queue_capacity) >= 0.9 for 15m.
Verification: Inspect the expr field of the OtelCollectorExportQueueFull rule in prometheus-values.yaml. - Criterion 4: tests/test_k8s_monitoring_alerting.py pins both new rules as structural tuples (name, severity, for, labels).
Verification: Run pytest tests/test_k8s_monitoring_alerting.py and confirm it passes with the new rules included. - Criterion 5: tests/fixtures/metrics/otel-collector.yaml contains every metric referenced by the new rules under from_source.
Verification: Run pytest tests/test_k8s_monitoring_alerting.py::test_every_alert_rule_selects_only_series_the_stack_serves and confirm it passes. - Criterion 6: The k8s/README.md Alerting table lists both new alerts with their trigger condition, for-duration, and severity.
Verification: Read the Alerting table in k8s/README.md and confirm rows for OtelCollectorExportFailing and OtelCollectorExportQueueFull exist.
Key questions
- Which otelcol_exporter_ metrics does the deployed collector version expose?*: The live cluster exposes otelcol_exporter_send_failed_spans, otelcol_exporter_send_failed_metric_points, otelcol_exporter_send_failed_log_records, otelcol_exporter_queue_size, otelcol_exporter_queue_capacity, and otelcol_exporter_enqueue_failed_spans. The fixture at tests/fixtures/metrics/otel-collector.yaml:36-37 already has queue_size and queue_capacity. The body confirms send_failed_spans is live (14,350 in 1d). The metric_points and log_records variants follow the same exporterhelper pattern. [sources: tests/fixtures/metrics/otel-collector.yaml:36, k8s/monitoring/dashboards/otel-collector.json:205]
- Does test_every_alert_rule_selects_only_series_the_stack_serves reject a rule that references a metric absent from the fixture?: Yes. The body states the test would reject a rule on otelcol_exporter_enqueue_failed_spans because that metric is missing from the fixture. Every metric a rule selects must appear in the fixture under from_source. [sources: tests/test_k8s_monitoring_alerting.py:117]
- Should the new alerts carry a node label for planned-maintenance silencing?: The body says 'with the node label like the other rules,' but the given expressions use sum by (exporter) and max by (exporter, data_type), which drop the node label. The collector runs in namespace otel and is scraped by the server's kubernetes-pods job, which sets a node label on the raw series. A decision is needed: either add node to the by clause (sum by (exporter, node)) so the alert carries it, or accept that these alerts have no node label and cannot be silenced per-node. The body's explicit expressions omit node, so the default is no node label. (proposed) [sources: k8s/README.md:243]
- Is this issue a dependency of refactor(k8s): the monitoring stack runs on k8s-monitoring and chart features, with no duplicate collection, dead defaults or leftovers #1128 or independent?: The body says 'File as part of refactor(k8s): the monitoring stack runs on k8s-monitoring and chart features, with no duplicate collection, dead defaults or leftovers #1128's sequence,' meaning it belongs to the same monitoring work stream. It is not blocked by refactor(k8s): the monitoring stack runs on k8s-monitoring and chart features, with no duplicate collection, dead defaults or leftovers #1128 and does not block it. It can be delivered independently. [sources: k8s/README.md:243]
- Will the alert notify anyone when it fires?: No. Alertmanager has no receiver configured yet (feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392). Alerts route to the null receiver and send nowhere. The rule still fires and is visible in Grafana's Alerting view. [sources: k8s/README.md:243]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 18, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate adds new alerting rules for OpenTelemetry collector export failures.Severity is low on its own; it would have surfaced K1 a week earlier.Prevents silent trace loss and other telemetry data loss with no alert coverage.Requires adding new alert rules, updating tests, and modifying documentation.dan-petty commentedon Oct 28, 2026
Status set to Ready at bb46660 (see proposed design in issue body).