Skip to content

Monitoring dashboards: total-sum visualizations ignore the time range filter #356

Description

@schmitthub

Summary

Several monitoring dashboard visualizations do not honor the dashboard time range picker. Metrics that compute a running total / sum from PromQL render the same value regardless of the selected time window.

Affected visualizations (observed so far)

  • Total Cost (USD)
  • Total Active Time
  • Cost / Active Minute
  • Total Sessions

Pattern: appears to affect essentially any stat panel doing a total sum from PromQL.

Expected

Changing the dashboard time range (e.g. Last 15m → Last 24h) should rescope these totals to the selected window.

Actual

The totals stay fixed and do not respond to the time range selection.

Likely cause

PromQL for these panels is probably summing over the full series (e.g. an unbounded sum() / sum_over_time() without a $__range window, or a counter without the time filter applied), so the panel ignores the dashboard $__range / $__from/$__to variables.

Next steps

  • Audit the PromQL of the affected stat panels.
  • Ensure total-sum queries are scoped to the dashboard range (e.g. sum_over_time(metric[$__range]) or equivalent), and that the panel uses the dashboard time variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions