Skip to content

Chart/Stat components show windowed counter values instead of cumulative totals #260

@hovvsoon

Description

@hovvsoon

Feature Description

When using Counter metrics in dashboard configuration, Chart and Stat components display different values compared to Summary component for the same query.

Observed behavior:

Summary: Shows 2.6k (cumulative total from test start)
Chart/Stat: Shows ~200 (appears to be windowed/current time slice value)

Expected behavior:

Chart and Stat components should be able to display cumulative Counter totals from test start, not just current time window values.

In Grafana, Counter metrics display cumulative totals by default, When users want windowed/rate data, they explicitly use rate() functions.

Suggested Solution (optional)

Chart/Stat components (SeriesPlot.ts line 25):

this.samples = digest.samples.select(queries) // Gets time series data
Summary component (SummaryTable.ts line 17):

this.view = digest.summary.select(queries) // Gets aggregated statistics
This explains why:

Chart/Stat display time-series values (individual data points over time)
Summary displays aggregated cumulative values (total from test start to end)

Already existing or connected issues / PRs (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature Request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions