Skip to content

chore(monitoring): Drop old label fallbacks from AI spend dashboard #2202

Closed

Description

@dan-petty

Friction

#2194 makes the local-savings queries of k8s/monitoring/dashboards/ai-spend.json also count the token series from before #1672, which have no local and no operation label: a series without local counts as local when provider="gateway" and server!="cache", and a series without operation counts as chat. The last such sample was at about 2026-10-24T00:28Z (roadmap-service has 0 replicas), and Prometheus keeps 30 days, so after about 2026-11-23 no such series is in range and the mapping is dead code in 8 queries, in the recorded fixture tests/fixtures/recorded_queries/ai_spend_local_savings.yaml and in its tests.

What should happen

When count(last_over_time(devops_cli_ai_tokens_total{local=""}[30d])) is empty, the 8 queries select only local="true" and operation, and the record and tests of the old label sets go.

Acceptance criteria

  • The check query above returns no series (record the date and output in the PR).
  • The savings queries name no series without local, and the dashboard tests pass with the record of the current label set only.

Source: #2194

Alternatives check of 2026-11-03: not-applicable.
Class: chore, no search.
Tool: none found.

Proposed design

Problem statement

The 8 local-savings queries of k8s/devops/dashboards/ai-spend.json still map token series from before the local label (#1672) and the operation label (#1623): a series without local counts as local when provider="gateway" and server!="cache", and a series without operation counts as chat. The last such sample was at about 2026-10-24T00:28Z, and Prometheus keeps 30 days, so it leaves the range at about 2026-11-23T00:28Z. The mapping is dead code in the 8 queries, in the fixture tests/fixtures/recorded_queries/ai_spend_local_savings.yaml, and in its tests. A reply reports that PR #5931 for #5914 replaces the queries, but at this commit the dashboard, fixture and tests still hold the fallback, so the removal remains; it starts only after the check query returns no series.

Acceptance criteria

Requirement: Savings queries select only labelled series

Each of the 8 savings queries of k8s/devops/dashboards/ai-spend.json SHALL select token series with local="true" only, and no savings expression SHALL contain a local="" selector or a provider="gateway", server!="cache" fallback.

Scenario: No fallback selector in a savings query

  • WHEN The dashboard test reads each expression that _savings_targets returns from the dashboard
  • THEN The test finds 8 expressions, none contains local="" or provider="gateway", server!="cache", and each contains the local="true" selectors for both operation branches.

Requirement: Fixture holds the current label set only

The fixture tests/fixtures/recorded_queries/ai_spend_local_savings.yaml SHALL hold only series that carry the local and operation labels, and its expr SHALL equal the query of the panel "Local Cloud Savings in Range".

Scenario: Fixture and panel agree

  • WHEN The dashboard test loads the fixture and compares each record with the panel query and the dashboard prices
  • THEN Every series has the local and operation labels, expr equals the panel query, and each result equals the priced total of its series.

Requirement: Tests cover no series without the local label

The dashboard tests SHALL NOT model a series without the local label, and _is_local SHALL read the local label only.

Scenario: Test helpers read one label

  • WHEN The dashboard test suite runs
  • THEN _is_local returns true only for local="true", _priced_total reads the operation from the labels with no default, and no test refers to a series without local.

Requirement: Panel descriptions and docs drop the fallback text

The description of each savings panel and the documentation SHALL NOT state that a series without the local or operation label counts as local or as chat.

Scenario: Descriptions and docs match the queries

  • WHEN The dashboard and documentation tests read the descriptions, k8s/README.md, src/devops_cli/docs/generator.py and docs/TELEMETRY.md
  • THEN No description, README line or generated page contains the text about a series from before the local or operation label, and devops docs check passes.

Requirement: Fixture drops the deleted price rule key

The fixture SHALL NOT hold the key deleted_price_rule_first_sample, and the dashboard tests SHALL NOT read that key.

Scenario: Fixture and tests drop the deleted key

  • WHEN The dashboard test suite runs and loads the fixture
  • THEN The fixture has no deleted_price_rule_first_sample key and no test reads that key.

Existing Tool Considered

No open, maintained tool covers the need. The closest is grafana/dashboard-linter (https://github.com/grafana/dashboard-linter, fetched 2026-11-16), an open Grafana linter for Prometheus dashboards that cannot remove a dead PromQL fallback branch; promtool checks PromQL syntax but not Grafana dashboard JSON. The change deletes the branches in one dashboard, one fixture and their tests by hand: one pull request, about 30 minutes of edits and a few thousand tokens, plus the wait until the retention window closes. The alternatives check of 2026-11-03 gave not-applicable (class chore, no search, no tool found).

Key questions

None.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/chore
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

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

  3. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Refine cannot set this item to Ready at bb46660 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • The Prometheus 30-day retention window must expire (after ~2026-11-23) before the check query can confirm no old-label series remain.
  4. added
    priority/p2-medium
    status/new
    value/medium
    effort/low
    scope/monitoring
    on Oct 28, 2026
  5. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable

    Class: chore. The check makes no search and no model call for an item of this class.

    Tool: none found

    Checked on 2026-11-03. A person decides what this means for the item. The check changes no label and closes no issue.

  6. 4 remaining items

  7. dan-petty commented on Nov 9, 2026

    @dan-petty
    OwnerAuthor

    Premise check on 2026-11-09 confirms that the check query still returns series. The query count(last_over_time(devops_cli_ai_tokens_total{local=""}[30d])) returned 30 series at 2026-11-09T18:18Z. The latest sample of an unlabelled series is from 2026-10-24T04:33:41Z. The Prometheus 30-day retention window expires at approximately 2026-11-23T04:33Z. This item cannot be built as written until that retention window expires. Removal of the fallbacks before that date violates acceptance criterion 1 and undercounts local savings for historical ranges.

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

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at d31717d until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • The Prometheus 30-day retention must drop the last old-label sample (2026-10-24T04:33Z), at about 2026-11-23T04:33Z.
  9. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    Pull request #5931 (for #5914) replaces the local-savings queries of ai-spend.json. They read the gateway token counters litellm_input_tokens_metric_total and litellm_output_tokens_metric_total, and no query reads devops_cli_ai_tokens_total{local=""}. The record tests/fixtures/recorded_queries/ai_spend_local_savings.yaml holds gateway series only, and the tests of the old label sets are gone.

    After the merge, no work of this item is left, and the check query of criterion 1 does not apply. A person can close it as not planned.

  10. added
    status/ready
    and removed
    status/new
    on Nov 16, 2026
  11. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

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

  12. added
    owner/service
    on Nov 16, 2026
  13. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Staged: branch chore/2202-drop-old-label-fallbacks-from-ai, draft pull request #5941. 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. Drop the fallback from the savings queries and their record: 31642 tokens
    2. Read one label in the savings test helpers: 17819 tokens
    3. Drop the fallback text from the docs: 47014 tokens

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • major false_premise at proposal (security): The plan claims the dashboard test fails when a savings query holds a fallback selector, but _misses_a_local_token_or_the_price only requires the two local="true" selectors and the absence of the label_replace clause, so a query that keeps a local="" disjunct passes; the safeguard the security section names does not exist. Evidence: "tests/prometheus/test_k8s_monitoring_dashboards.py fails when a savings query holds a fallback selector"
    • major contrived_test at tasks (1): Group 1 changes _misses_a_local_token_or_the_price to require only the two local="true" selectors and to drop the label_replace clause, so test_each_savings_query_prices_all_local_tokens_at_the_dashboards_prices passes even when a savings query keeps the local="" and provider="gateway", server!="cache" disjuncts; the acceptance criterion that the savings queries name no series without local is unguarded. Evidence: "set LOCAL_TOKEN_SELECTORS to the two local="true" selectors and drop the "operation", "chat", "", "" clause from _misses_a_local_token_or_the_price"
    • minor spec_delta_wrong at spec ai-spend-pricing (The savings queries price the labelled local tokens at the reference price): The scenario "The record of the current label set" says every recorded series carries local="true" and operation, but the plan deletes test_the_records_hold_each_kind_of_series_and_a_range_before_the_price_rule and adds no check of the kept record's labels; _priced_total skips a series without local, so a stale series would pass the remaining test. Evidence: "Every recorded series carries local="true" and operation"
    • minor false_premise at proposal (security): The plan names a test test_each_configmap_fits_kubectl_last_applied_annotation that does not exist; the module holds test_each_configmap_fits_kubectls_last_applied_annotation. Evidence: "test_each_configmap_fits_kubectl_last_applied_annotation fails when the ConfigMap grows past the limit."
    • minor other at tasks (3): Group 3's documentation tells the implementer to update src/devops_cli/telemetry/instruments.py, but the group's changes does not list that file and its devops_cli_ai_tokens_total description holds no fallback text, so the instruction would edit a file outside the plan. Evidence: "Update src/devops_cli/telemetry/instruments.py"
    • minor other at tasks (2): Group 2 updates the fallback docstrings but leaves the docstring of test_each_savings_query_prices_all_local_tokens_at_the_dashboards_prices, which still says the local tokens include the series from before the local label; the plan's what_changes says the tests model no series without local. Evidence: "The local tokens include the series from before the local (fix(ai): local savings use one reference price per request kind for every process, and an unknown model or reference warns instead of pricing at $0 #1672)"

    The runs of the planner and the review made 129 model request(s), and used 8318299 input tokens and 211460 output tokens. The tool calls, in order:

    1. read_spec({"capability":"ai-spend-pricing","requirement":"The savings queries price every range and every token series"})
    2. file_symbols({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py"})
    3. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":326,"end_line":530})
    4. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":488,"end_line":540})
    5. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":1,"end_line":101})
    6. references({"name":"local=\"\""})
    7. references({"name":"server!=\"cache\""})
    8. read_file({"end_line":612,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":538})
    9. read_file({"end_line":360,"path":"k8s/README.md","start_line":335})
    10. search_code({"text":"before the 'local' label"})
    11. search_code({"text":"counts as local"})
    12. search_code({"text":"server!=\\\"cache\\\", operation"})
    13. search_code({"text":"\"title\": \"Local"})
    14. search_code({"text":"before the operation label"})
    15. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1050,"end_line":1090})
    16. read_file({"path":"docs/TELEMETRY.md","start_line":198,"end_line":222})
    17. search_code({"text":"docs check"})
    18. search_code({"text":"last_over_time"})
    19. search_code({"text":"deleted_price_rule_first_sample"})
    20. search_code({"text":"ai_spend_local_savings"})
    21. read_file({"path":"tests/prometheus/test_dashboard_queries.py","start_line":1,"end_line":60})
    22. search_code({"text":"Savings"})
    23. search_code({"text":"Local Cloud"})
    24. read_file({"end_line":200,"path":"tests/prometheus/test_dashboard_queries.py","start_line":60})
    25. read_file({"path":"openspec/specs/gateway-caller-telemetry/spec.md","start_line":30,"end_line":70})
    26. read_file({"path":"openspec/specs/ai-spend-pricing/spec.md","start_line":130,"end_line":170})
    27. read_issue({"number":2194})
    28. find_issues({"terms":"ai-spend dashboard local savings"})
    29. read_issue({"number":5931})
    30. read_issue({"number":5784})
    31. read_issue({"number":5932})
    32. read_file({"end_line":745,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":692})
    33. search_code({"text":"def test_each_panel"})
    34. read_file({"end_line":300,"path":"tests/prometheus/test_dashboard_queries.py","start_line":200})
    35. read_file({"end_line":30,"path":"tests/fixtures/recorded_queries/ai_spend_local_savings.yaml","start_line":1})
    36. read_file({"end_line":150,"path":"k8s/devops/dashboards/ai-spend.json","start_line":136})
    37. search_code({"text":"ai_tokens"})
    38. search_code({"text":"def query"})
    39. read_file({"end_line":145,"path":"src/devops_cli/commands/prometheus.py","start_line":100})
    40. read_spec({"capability":"ai-spend-pricing","requirement":"The savings queries price every range and every token series"})
    41. search_code({"text":"deleted_price_rule_first_sample"})
    42. read_spec({"capability":"ai-spend-pricing","requirement":"The savings queries price every range and every token series"})
    43. file_symbols({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py"})
    44. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":440,"end_line":530})
    45. search_code({"text":"deleted_price_rule_first_sample"})
    46. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":80,"end_line":105})
    47. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":400,"end_line":530})
    48. read_spec({"capability":"ai-spend-pricing","requirement":"The savings queries price every range and every token series"})
    49. search_code({"text":"reference_price_usd_per_token"})
    50. search_code({"text":"no behavior test"})
    51. search_code({"text":"_scenario_problems"})
    52. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1020,"end_line":1200})
    53. read_spec({"capability":"ai-spend-pricing","requirement":"The savings queries price every range and every token series"})
    54. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":985,"end_line":1028})
    55. search_code({"text":"def _length_problems"})
    56. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":790,"end_line":900})
    57. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":400,"end_line":470})
    58. search_code({"text":"counts as local"})
    59. search_code({"text":"before the operation label"})
    60. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":78,"end_line":102})
    61. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1058,"end_line":1080})
    62. read_file({"path":"k8s/README.md","start_line":335,"end_line":360})
    63. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":435,"end_line":520})
    64. search_code({"text":"server!=\\\"cache\\\", operation"})
    65. search_code({"text":"_misses_a_local_token_or_the_price"})
    66. read_spec({"capability":"ai-spend-pricing"})
    67. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":380,"end_line":560})
    68. read_spec({"capability":"ai-spend-pricing","requirement":"The savings queries price every range and every token series"})
    69. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":80,"end_line":110})
    70. search_code({"text":"server!=\\\"cache\\\", operation"})
    71. search_code({"text":"before the operation label"})
    72. read_file({"path":"k8s/README.md","start_line":330,"end_line":365})
    73. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1040,"end_line":1085})
    74. read_spec({"capability":"ai-spend-pricing","requirement":"The AI spend dashboard holds the reference prices"})
    75. search_code({"text":"def check"})
    76. search_code({"text":"\"docs check\""})
    77. search_code({"text":"ci test"})
    78. search_code({"text":"def docs"})
    79. repo_map({"directory":"src/devops_cli/commands"})
    80. read_file({"path":"src/devops_cli/commands/docs.py","start_line":1,"end_line":80})
    81. search_code({"text":"local"})
    82. read_file({"path":"src/devops_cli/commands/docs.py","start_line":180,"end_line":300})
    83. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":540,"end_line":575})
    84. references({"name":"local=\"\""})
    85. references({"name":"server!=\"cache\""})
    86. search_code({"text":"Remove that mapping"})
    87. search_code({"text":"before the 'local'"})
    88. callers({"symbol":"_savings_record"})
    89. callers({"symbol":"_priced_total"})
    90. search_code({"text":"_savings_record()"})
    91. search_code({"text":"_priced_total("})
    92. search_code({"text":"ai_tokens_total"})
    93. read_file({"path":"src/devops_cli/telemetry/instruments.py","start_line":1,"end_line":60})
    94. search_code({"text":"documentation: str | None"})
    95. search_code({"text":"class StageGroup"})
    96. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":521,"end_line":580})
    97. search_code({"text":"def _manifest_problems"})
    98. search_code({"text":"def _other_problems"})
    99. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":590,"end_line":650})
    100. read_file({"path":"src/devops_cli/commands/docs.py","start_line":80,"end_line":175})
    101. search_code({"text":"prometheus query"})
    102. read_file({"path":"k8s/devops/dashboards/ai-spend.json","start_line":300,"end_line":360})
    103. search_code({"text":"pending-person"})
    104. search_code({"text":"class StageCriterion"})
    105. read_spec({"capability":"gateway-caller-telemetry","requirement":"The dashboard counts each gateway call once"})
    106. search_code({"text":"Tokens Processed in Range"})
    107. list_files({"directory":"k8s/devops/dashboards"})
    108. list_files({"directory":"k8s/monitoring/dashboards"})
    109. find_issues({"terms":"savings queries"})
    110. read_issue({"number":5931})
    111. read_issue({"number":5925})
    112. read_issue({"number":5784})
    113. search_code({"text":"README"})
    114. search_code({"text":"k8s/README.md"})
    115. read_issue({"number":5932})
    116. read_issue({"number":2194})
    117. search_code({"text":"LLM and embedding tokens"})
    118. search_code({"text":"local: true"})
    119. read_file({"path":"src/devops_cli/telemetry/instruments.py","start_line":100,"end_line":120})
    120. search_code({"text":"test_each_configmap_fits_kubectl_last_applied_annotation"})
    121. search_code({"text":"fails when a savings query"})
    122. search_code({"text":"LAST_APPLIED_ANNOTATION_LIMIT_BYTES"})
    123. search_code({"text":"annotation limit"})
    124. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":195,"end_line":220})
    125. search_code({"text":"def _is_scenario_command"})
    126. search_code({"text":"def _is_code_identifier"})
    127. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":70,"end_line":130})
    128. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":395,"end_line":560})
    129. search_code({"text":"fits_kubectl_last_applied_annotation"})
    130. search_code({"text":"_misses_a_local_token_or_the_price"})
    131. search_code({"text":"LAST_APPLIED_ANNOTATION_LIMIT_BYTES"})
    132. search_code({"text":"LOCAL_TOKEN_SELECTORS"})
    133. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":190,"end_line":225})
    134. search_code({"text":"before the local"})
    135. read_file({"end_line":1075,"path":"src/devops_cli/docs/generator.py","start_line":1055})
    136. read_file({"path":"k8s/README.md","start_line":330,"end_line":360})
    137. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":419,"end_line":428})
    138. search_code({"text":"provider=\"gateway\""})
    139. read_file({"end_line":201,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":200})
    140. read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":380,"end_line":620})
    141. list_files({"directory":"k8s/devops/dashboards"})
    142. read_file({"path":"k8s/devops/dashboards/ai-spend.json","start_line":85,"end_line":100})
    143. search_code({"text":"before the operation label"})
    144. search_code({"text":"server!=\\\"cache\\\", operation"})
    145. read_file({"end_line":160,"path":"k8s/devops/dashboards/ai-spend.json","start_line":140})
    146. read_file({"path":"tests/fixtures/recorded_queries/ai_spend_local_savings.yaml","start_line":20,"end_line":80})
    147. read_file({"path":"k8s/README.md","start_line":335,"end_line":365})
    148. read_file({"end_line":1080,"path":"src/devops_cli/docs/generator.py","start_line":1050})
    149. read_file({"end_line":220,"path":"docs/TELEMETRY.md","start_line":195})
    150. search_code({"text":"def check"})
    151. list_files({"directory":"src/devops_cli/commands"})
    152. file_symbols({"path":"src/devops_cli/commands/docs.py"})
    153. file_symbols({"path":"src/devops_cli/commands/ci.py"})
    154. read_file({"path":"src/devops_cli/commands/docs.py","start_line":43,"end_line":170})
    155. read_spec({"capability":"ai-spend-pricing"})
    156. references({"name":"deleted_price_rule_first_sample"})
    157. references({"name":"ai_spend_local_savings"})
    158. read_file({"end_line":110,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":70})
    159. search_code({"text":"test_each_configmap_fits_kubectls_last_applied_annotation"})
    160. search_code({"text":"Savings"})
    161. read_file({"end_line":735,"path":"k8s/devops/dashboards/ai-spend.json","start_line":610})
    162. read_spec({"capability":"ai-spend-pricing","requirement":"The savings queries price every range and every token series"})
    163. callers({"symbol":"LOCAL_TOKEN_SELECTORS"})
    164. callers({"symbol":"_is_local"})
    165. search_code({"text":"LOCAL_TOKEN_SELECTORS"})
    166. search_code({"text":"_is_local"})
    167. references({"name":"local=\"\""})
    168. references({"name":"server!=\"cache\""})
    169. search_code({"text":"before the 'local'"})
    170. search_code({"text":"description"})
    171. read_file({"end_line":2215,"path":"src/devops_cli/commands/ci.py","start_line":2150})
    172. search_code({"text":"label_replace"})
    173. file_symbols({"path":"src/devops_cli/prometheus/promql.py"})
    174. read_file({"end_line":415,"path":"src/devops_cli/prometheus/promql.py","start_line":190})
    175. search_code({"text":"SAVINGS_RECORD"})
    176. search_code({"text":"_savings_record"})
    177. read_file({"end_line":380,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":300})
    178. read_file({"end_line":1205,"path":"k8s/devops/dashboards/ai-spend.json","start_line":1185})
    179. search_code({"text":"grouping_labels"})
    180. search_code({"text":"falls_back_to_constant"})
    181. read_file({"end_line":830,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":755})
    182. search_code({"text":"readability_problems"})
    183. read_file({"end_line":660,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":615})
    184. read_file({"end_line":860,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":830})
    185. read_file({"end_line":360,"path":"tests/commands/k8s/test_stack_dashboards.py","start_line":300})
    186. read_file({"end_line":2040,"path":"src/devops_cli/commands/ci.py","start_line":1973})
    187. list_files({"directory":"openspec/changes"})
    188. file_symbols({"path":"src/devops_cli/commands/prometheus.py"})
    189. search_code({"text":"\"records\""})
    190. search_code({"text":"_expressions"})
    191. read_file({"end_line":480,"path":"tests/commands/k8s/test_stack_dashboards.py","start_line":380})
    192. search_code({"text":"DASHBOARD_EXPORTERS"})
    193. read_file({"end_line":280,"path":"tests/commands/k8s/test_stack_dashboards.py","start_line":230})
    194. search_code({"text":"counts as local"})
    195. search_code({"text":"Remove that mapping"})
    196. read_file({"end_line":230,"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":195})
    197. read_file({"path":"tests/fixtures/recorded_queries/ai_spend_local_savings.yaml","start_line":1,"end_line":20})

    Tool calls: callers=4 (empty=0), file_symbols=6 (empty=0), find_issues=2 (empty=0), list_files=5 (empty=0), read_file=71 (empty=0), read_issue=9 (empty=0), read_spec=11 (empty=0), references=8 (empty=0), repo_map=1 (empty=0), search_code=80 (empty=4)

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

  14. added
    owner/service
    and removed
    owner/service
    on Nov 16, 2026
  15. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    Done by #5931 (merged 2026-11-16 06:00Z). Every savings query of k8s/devops/dashboards/ai-spend.json now reads the gateway token counters of the local groups, so no query, recorded fixture, test helper or document on main holds the old-label fallback (local="", a series with no operation). The plan pull request #5941 is closed because it has nothing left to change.

  16. removed
    status/ready
    on Nov 16, 2026
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/lowpriority/p2-mediumscope/monitoringsource/agenttype/chorevalue/medium

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions