Repository navigation
Description
Problem or Motivation
The metric Resource holds host.name, which is the pod name (src/devops_cli/telemetry/tracer.py:1056-1066). deltatocumulative keys a stream by all resource attributes (contrib v0.161.0 internal/exp/metrics/identity/resource.go:32-35), but Prometheus keeps only job and instance. So each Service pod start begins a new total at 0 in the same series: 15 host_name values under instance roadmap-service in 24 h, up to 16 resets per series (1,106 resets on 161 series). A new total that is not lower than the old one is not seen as a reset, so its counts are lost. Runner Jobs set only OTEL_SERVICE_NAME (k8s/devops/cronjob.yaml:58-59, k8s/devops/cronjob-runner.yaml:66-67), so each Job pod is a new instance and a new series: job devops-cli-job has 9 one-sample series in 24 h. Closed #1629 set service.instance.id for the Service, but host.name still splits the stream.
Proposed Solution & Architectural Design
Build the metric Resource only from service.name, service.namespace, service.instance.id, os.type and telemetry.sdk.*; leave host.name out (traces and logs keep it). Set OTEL_RESOURCE_ATTRIBUTES=service.instance.id=devops-cli-job in both CronJob templates (cluster_job.py builds runner Jobs from cronjob-runner.yaml). Keep one stream for each host, as the OpenTelemetry single-writer rule needs; the processes of one host drop 0.18 % of points today. Add the alert rule DevopsCliMetricStreamsShareSeries: count by (job, instance) (last_over_time(target_info{job=~'devops-cli.*|roadmap-service'}[15m])) > 1 for 30m, with promtool cases and a runbook entry in k8s/README.md. This is the check that fails if two streams write one Prometheus series again.
Target Subsystem
Kubernetes & Minikube Automation (Grafana dashboards and telemetry).
Existing Tool Considered
The OpenTelemetry SDK Resource and OTEL_RESOURCE_ATTRIBUTES (standard SDK settings) and a Prometheus alert rule. No new code beyond the Resource filter.
Acceptance Criteria
- A test shows that two tracers with different platform.node() values and the same OTEL_RESOURCE_ATTRIBUTES service.instance.id give equal metric Resources, and that the metric Resource holds no key outside the allowed set.
- A test shows that both CronJob templates set service.instance.id=devops-cli-job.
- promtool cases: the alert fires for two target_info series of one job and instance that stay for 30 min; it stays quiet over a 10 min overlap at a pod change and for one series.
- Live, 24 h after the rollout: max(resets(devops_cli_github_requests_total{job='roadmap-service'}[24h])) is not more than the collector starts in that window (today 16, with 15 Service pod starts and 2 collector starts); count(count by (instance) (devops_cli_command_total{job='devops-cli-job'})) is 1.
Files
src/devops_cli/telemetry/tracer.pyk8s/devops/cronjob.yamlk8s/devops/cronjob-runner.yamlk8s/monitoring/prometheus-values.yamlk8s/README.mdtests/telemetry/test_telemetry.pytests/fixtures/prometheus_rules/otel_collector_tests.yamltests/prometheus/test_k8s_monitoring_alerting.pytests/config/test_k8s_devops_runtime.py
Dependencies
Related
Closed #1629 set service.instance.id for the Service.
Constraint (2026-11-12, from the closed plan #5032): plans run uv run devops docs generate; the option --sync-readme no longer exists (#5198).
Source: #4675
Proposed design
Problem statement
The metric Resource includes host.name, which is the pod name. deltatocumulative keys a stream by all resource attributes, but Prometheus keeps only job and instance. Each Service pod start and each runner Job pod starts a new total at zero in the same series. A new total that is not lower than the old one is not seen as a reset, so its counts are lost. The change keeps one metric stream for each workload and adds an alert for two streams in one Prometheus series.
Acceptance criteria
Requirement: Metric resource uses a stable attribute set
The metric Resource SHALL contain only service.name, service.namespace, service.instance.id, os.type and telemetry.sdk.* attributes.
Scenario: Two tracers with one instance
- WHEN Two tracers start with different platform.node() values and the same OTEL_RESOURCE_ATTRIBUTES service.instance.id.
- THEN Their metric Resources are equal, and no metric Resource key is outside the allowed set.
Requirement: Span resource keeps host.name
The span Resource SHALL keep host.name when the host has a name.
Scenario: A span names the host
- WHEN A tracer with a host name starts a span.
- THEN The span Resource holds host.name, and the metric Resource does not.
Requirement: Metric resource reads the configured instance
The metric Resource SHALL use service.instance.id from OTEL_RESOURCE_ATTRIBUTES when that variable sets it.
Scenario: A Job pod sets a fixed instance
- WHEN A tracer starts with OTEL_RESOURCE_ATTRIBUTES set to service.instance.id=devops-cli-job.
- THEN The metric Resource holds service.instance.id=devops-cli-job.
Requirement: Both CronJob templates set the runner instance
Both CronJob templates SHALL set OTEL_RESOURCE_ATTRIBUTES to service.instance.id=devops-cli-job.
Scenario: The CronJob templates set the instance
- WHEN The test reads k8s/devops/cronjob.yaml and k8s/devops/cronjob-runner.yaml.
- THEN Each container has OTEL_RESOURCE_ATTRIBUTES with the value service.instance.id=devops-cli-job.
Requirement: Two streams in one series fire
The DevopsCliMetricStreamsShareSeries alert SHALL fire when two target_info series with the same job and instance stay for 30 minutes.
Scenario: Two streams share a job and instance
- WHEN promtool evaluates two target_info series with the same job and instance for 30 minutes.
- THEN The alert fires with the job and instance labels, the warning severity, and summary and description annotations.
Requirement: One stream or a short overlap stays quiet
The DevopsCliMetricStreamsShareSeries alert SHALL stay quiet for one target_info series and for a 10-minute overlap at a pod change.
Scenario: One series or a short overlap
- WHEN promtool evaluates one target_info series, or two target_info series with the same job and instance for 10 minutes.
- THEN The alert does not fire.
Requirement: The alert rule passes the served-series check
The alert rule SHALL select only a series that the stack serves, and the served-series test SHALL list target_info.
Scenario: The served-series test reads the rule
- WHEN The alert rule tests read k8s/monitoring/prometheus-values.yaml.
- THEN The DevopsCliMetricStreamsShareSeries expression passes the served-series check.
Requirement: The alert rule set and promtool file list the alert
The alert rule set and its promtool test file SHALL include DevopsCliMetricStreamsShareSeries.
Scenario: The alert tests read the new group
- WHEN The alert tests read k8s/monitoring/prometheus-values.yaml and tests/fixtures/prometheus_rules/metric_streams_tests.yaml.
- THEN The baseline rule set lists the alert with warning severity, and the promtool file tests it.
Requirement: The runbook names the alert
k8s/README.md SHALL list the DevopsCliMetricStreamsShareSeries alert and its action.
Scenario: The runbook lists the alert
- WHEN A test reads the Alerting section of k8s/README.md.
- THEN The section has a row for DevopsCliMetricStreamsShareSeries with the job and instance labels and the action.
Existing Tool Considered
No alternatives check has run. The OpenTelemetry SDK Resource and OTEL_RESOURCE_ATTRIBUTES cover the resource filter. They lack a duplicate-stream check, so the plan adds a Prometheus alert rule. The change builds no new tool.
Key questions
- Which resource attributes identify a metric stream without splitting it at each pod start?: Use service.name, service.namespace, service.instance.id, os.type and telemetry.sdk.* only. Omit host.name from the metric Resource. (best practice) [sources: src/devops_cli/telemetry/tracer.py:1056, docs/TELEMETRY.md:23, k8s/monitoring/prometheus-values.yaml]
- Chosen: Stable metric Resource. Prometheus keeps job and instance, and this set stays the same across pod starts.
- Rejected: Keep host.name in the metric Resource. The pod name changes at each start and creates a new stream in the same series.
- Rejected: Remove host.name from every Resource. Traces and logs need the pod name, and they do not split the Prometheus series.
- Should host.name stay on traces and logs?: Yes. Keep host.name on trace and log Resources, and omit it only from the metric Resource. (best practice) [sources: src/devops_cli/telemetry/tracer.py:1056, tests/telemetry/test_telemetry.py]
- Chosen: Keep host.name on traces and logs. The pod name helps an operator find a trace or a log line, and it does not split the metric series.
- Rejected: Remove host.name everywhere. It loses the pod identity in traces and logs for no metric benefit.
- How does a CronJob pod keep one metric stream across Job pods?: Set OTEL_RESOURCE_ATTRIBUTES to service.instance.id=devops-cli-job in both CronJob templates. (best practice) [sources: k8s/devops/cronjob.yaml:58, k8s/devops/cronjob-runner.yaml:66, tests/config/test_k8s_devops_runtime.py]
- Chosen: Fixed service.instance.id in both templates. Every Job pod of the workload sends one stream, so the series stays stable.
- Rejected: Use the pod name as service.instance.id. Each Job pod would start a new instance and a new series.
- Rejected: Rely on OTEL_SERVICE_NAME alone. The metric stream still lacks a stable instance, so Job pods split the series.
- Where should the new alert live?: Add DevopsCliMetricStreamsShareSeries to a new metric-streams rule group. (best practice) [sources: k8s/monitoring/prometheus-values.yaml, k8s/README.md, tests/prometheus/test_k8s_monitoring_alerting.py, tests/fixtures/prometheus_rules/otel_collector_tests.yaml]
- Chosen: New metric-streams group. The rule watches metric stream identity, not collector export health, so a separate group keeps each test focused.
- Rejected: Add to otel-collector group. That group pins its two export-health rules and their 15-minute wait; the new rule waits 30 minutes and has another concern.
- Rejected: Add to roadmap-service group. The rule also watches devops-cli-job, so it is not limited to the Service.
- What must the served-series test do for the new rule?: Add target_info to SERVED_SERIES in tests/prometheus/test_k8s_monitoring_alerting.py. (best practice) [sources: tests/prometheus/test_k8s_monitoring_alerting.py, k8s/monitoring/prometheus-values.yaml, docs/TELEMETRY.md]
- Chosen: Add target_info to SERVED_SERIES. The Prometheus OTLP receiver creates target_info from resource attributes, so the rule selects a served series.
- Rejected: Add a fake served series. The test would pass without the stack serving the series.
- Which PromQL expression detects two metric streams in one Prometheus series?: count by (job, instance) (last_over_time(target_info{job=~'devops-cli.*|roadmap-service'}[15m])) > 1, for 30 minutes. (best practice) [sources: docs/TELEMETRY.md, k8s/monitoring/prometheus-values.yaml, tests/prometheus/test_k8s_monitoring_alerting.py]
- Chosen: Count target_info by job and instance. target_info carries the resource attributes, so two streams with one job and instance produce two series.
- Rejected: Count devops_cli_command_total by instance. A counter may be absent or sparse, and it does not show a second stream before its first sample.
- Rejected: Use the up series. up has one series for each scrape target, not for each metric stream.
- Should the metric Resource read service.instance.id from OTEL_RESOURCE_ATTRIBUTES or set it from host_name?: Read service.instance.id from OTEL_RESOURCE_ATTRIBUTES when it is set, and use host_name only when the variable sets none. (best practice) [sources: src/devops_cli/telemetry/tracer.py:1056, docs/TELEMETRY.md:23, k8s/devops/roadmap-service/deployment.yaml:88]
- Chosen: Use OTEL_RESOURCE_ATTRIBUTES when set. The standard SDK variable lets each workload set one stable instance without code changes.
- Rejected: Use host_name always. The pod name changes at each start and splits the stream.
- Rejected: Use the service name as the instance. Two workloads with one service name would share an instance.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(telemetry)scope of the title gives the scope.Production metrics lose counts on every pod restart, 1106 resets in 24 h.Fixes data loss in the primary observability pipeline for all workloads.Touches Resource construction, two CronJob templates, one alert rule, and four test files.Both fix pod-level splitting of metric streams, but #3495 fixes prometheus_client labels while this item fixes the OTel SDK Resource attributes and adds a guard alert.devops-cli-service commentedon Nov 11, 2026
Refine cannot set this item to Ready at 5c71ad4 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 12, 2026
Status set to Ready at 87ae9ee (see proposed design in issue body).
Moved to new items: #4984.
devops-cli-service commentedon Nov 12, 2026
Staged: branch
fix/4697-keep-one-metric-stream-per-workload, draft pull request #5032. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
A model review of the plan found these open findings. The stage keeps this pull request a draft with the label
plan/needs-fixuntil a later round clears them:criterion_droppedat group 4: The acceptance criterion asks for a 10-minute overlap of two target_info series at a pod change to stay quiet, but the group's second promtool case makes one series end as the other starts, so no task tests the overlap; the plan's own spec delta still claims a ten-minute overlap. Evidence: "it stays quiet over a 10 min overlap at a pod change and for one series."A model review of the plan found these points. They stop no draft, and a person judges them:
false_premiseat group 2 (and the decision on service.instance.id): The plan gives every Job pod ofk8s/devops/cronjob.yamloneservice.instance.id, but that template setsconcurrencyPolicy: Allow, so two concurrent Jobs write one stream anddeltatocumulativedrops their interleaved deltas; fix(telemetry): a cluster job's usage counters count in increase(), though each job pod exports once #2039 rejected this exact alternative for that reason, and the plan neither handles nor names it. Evidence: "Concurrent jobs send interleaved deltas, causingdeltatocumulativeto drop points withErrOutOfOrderandErrOlderStart."task_orderat group 2: The group declares no test and writes the manifest change before the test that pins it, so the new variable is added to both templates beforetest_both_cluster_job_templates_set_one_runner_instanceexists and the test cannot fail first. Evidence: "Add OTEL_RESOURCE_ATTRIBUTES with the value service.instance.id=devops-cli-job to the container environment of both templates, below OTEL_SERVICE_NAME, with a comment that the Job pods of the workload then share one metric stream, as the Service Deployment does. Addtest_both_cluster_job_templates_set_one_runner_instancetotests/config/test_k8s_devops_runtime.py"The runs of the planner and the review made 139 model request(s), and used 13610571 input tokens and 245870 output tokens. The tool calls, in order:
file_symbols({"path":"src/devops_cli/telemetry/tracer.py"})search_code({"text":"host.name"})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":880,"end_line":1100})read_file({"path":"tests/telemetry/test_telemetry.py","start_line":460,"end_line":560})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1030,"end_line":1100})read_file({"path":"tests/telemetry/test_telemetry_instruments.py","start_line":900,"end_line":960})read_file({"path":"k8s/devops/cronjob-runner.yaml","start_line":45,"end_line":85})list_files({"directory":"tests/fixtures/prometheus_rules"})read_issue({"number":4684})find_issues({"terms":"metric stream service.instance.id"})read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1,"end_line":120})read_file({"path":"tests/fixtures/prometheus_rules/otel_collector_tests.yaml"})search_code({"text":"SERVED_SERIES"})search_code({"text":"OTEL_COLLECTOR_RULE_TESTS"})read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":120,"end_line":360})read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":256,"end_line":400})search_code({"text":"def test_the_baseline_rule_set"})search_code({"text":"def test_each_roadmap_service_alert_points_to_its_step_in_the_readme"})search_code({"text":"promtool test rules"})read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1240,"end_line":1400})search_code({"text":"OtelCollectorExportFailing"})read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1140,"end_line":1240})read_file({"path":"docs/TELEMETRY.md","start_line":10,"end_line":45})search_code({"text":"rule_files"})search_code({"text":"OTEL_SERVICE_NAME"})read_file({"path":"tests/config/test_k8s_devops_runtime.py","start_line":1,"end_line":130})read_file({"path":"k8s/devops/roadmap-service/deployment.yaml","start_line":78,"end_line":100})read_spec({"capability":"command-telemetry"})read_spec({"capability":"otel-collector-alerts"})read_spec({"capability":"roadmap-implement-runner"})search_code({"text":"OTEL_RESOURCE_ATTRIBUTES"})read_file({"path":"src/devops_cli/docs/generator.py","start_line":1080,"end_line":1130})search_code({"text":"TELEMETRY.md"})search_code({"text":"def otlp"})search_code({"text":"monotonic_deltas"})read_file({"path":"tests/telemetry/test_telemetry.py","start_line":1,"end_line":70})read_file({"path":"tests/support/fakes/otlp.py","start_line":200,"end_line":300})read_file({"path":"k8s/README.md","start_line":470,"end_line":520})read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":398,"end_line":500})read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1500,"end_line":1640})read_file({"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":168,"end_line":205})search_code({"text":"\"service.instance.id\": self.host_name"})search_code({"text":"def _ensure_meter"})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1020,"end_line":1090})search_code({"text":"host.name"})references({"name":"cronjob-runner.yaml"})references({"name":"prometheus-values.yaml"})references({"name":"cronjob.yaml"})read_file({"path":"k8s/devops/cronjob.yaml","start_line":52,"end_line":76})read_file({"path":"k8s/devops/cronjob-runner.yaml","start_line":56,"end_line":78})search_code({"text":"unique instance names"})search_code({"text":"SERVED_SERIES"})read_file({"path":"k8s/devops/roadmap-service/deployment.yaml","start_line":78,"end_line":95})search_code({"text":"monotonic_deltas"})search_code({"text":"RULE_GROUP_TESTS"})read_file({"path":"tests/telemetry/test_telemetry_instruments.py","start_line":905,"end_line":945})read_file({"end_line":520,"path":"tests/telemetry/test_telemetry.py","start_line":485})read_file({"end_line":210,"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":165})read_file({"end_line":370,"path":"tests/config/test_k8s_devops_runtime.py","start_line":330})read_file({"end_line":175,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":100})search_code({"text":"OtelCollectorExportFailing"})read_file({"end_line":12,"path":"tests/fixtures/prometheus_rules/otel_collector_tests.yaml","start_line":1})read_file({"end_line":1600,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1525})read_spec({"capability":"command-telemetry"})list_files({"directory":"tests/support/fakes"})read_issue({"number":4684})read_issue({"number":1629})find_issues({"terms":"metric stream instance id"})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1020,"end_line":1090})read_file({"path":"k8s/README.md","start_line":495,"end_line":520})read_file({"end_line":935,"path":"src/devops_cli/telemetry/tracer.py","start_line":910})search_code({"text":"\"service.instance.id\": self.host_name"})file_symbols({"path":"src/devops_cli/telemetry/tracer.py"})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1050,"end_line":1058})read_file({"path":"k8s/monitoring/prometheus-values.yaml","start_line":570,"end_line":580})read_spec({})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1020,"end_line":1090})search_code({"text":"test_counters_are_monotonic_deltas_from_the_host_not_the_process"})search_code({"text":"platform.node"})read_spec({"capability":"command-telemetry"})read_file({"path":"tests/telemetry/test_telemetry_instruments.py","start_line":900,"end_line":965})read_file({"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":185,"end_line":260})read_file({"end_line":200,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":100})read_file({"end_line":380,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":330})read_file({"end_line":200,"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":160})search_code({"text":"host.name"})read_file({"path":"tests/telemetry/test_telemetry.py","start_line":480,"end_line":530})search_code({"text":"target_info"})search_code({"text":"ci docs"})search_code({"text":"docs generate"})search_code({"text":"K8S_README"})search_code({"text":"TELEMETRY.md"})read_file({"end_line":1120,"path":"src/devops_cli/docs/generator.py","start_line":1095})search_code({"text":"README"})search_code({"text":"Alerting"})search_code({"text":"K8S_README"})read_file({"end_line":560,"path":"k8s/README.md","start_line":479})search_code({"text":"K8S_README.read_text"})search_code({"text":"alert table"})read_file({"end_line":1340,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1230})read_file({"end_line":1560,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1470})search_code({"text":"SERVED_SERIES"})read_file({"end_line":1660,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1558})read_file({"end_line":325,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":255})read_file({"end_line":260,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":200})read_file({"path":"openspec/changes/archive/2026-11-12-4684-send-cumulative-metrics-to-the-prometheus/proposal.md","start_line":1,"end_line":60})read_file({"path":"tests/fixtures/metrics/otel-collector.yaml","start_line":50,"end_line":80})search_code({"text":"The tests are in"})search_code({"text":"roadmap_service_tools_tests.yaml"})read_spec({"capability":"otlp-export"})search_code({"text":"service.instance.id"})read_file({"path":"openspec/changes/archive/2026-10-27-2039-job-metrics-increase/design.md"})read_spec({"capability":"metric-instruments"})read_spec({"capability":"monitoring-collectors"})read_issue({"number":4684})read_issue({"number":1629})list_files({"directory":"tests/fixtures/prometheus_rules"})read_file({"end_line":40,"path":"docs/TELEMETRY.md","start_line":10})list_files({"directory":"tests/prometheus"})list_files({"directory":"tests/roadmap/stage"})search_code({"text":"OTEL_RESOURCE_ATTRIBUTES"})search_code({"text":"def docs"})read_file({"end_line":2195,"path":"src/devops_cli/commands/ci.py","start_line":2110})read_file({"end_line":940,"path":"src/devops_cli/telemetry/tracer.py","start_line":870})search_code({"text":"resourceMetrics"})read_file({"end_line":1010,"path":"tests/telemetry/test_telemetry_instruments.py","start_line":965})read_file({"end_line":160,"path":"tests/telemetry/test_consolidation_serialization.py","start_line":130})search_code({"text":"roadmap-service-jobs"})list_files({"directory":"tests/gate/k8s_checks"})read_file({"path":"tests/gate/k8s_checks/telemetry_resource.py"})read_file({"end_line":470,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":380})search_code({"text":"OTEL_SERVICE_NAME"})search_code({"text":"- alert: OtelCollectorExportFailing"})search_code({"text":"test_order"})search_code({"text":"\"behavior\""})read_issue({"number":2039})read_file({"path":"k8s/devops/cronjob-runner.yaml"})search_code({"text":"deltatocumulative"})list_files({"directory":"k8s/monitoring"})read_file({"path":"openspec/changes/archive/2026-10-27-2039-job-metrics-increase/design.md"})search_code({"text":"concurrencyPolicy"})search_code({"text":"devops-cli-runner"})file_symbols({"path":"src/devops_cli/k8s/cluster_job.py"})read_file({"path":"src/devops_cli/k8s/cluster_job.py","start_line":25,"end_line":180})callers({"symbol":"build_job"})search_code({"text":"OTEL_RESOURCE_ATTRIBUTES"})read_file({"end_line":150,"path":"src/devops_cli/k8s/cluster_job_api.py","start_line":60})read_file({"end_line":355,"path":"src/devops_cli/commands/k8s/cluster_jobs.py","start_line":280})read_file({"path":"docs/TELEMETRY.md","start_line":1,"end_line":45})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1020,"end_line":1090})search_code({"text":"_running_jobs"})search_code({"text":"implement-repo"})search_code({"text":"repositories"})search_code({"text":"ClusterJobs()"})search_code({"text":"job_runner_running"})read_file({"end_line":545,"path":"src/devops_cli/roadmap/implement/implement_submit.py","start_line":470})search_code({"text":"token_repository"})list_files({"directory":"k8s/devops"})read_spec({"capability":"command-telemetry"})read_spec({"capability":"metric-instruments"})read_file({"end_line":30,"path":"src/devops_cli/k8s/cluster_job.py","start_line":1})read_file({"end_line":175,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":118})find_issues({"terms":"OTEL_RESOURCE_ATTRIBUTES metric stream"})read_file({"end_line":400,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":330})read_file({"end_line":520,"path":"k8s/README.md","start_line":480})read_file({"end_line":20,"path":"tests/fixtures/prometheus_rules/otel_collector_tests.yaml","start_line":1})list_files({"directory":"tests/fixtures/prometheus_rules"})list_files({"directory":"tests/config"})search_code({"text":"service.instance.id"})read_file({"end_line":40,"path":"tests/config/test_k8s_devops_runtime.py","start_line":1})search_code({"text":"has not ended"})search_code({"text":"def test_"})read_file({"end_line":1115,"path":"src/devops_cli/docs/generator.py","start_line":1094})search_code({"text":"\"key\": \"host.name\""})read_file({"end_line":16,"path":"k8s/devops/cronjob.yaml","start_line":11})read_file({"end_line":62,"path":"k8s/devops/cronjob.yaml","start_line":55})list_files({"directory":"tests/commands/k8s"})list_files({"directory":"tests/invariants"})list_files({"directory":"tests/core"})list_files({"directory":"tests/prometheus"})list_files({"directory":"tests/roadmap/stage"})list_files({"directory":"tests/config"})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1010,"end_line":1090})read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":905,"end_line":935})read_file({"end_line":960,"path":"tests/telemetry/test_telemetry_instruments.py","start_line":890})read_file({"end_line":215,"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":175})read_file({"end_line":200,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":118})read_file({"end_line":400,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":330})read_file({"end_line":300,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":200})search_code({"text":"def selectors"})read_file({"end_line":520,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":400})read_file({"end_line":400,"path":"src/devops_cli/prometheus/promql.py","start_line":350})search_code({"text":"rules.yaml"})read_file({"path":"tests/support/promtool.py"})search_code({"text":"test rules"})search_code({"text":"MAX_PROMTOOL_ROUNDS"})read_file({"end_line":1620,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1480})read_spec({})list_files({"directory":"openspec/specs"})read_spec({"capability":"metric-instruments"})read_spec({"capability":"command-telemetry"})references({"name":"service.instance.id"})search_code({"text":"def execute_job"})search_code({"text":"job_runner_running"})read_file({"end_line":360,"path":"src/devops_cli/commands/k8s/cluster_jobs.py","start_line":280})read_file({"end_line":880,"path":"src/devops_cli/lang/en/messages.py","start_line":860})read_file({"end_line":545,"path":"src/devops_cli/roadmap/implement/implement_submit.py","start_line":495})read_file({"end_line":40,"path":"openspec/changes/archive/2026-10-27-2039-job-metrics-increase/design.md","start_line":1})read_file({"end_line":1120,"path":"src/devops_cli/docs/generator.py","start_line":1085})read_file({"end_line":40,"path":"docs/TELEMETRY.md","start_line":1})search_code({"text":"ci docs"})search_code({"text":"docs generate"})read_file({"path":"docs/commands/ci.md","start_line":1,"end_line":120})search_code({"text":"host.name"})read_file({"end_line":70,"path":"k8s/devops/cronjob.yaml","start_line":50})read_file({"end_line":540,"path":"tests/telemetry/test_telemetry.py","start_line":470})search_code({"text":"ROADMAP_SERVICE_JOB"})search_code({"text":"SERVED_SERIES"})read_file({"end_line":1420,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1340})read_file({"end_line":560,"path":"k8s/README.md","start_line":470})read_file({"end_line":330,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":300})search_code({"text":"target_info"})read_file({"end_line":90,"path":"docs/roadmap/plan-recheck.md","start_line":40})search_code({"text":"manifest group"})search_code({"text":"def form_problems"})search_code({"text":"ci test"})read_file({"end_line":330,"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":180})read_file({"end_line":180,"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":60})read_file({"path":"tests/support/fakes/cluster_jobs.py"})search_code({"text":"OTEL_RESOURCE_ATTRIBUTES"})read_file({"end_line":220,"path":"docs/commands/ci.md","start_line":170})search_code({"text":"TELEMETRY.md"})read_issue({"number":4684})read_issue({"number":2039})search_code({"text":"def verification_problem"})read_file({"end_line":600,"path":"src/devops_cli/roadmap/implement/implement_shell_policy.py","start_line":470})list_files({"directory":"tests/commands/k8s"})list_files({"directory":"tests/prometheus"})search_code({"text":"prometheus-values.yaml"})read_file({"path":"tests/support/fakes/otlp.py"})read_file({"end_line":290,"path":"tests/support/fakes/otlp.py","start_line":190})search_code({"text":"resourceMetrics"})read_spec({"capability":"otel-collector-alerts"})Tool calls: callers=1 (empty=0), file_symbols=3 (empty=0), find_issues=3 (empty=0), list_files=19 (empty=0), read_file=109 (empty=0), read_issue=8 (empty=0), read_spec=15 (empty=0), references=4 (empty=0), search_code=81 (empty=0)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
devops-cli-service commentedon Nov 12, 2026
Plan pull request #5032 closed with no merge. The job waits for an edit of the text of this item, or for a commit that changes a file that the reason names.
The reason, from the last comment of dan-petty on the pull request:
9 remaining items
wip: 1 of 2 tasks of group 4, Add the alert row to the runbook (#4697)
fix(telemetry): Add the alert row to the runbook (#4697)
wip: 1 of 2 tasks of group 5, Describe the stable metric Resource in …
fix(telemetry): Describe the stable metric Resource in the telemetry …
docs(openspec): archive the change (#4697)
devops-cli-service commentedon Nov 13, 2026
Pull request #5324 is ready for review. The checks passed.
Spend: 197 model requests, 13482463 input tokens, 62735 output tokens.
devops-cli-service commentedon Nov 13, 2026
The runner Job devops-cli-runner-20261113-012113-7967 ended: succeeded.
Image digest: sha256:3c74daae2a5221f4a125666f59c5d499e5ece7b231fb6f19ceea9c7210f5aa03
The last lines of its log:
devops-cli-service commentedon Nov 13, 2026
Released in v0.125.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.125.3
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 02:28 UTC
fix(telemetry): one metric stream across devops-cli builds (#5358)