Repository navigation
fix(telemetry): export created timestamps for cluster job counters (#2039) - #2366
Merged
Merged
Conversation
…2039) Cluster job pods run once and export metrics only at exit. In Prometheus PromQL, increase() drops series with fewer than two samples. Configure the OpenTelemetry Collector remote-write exporter to export created timestamp metrics. Configure Prometheus server with the feature flag created-timestamp-zero-ingestion so Prometheus ingests synthetic zero samples at the series start time. Single-export cluster jobs now accumulate correctly in increase() queries. Closes #2039
dan-petty
force-pushed
the
fix/2039-job-metrics-increase
branch
from
October 27, 2026 18:51
f6c1f63 to
6e551e3
Compare
dan-petty
marked this pull request as ready for review
October 27, 2026 18:57
dan-petty
pushed a commit
that referenced
this pull request
Oct 27, 2026
🤖 I have created a release *beep* *boop* --- ## [0.7.3](v0.7.2...v0.7.3) (2026-10-27) ### Bug Fixes * **ai:** a saved gateway route table keeps only failover state, so a changed default route reaches every machine ([#2364](#2364)) ([8317526](8317526)) * **k8s:** delete unused portkey routing configmap ([#2363](#2363)) ([15bd601](15bd601)) * **telemetry:** export created timestamps for cluster job counters ([#2039](#2039)) ([#2366](#2366)) ([cc34caa](cc34caa)) --- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2039
Summary
Cluster job pods run once and export metrics only at exit. In Prometheus PromQL,
increase()drops series with fewer than two samples.This change configures the OpenTelemetry Collector remote-write exporter to export created timestamp metrics. It configures Prometheus server with the feature flag
created-timestamp-zero-ingestionso Prometheus ingests synthetic zero-value samples at the series start time. Single-export cluster jobs now accumulate correctly inincrease()queries.Changes
export_created_metric: trueunderconfig.exporters.prometheus_remote_writeink8s/otel/values.yaml.enable-feature: created-timestamp-zero-ingestionunderserver.extraArgsink8s/monitoring/prometheus-values.yaml.docs/TELEMETRY.md.increase()calculation behavior intests/test_telemetry_instruments.py.