Repository navigation
fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver - #4930
Conversation
The collector must send its running totals to the OTLP receiver of the Prometheus server, which writes a zero sample at the start of each new stream. max_stale must stay at 1h, the window that the roadmap-service rules read. The collector dashboard draws a limit line for the dropped share of delta points.
The collector sent remote write 1.0, and its setting remote_write_version had no effect, so no devops-cli series started with a zero sample and increase() did not count the first sample of a new stream. The OTLP receiver of Prometheus v3.15.0 gets the start time of each point and writes a zero sample at the start of each new stream. max_stale stays at 1h, because the roadmap-service rules read a series with no sample in the hour before as a new stream (#2505).
|
Evidence for #4684 (local runs on the head commit). Fail-to-pass (
Collector config: Prometheus config: Tests: |
|
Live steps after the merge. This pull request changes no live object; Argo CD syncs the two Applications from
Owner decision: the issue asked for |
🤖 I have created a release *beep* *boop* --- ## [0.116.1](v0.116.0...v0.116.1) (2026-11-12) ### Bug Fixes * **telemetry:** send cumulative metrics to the Prometheus OTLP receiver ([#4930](#4930)) ([a5288d1](a5288d1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The OpenTelemetry collector sends the devops-cli metrics to the OTLP receiver of the Prometheus server, not through remote write. No devops-cli OTLP series started with a zero sample, so increase() did not count the first sample of a new stream: runner Jobs lost 18 % of their commands. The setting remote_write_version had no effect: the exporter at contrib v0.161.0 has no such key. The OTLP receiver of Prometheus v3.15.0 gets the start time of each point and writes a zero sample at the start of each new stream.
A transform processor keeps the cluster label. max_stale stays at 1h, and a test holds it there, because the roadmap-service rules read a series with no sample in the hour before as a new stream (#2505). The collector dashboard shows the share of delta points that deltatocumulative drops.
Closes #4684
Change:
openspec/changes/archive/2026-11-12-4684-send-cumulative-metrics-to-the-prometheus/