Skip to content

fix(telemetry): grafana dashboard projections, rolling averages, and panel queries #1175

Closed

Description

@dan-petty

Problem

Grafana dashboards exhibit query, projection, and layout defects:

  1. Multi-series rolling averages produce per-series lines instead of a single aggregate line.
  2. AI spend and savings projections extrapolate from 1h rate rather than the selected time range ().
  3. LLM Gateway TTFT panel is empty due to non-matching deployment hash joins.
  4. Node Exporter Full dropdowns are empty because node_uname_info is omitted by k8s-monitoring allowlist.
  5. NVIDIA DCGM exporter bottom panels render in 50% rows instead of a 2x2 grid.
  6. Project & engineering velocity dashboard panels are empty because snapshot counters use increase().
  7. Ingress & Cloudflare Tunnel traffic panel is empty when router metrics are missing.

Acceptance Criteria

  • In ai-spend.json, rolling averages are aggregated across all items and projections extrapolate over [].
  • In llm-stack.json, TTFT p95 queries litellm_llm_api_time_to_first_token_metric_bucket by model.
  • In k8s-monitoring-values.yaml, useIntegrationAllowList is true and node_uname_info, node_load.*, node_disk_io_now, node_netstat_Tcp_CurrEstab are included.
  • In nvidia-dcgm.json, bottom 4 panels are arranged in a 2x2 grid.
  • In project-metrics.json, snapshot counters are queried directly without increase().
  • In ingress-tunnel.json, traffic panel falls back cleanly.
  • Gated CI validation suite passes with 100% success.

Activity

  1. added this to the v0.2.26 milestone on Oct 4, 2026
  2. added
    type/bug
    scope/k8s
    scope/telemetry
    priority/p2-medium
    status/in-progress
    on Oct 4, 2026
  3. dan-petty commented on Oct 4, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1176, merged into release/v0.2.26 as d073fa9.

    Summary

    Addresses telemetry visualization and query issues across Grafana dashboards, resolving multi-series rolling average sprawl, time-range spend and savings projections, empty panel queries, node exporter metric allowlists, and dashboard panel grid layouts (#1175).

    • All Dashboards / Rolling Averages: In k8s/monitoring/dashboards/ai-spend.json, converted multi-series rolling average queries across panels 8, 10, 11, and 15 into unified aggregate totals (Total Rolling Avg) across all items instead of generating per-item rolling average line sprawl.
    • AI Spend & Local Savings Projections: In k8s/monitoring/dashboards/ai-spend.json, updated 30-day, 90-day, and 1-year run rate projection stat panels (16, 17, 18) to extrapolate from the observed dashboard time range (rate(...[$__range])) multiplied out for each projection window, replacing the fixed 1-hour active rate.
    • LLM Gateway Time to First Token: In k8s/monitoring/dashboards/llm-stack.json, resolved empty panel by querying histogram_quantile(0.95, sum by (le, model) (rate(litellm_llm_api_time_to_first_token_metric_bucket[5m]))), removing the broken model_id join on ephemeral LiteLLM hash identifiers.
    • Node Exporter Full Dropdown Selectors: In k8s/monitoring/k8s-monitoring-values.yaml, enabled useIntegrationAllowList: true and added node_uname_info, node_load.*, node_disk_io_now, and node_netstat_Tcp_CurrEstab to includeMetrics, restoring host metric series required for d…

    14 file(s) changed.

    How it was verified

    Check runs at f35ac8f:

    • Prune PR DevContainer Images: pass
    • CodeQL: pass
    • Static Analysis: pass
    • Analyze (actions): pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1175-grafana-spend-projections-and-dashboard-fixes.md:

    • In ai-spend.json, rolling averages on panels 8, 10, 11, and 15 compute an aggregate sum across all items labeled Total Rolling Avg (...).
    • In ai-spend.json, 30-day, 90-day, and 1-year projection panels calculate rates over [$__range] extrapolated to 30d, 90d, and 365d.
    • In llm-stack.json, Time to First Token p95 queries litellm_llm_api_time_to_first_token_metric_bucket grouped by (le, model).
    • In k8s-monitoring-values.yaml, useIntegrationAllowList is set to true and includeMetrics includes node_uname_info, node_load.*, node_disk_io_now, and node_netstat_Tcp_CurrEstab.
    • nvidia-dcgm.json positions bottom panels in a 2x2 grid ((0, 16), (12, 16), (0, 24), (12, 24)) and is registered in kustomization.yaml.
    • project-metrics.json displays current snapshot values without increase() on cumulative release counters.
    • ingress-tunnel.json Traffic by Ingress Host / Router provides clean router/service metric evaluation.
    • Unit tests in tests/test_grafana_dashboards.py, tests/test_telemetry_instruments.py, and tests/test_k8s_monitoring_integration.py pass.
    • All 10 CI quality gates pass via uv run devops ci.
    • changelog.d/1175.md records the changes.
  4. added a commit that references this issue on Oct 4, 2026
  5. removed
    status/in-progress
    on Oct 30, 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

    priority/p2-mediumscope/k8sscope/telemetrytype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions