Skip to content

fix(telemetry): keep one metric stream per workload #4697

Closed

Description

@dan-petty

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.py
  • k8s/devops/cronjob.yaml
  • k8s/devops/cronjob-runner.yaml
  • k8s/monitoring/prometheus-values.yaml
  • k8s/README.md
  • tests/telemetry/test_telemetry.py
  • tests/fixtures/prometheus_rules/otel_collector_tests.yaml
  • tests/prometheus/test_k8s_monitoring_alerting.py
  • tests/config/test_k8s_devops_runtime.py

Dependencies

#4684.

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.

Dependencies

#4684

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/bug
    scope/telemetry
    status/new
    value/high
    effort/medium
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/telemetry. The (telemetry) scope of the title gives the scope.
    • Priority: P1-High. Production metrics lose counts on every pod restart, 1106 resets in 24 h.
    • Value: High. Fixes data loss in the primary observability pipeline for all workloads.
    • Effort: Medium. Touches Resource construction, two CronJob templates, one alert rule, and four test files.
    • Related: fix(telemetry): Service counters read true across pods and repos #3495, which asks for a different change. 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.
  4. added
    priority/p1-high
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    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.

  6. added
    status/ready
    and removed
    status/new
    on Nov 12, 2026
  7. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 87ae9ee (see proposed design in issue body).

    Moved to new items: #4984.

  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    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:

    1. Build the metric resource from the stable attribute set: 18285 tokens
    2. Run one cluster Job of the workload at a time: 35640 tokens
    3. Set one instance id in both CronJob templates: 17900 tokens
    4. Alert on two metric streams in one Prometheus series: 43166 tokens
    5. Describe the stable metric resource in the telemetry reference: 31212 tokens

    A model review of the plan found these open findings. The stage keeps this pull request a draft with the label plan/needs-fix until a later round clears them:

    • criterion_dropped at 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_premise at group 2 (and the decision on service.instance.id): The plan gives every Job pod of k8s/devops/cronjob.yaml one service.instance.id, but that template sets concurrencyPolicy: Allow, so two concurrent Jobs write one stream and deltatocumulative drops 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, causing deltatocumulative to drop points with ErrOutOfOrder and ErrOlderStart."
    • task_order at 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 before test_both_cluster_job_templates_set_one_runner_instance exists 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. Add test_both_cluster_job_templates_set_one_runner_instance to tests/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:

    1. file_symbols({"path":"src/devops_cli/telemetry/tracer.py"})
    2. search_code({"text":"host.name"})
    3. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":880,"end_line":1100})
    4. read_file({"path":"tests/telemetry/test_telemetry.py","start_line":460,"end_line":560})
    5. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1030,"end_line":1100})
    6. read_file({"path":"tests/telemetry/test_telemetry_instruments.py","start_line":900,"end_line":960})
    7. read_file({"path":"k8s/devops/cronjob-runner.yaml","start_line":45,"end_line":85})
    8. list_files({"directory":"tests/fixtures/prometheus_rules"})
    9. read_issue({"number":4684})
    10. find_issues({"terms":"metric stream service.instance.id"})
    11. read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1,"end_line":120})
    12. read_file({"path":"tests/fixtures/prometheus_rules/otel_collector_tests.yaml"})
    13. search_code({"text":"SERVED_SERIES"})
    14. search_code({"text":"OTEL_COLLECTOR_RULE_TESTS"})
    15. read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":120,"end_line":360})
    16. read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":256,"end_line":400})
    17. search_code({"text":"def test_the_baseline_rule_set"})
    18. search_code({"text":"def test_each_roadmap_service_alert_points_to_its_step_in_the_readme"})
    19. search_code({"text":"promtool test rules"})
    20. read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1240,"end_line":1400})
    21. search_code({"text":"OtelCollectorExportFailing"})
    22. read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1140,"end_line":1240})
    23. read_file({"path":"docs/TELEMETRY.md","start_line":10,"end_line":45})
    24. search_code({"text":"rule_files"})
    25. search_code({"text":"OTEL_SERVICE_NAME"})
    26. read_file({"path":"tests/config/test_k8s_devops_runtime.py","start_line":1,"end_line":130})
    27. read_file({"path":"k8s/devops/roadmap-service/deployment.yaml","start_line":78,"end_line":100})
    28. read_spec({"capability":"command-telemetry"})
    29. read_spec({"capability":"otel-collector-alerts"})
    30. read_spec({"capability":"roadmap-implement-runner"})
    31. search_code({"text":"OTEL_RESOURCE_ATTRIBUTES"})
    32. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1080,"end_line":1130})
    33. search_code({"text":"TELEMETRY.md"})
    34. search_code({"text":"def otlp"})
    35. search_code({"text":"monotonic_deltas"})
    36. read_file({"path":"tests/telemetry/test_telemetry.py","start_line":1,"end_line":70})
    37. read_file({"path":"tests/support/fakes/otlp.py","start_line":200,"end_line":300})
    38. read_file({"path":"k8s/README.md","start_line":470,"end_line":520})
    39. read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":398,"end_line":500})
    40. read_file({"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1500,"end_line":1640})
    41. read_file({"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":168,"end_line":205})
    42. search_code({"text":"\"service.instance.id\": self.host_name"})
    43. search_code({"text":"def _ensure_meter"})
    44. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1020,"end_line":1090})
    45. search_code({"text":"host.name"})
    46. references({"name":"cronjob-runner.yaml"})
    47. references({"name":"prometheus-values.yaml"})
    48. references({"name":"cronjob.yaml"})
    49. read_file({"path":"k8s/devops/cronjob.yaml","start_line":52,"end_line":76})
    50. read_file({"path":"k8s/devops/cronjob-runner.yaml","start_line":56,"end_line":78})
    51. search_code({"text":"unique instance names"})
    52. search_code({"text":"SERVED_SERIES"})
    53. read_file({"path":"k8s/devops/roadmap-service/deployment.yaml","start_line":78,"end_line":95})
    54. search_code({"text":"monotonic_deltas"})
    55. search_code({"text":"RULE_GROUP_TESTS"})
    56. read_file({"path":"tests/telemetry/test_telemetry_instruments.py","start_line":905,"end_line":945})
    57. read_file({"end_line":520,"path":"tests/telemetry/test_telemetry.py","start_line":485})
    58. read_file({"end_line":210,"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":165})
    59. read_file({"end_line":370,"path":"tests/config/test_k8s_devops_runtime.py","start_line":330})
    60. read_file({"end_line":175,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":100})
    61. search_code({"text":"OtelCollectorExportFailing"})
    62. read_file({"end_line":12,"path":"tests/fixtures/prometheus_rules/otel_collector_tests.yaml","start_line":1})
    63. read_file({"end_line":1600,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1525})
    64. read_spec({"capability":"command-telemetry"})
    65. list_files({"directory":"tests/support/fakes"})
    66. read_issue({"number":4684})
    67. read_issue({"number":1629})
    68. find_issues({"terms":"metric stream instance id"})
    69. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1020,"end_line":1090})
    70. read_file({"path":"k8s/README.md","start_line":495,"end_line":520})
    71. read_file({"end_line":935,"path":"src/devops_cli/telemetry/tracer.py","start_line":910})
    72. search_code({"text":"\"service.instance.id\": self.host_name"})
    73. file_symbols({"path":"src/devops_cli/telemetry/tracer.py"})
    74. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1050,"end_line":1058})
    75. read_file({"path":"k8s/monitoring/prometheus-values.yaml","start_line":570,"end_line":580})
    76. read_spec({})
    77. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1020,"end_line":1090})
    78. search_code({"text":"test_counters_are_monotonic_deltas_from_the_host_not_the_process"})
    79. search_code({"text":"platform.node"})
    80. read_spec({"capability":"command-telemetry"})
    81. read_file({"path":"tests/telemetry/test_telemetry_instruments.py","start_line":900,"end_line":965})
    82. read_file({"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":185,"end_line":260})
    83. read_file({"end_line":200,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":100})
    84. read_file({"end_line":380,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":330})
    85. read_file({"end_line":200,"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":160})
    86. search_code({"text":"host.name"})
    87. read_file({"path":"tests/telemetry/test_telemetry.py","start_line":480,"end_line":530})
    88. search_code({"text":"target_info"})
    89. search_code({"text":"ci docs"})
    90. search_code({"text":"docs generate"})
    91. search_code({"text":"K8S_README"})
    92. search_code({"text":"TELEMETRY.md"})
    93. read_file({"end_line":1120,"path":"src/devops_cli/docs/generator.py","start_line":1095})
    94. search_code({"text":"README"})
    95. search_code({"text":"Alerting"})
    96. search_code({"text":"K8S_README"})
    97. read_file({"end_line":560,"path":"k8s/README.md","start_line":479})
    98. search_code({"text":"K8S_README.read_text"})
    99. search_code({"text":"alert table"})
    100. read_file({"end_line":1340,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1230})
    101. read_file({"end_line":1560,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1470})
    102. search_code({"text":"SERVED_SERIES"})
    103. read_file({"end_line":1660,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1558})
    104. read_file({"end_line":325,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":255})
    105. read_file({"end_line":260,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":200})
    106. read_file({"path":"openspec/changes/archive/2026-11-12-4684-send-cumulative-metrics-to-the-prometheus/proposal.md","start_line":1,"end_line":60})
    107. read_file({"path":"tests/fixtures/metrics/otel-collector.yaml","start_line":50,"end_line":80})
    108. search_code({"text":"The tests are in"})
    109. search_code({"text":"roadmap_service_tools_tests.yaml"})
    110. read_spec({"capability":"otlp-export"})
    111. search_code({"text":"service.instance.id"})
    112. read_file({"path":"openspec/changes/archive/2026-10-27-2039-job-metrics-increase/design.md"})
    113. read_spec({"capability":"metric-instruments"})
    114. read_spec({"capability":"monitoring-collectors"})
    115. read_issue({"number":4684})
    116. read_issue({"number":1629})
    117. list_files({"directory":"tests/fixtures/prometheus_rules"})
    118. read_file({"end_line":40,"path":"docs/TELEMETRY.md","start_line":10})
    119. list_files({"directory":"tests/prometheus"})
    120. list_files({"directory":"tests/roadmap/stage"})
    121. search_code({"text":"OTEL_RESOURCE_ATTRIBUTES"})
    122. search_code({"text":"def docs"})
    123. read_file({"end_line":2195,"path":"src/devops_cli/commands/ci.py","start_line":2110})
    124. read_file({"end_line":940,"path":"src/devops_cli/telemetry/tracer.py","start_line":870})
    125. search_code({"text":"resourceMetrics"})
    126. read_file({"end_line":1010,"path":"tests/telemetry/test_telemetry_instruments.py","start_line":965})
    127. read_file({"end_line":160,"path":"tests/telemetry/test_consolidation_serialization.py","start_line":130})
    128. search_code({"text":"roadmap-service-jobs"})
    129. list_files({"directory":"tests/gate/k8s_checks"})
    130. read_file({"path":"tests/gate/k8s_checks/telemetry_resource.py"})
    131. read_file({"end_line":470,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":380})
    132. search_code({"text":"OTEL_SERVICE_NAME"})
    133. search_code({"text":"- alert: OtelCollectorExportFailing"})
    134. search_code({"text":"test_order"})
    135. search_code({"text":"\"behavior\""})
    136. read_issue({"number":2039})
    137. read_file({"path":"k8s/devops/cronjob-runner.yaml"})
    138. search_code({"text":"deltatocumulative"})
    139. list_files({"directory":"k8s/monitoring"})
    140. read_file({"path":"openspec/changes/archive/2026-10-27-2039-job-metrics-increase/design.md"})
    141. search_code({"text":"concurrencyPolicy"})
    142. search_code({"text":"devops-cli-runner"})
    143. file_symbols({"path":"src/devops_cli/k8s/cluster_job.py"})
    144. read_file({"path":"src/devops_cli/k8s/cluster_job.py","start_line":25,"end_line":180})
    145. callers({"symbol":"build_job"})
    146. search_code({"text":"OTEL_RESOURCE_ATTRIBUTES"})
    147. read_file({"end_line":150,"path":"src/devops_cli/k8s/cluster_job_api.py","start_line":60})
    148. read_file({"end_line":355,"path":"src/devops_cli/commands/k8s/cluster_jobs.py","start_line":280})
    149. read_file({"path":"docs/TELEMETRY.md","start_line":1,"end_line":45})
    150. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1020,"end_line":1090})
    151. search_code({"text":"_running_jobs"})
    152. search_code({"text":"implement-repo"})
    153. search_code({"text":"repositories"})
    154. search_code({"text":"ClusterJobs()"})
    155. search_code({"text":"job_runner_running"})
    156. read_file({"end_line":545,"path":"src/devops_cli/roadmap/implement/implement_submit.py","start_line":470})
    157. search_code({"text":"token_repository"})
    158. list_files({"directory":"k8s/devops"})
    159. read_spec({"capability":"command-telemetry"})
    160. read_spec({"capability":"metric-instruments"})
    161. read_file({"end_line":30,"path":"src/devops_cli/k8s/cluster_job.py","start_line":1})
    162. read_file({"end_line":175,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":118})
    163. find_issues({"terms":"OTEL_RESOURCE_ATTRIBUTES metric stream"})
    164. read_file({"end_line":400,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":330})
    165. read_file({"end_line":520,"path":"k8s/README.md","start_line":480})
    166. read_file({"end_line":20,"path":"tests/fixtures/prometheus_rules/otel_collector_tests.yaml","start_line":1})
    167. list_files({"directory":"tests/fixtures/prometheus_rules"})
    168. list_files({"directory":"tests/config"})
    169. search_code({"text":"service.instance.id"})
    170. read_file({"end_line":40,"path":"tests/config/test_k8s_devops_runtime.py","start_line":1})
    171. search_code({"text":"has not ended"})
    172. search_code({"text":"def test_"})
    173. read_file({"end_line":1115,"path":"src/devops_cli/docs/generator.py","start_line":1094})
    174. search_code({"text":"\"key\": \"host.name\""})
    175. read_file({"end_line":16,"path":"k8s/devops/cronjob.yaml","start_line":11})
    176. read_file({"end_line":62,"path":"k8s/devops/cronjob.yaml","start_line":55})
    177. list_files({"directory":"tests/commands/k8s"})
    178. list_files({"directory":"tests/invariants"})
    179. list_files({"directory":"tests/core"})
    180. list_files({"directory":"tests/prometheus"})
    181. list_files({"directory":"tests/roadmap/stage"})
    182. list_files({"directory":"tests/config"})
    183. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":1010,"end_line":1090})
    184. read_file({"path":"src/devops_cli/telemetry/tracer.py","start_line":905,"end_line":935})
    185. read_file({"end_line":960,"path":"tests/telemetry/test_telemetry_instruments.py","start_line":890})
    186. read_file({"end_line":215,"path":"tests/server/routes/test_k8s_roadmap_service.py","start_line":175})
    187. read_file({"end_line":200,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":118})
    188. read_file({"end_line":400,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":330})
    189. read_file({"end_line":300,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":200})
    190. search_code({"text":"def selectors"})
    191. read_file({"end_line":520,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":400})
    192. read_file({"end_line":400,"path":"src/devops_cli/prometheus/promql.py","start_line":350})
    193. search_code({"text":"rules.yaml"})
    194. read_file({"path":"tests/support/promtool.py"})
    195. search_code({"text":"test rules"})
    196. search_code({"text":"MAX_PROMTOOL_ROUNDS"})
    197. read_file({"end_line":1620,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1480})
    198. read_spec({})
    199. list_files({"directory":"openspec/specs"})
    200. read_spec({"capability":"metric-instruments"})
    201. read_spec({"capability":"command-telemetry"})
    202. references({"name":"service.instance.id"})
    203. search_code({"text":"def execute_job"})
    204. search_code({"text":"job_runner_running"})
    205. read_file({"end_line":360,"path":"src/devops_cli/commands/k8s/cluster_jobs.py","start_line":280})
    206. read_file({"end_line":880,"path":"src/devops_cli/lang/en/messages.py","start_line":860})
    207. read_file({"end_line":545,"path":"src/devops_cli/roadmap/implement/implement_submit.py","start_line":495})
    208. read_file({"end_line":40,"path":"openspec/changes/archive/2026-10-27-2039-job-metrics-increase/design.md","start_line":1})
    209. read_file({"end_line":1120,"path":"src/devops_cli/docs/generator.py","start_line":1085})
    210. read_file({"end_line":40,"path":"docs/TELEMETRY.md","start_line":1})
    211. search_code({"text":"ci docs"})
    212. search_code({"text":"docs generate"})
    213. read_file({"path":"docs/commands/ci.md","start_line":1,"end_line":120})
    214. search_code({"text":"host.name"})
    215. read_file({"end_line":70,"path":"k8s/devops/cronjob.yaml","start_line":50})
    216. read_file({"end_line":540,"path":"tests/telemetry/test_telemetry.py","start_line":470})
    217. search_code({"text":"ROADMAP_SERVICE_JOB"})
    218. search_code({"text":"SERVED_SERIES"})
    219. read_file({"end_line":1420,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":1340})
    220. read_file({"end_line":560,"path":"k8s/README.md","start_line":470})
    221. read_file({"end_line":330,"path":"tests/prometheus/test_k8s_monitoring_alerting.py","start_line":300})
    222. search_code({"text":"target_info"})
    223. read_file({"end_line":90,"path":"docs/roadmap/plan-recheck.md","start_line":40})
    224. search_code({"text":"manifest group"})
    225. search_code({"text":"def form_problems"})
    226. search_code({"text":"ci test"})
    227. read_file({"end_line":330,"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":180})
    228. read_file({"end_line":180,"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":60})
    229. read_file({"path":"tests/support/fakes/cluster_jobs.py"})
    230. search_code({"text":"OTEL_RESOURCE_ATTRIBUTES"})
    231. read_file({"end_line":220,"path":"docs/commands/ci.md","start_line":170})
    232. search_code({"text":"TELEMETRY.md"})
    233. read_issue({"number":4684})
    234. read_issue({"number":2039})
    235. search_code({"text":"def verification_problem"})
    236. read_file({"end_line":600,"path":"src/devops_cli/roadmap/implement/implement_shell_policy.py","start_line":470})
    237. list_files({"directory":"tests/commands/k8s"})
    238. list_files({"directory":"tests/prometheus"})
    239. search_code({"text":"prometheus-values.yaml"})
    240. read_file({"path":"tests/support/fakes/otlp.py"})
    241. read_file({"end_line":290,"path":"tests/support/fakes/otlp.py","start_line":190})
    242. search_code({"text":"resourceMetrics"})
    243. 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).

  9. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    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:

    Closed: the plan cites a removed option (2026-11-12)

    uv run devops roadmap plan-check 5032 fails on the paths gate on 0.123.1:

    openspec/changes/4697-keep-one-metric-stream-per-workload: stage: The plan cites `uv run devops docs generate --sync-readme`: unknown option '--sync-readme' for 'devops docs generate'.
    

    Task 2.3 of tasks.md runs uv run devops docs generate --sync-readme, and #5198 removed the option --sync-readme. With the reader fix of #5262 the plan reads, but it drifted from main. A fix-plan run would hit the defect of the discarded gated plan until #5213 merges. So the triage rule applies: plan the item again, and do not fix this plan.

    #4697 now holds a constraint line, so the stage job plans the item again.

  10. 9 remaining items

  11. added
    status/in-review
    and removed
    status/in-progress
    on Nov 13, 2026
  12. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Pull request #5324 is ready for review. The checks passed.

    Spend: 197 model requests, 13482463 input tokens, 62735 output tokens.

  13. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-runner-20261113-012113-7967 ended: succeeded.
    Image digest: sha256:3c74daae2a5221f4a125666f59c5d499e5ece7b231fb6f19ceea9c7210f5aa03

    The last lines of its log:

    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: grep, ok.
    Tool call: read_file, ok.
    Tool call: edit_file, ok.
    Tool call: run_command, started: uv run devops docs generate
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: git status --short
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: git diff docs/TELEMETRY.md
    Tool call: run_command, program git, ok.
    Tool call: run_command, started: uv run devops ci docs
    Tool call: run_command, program uv, ok.
    Tool call: read_file, ok.
    Tool call: run_command, started: uv run devops ci test tests/docs/test_docs.py ...
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: git grep -n <masked> -- docs ...
    Tool call: run_command, started: uv run ruff check src/devops_cli/docs/generator.py
    Tool call: run_command, program uv, ok.
    Tool call: run_command, program git, ok.
    Tool call: edit_file, ok.
    Tool call: edit_file, ok.
    Tool call: run_command, started: uv run devops ci docs
    Tool call: run_command, started: git status --short
    Tool call: run_command, program git, ok.
    Tool call: run_command, program uv, ok.
    Tool call: run_command, started: git log --oneline -3
    Tool call: run_command, program git, ok.
    The checks of pull request #5324 still run after 37 s.
    The checks of pull request #5324 still run after 74 s.
    The checks of pull request #5324 still run after 111 s.
    The checks of pull request #5324 still run after 148 s.
    The checks of pull request #5324 still run after 185 s.
    The checks of pull request #5324 still run after 221 s.
    The checks of pull request #5324 still run after 258 s.
    The checks of pull request #5324 still run after 295 s.
    The checks of pull request #5324 still run after 331 s.
    ✓ Took 1 item(s) to a ready pull request, stopped 0.
    Elapsed: 50m 11s
    
  14. removed
    owner/service
    on Nov 13, 2026
  15. removed
    status/in-review
    on Nov 13, 2026
  16. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 02:28 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p1-highscope/telemetrysource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions