Hello Jordan Layton,
The discrepancy you're experiencing between the pie chart values and the table view values when changing the resolution in Grafana can be attributed to how data aggregation works at different resolutions.
When you change the resolution (1m vs 2m), Grafana and the Geneva Datasource group time-series data into those respective intervals. Here's a breakdown to help clarify what's happening:
1. Sampling vs. Downsampling (Time Resolution):
Sampling: Collecting data at a fixed time interval.
Example: Getting a metric value every 1 minute.
Down-sampling: Aggregating finer-grained data into coarser intervals.
Example: Taking multiple 1-minute samples and averaging them into a single 2-minute value.
Impact of Different Resolutions:
ResolutionWhat HappensProsConsResolutionWhat HappensProsCons1mYou collect or view data every minuteFine-grained detailCan show incomplete data if emissions are delayed or sparse2mData is aggregated into 2-minute chunksSmooths data, better for summariesMight hide short spikes or rapid changes
2. Grafana Pie Charts – How Aggregation Works
- Pie charts in Grafana don't show time series over time — they show totals per group (label).
How Grafana Calculates Pie Chart Values:
- Group time series by label (e.g., HTTP status: 200, 404, etc.).
- Reduce each time series (per label) into a single number, using:
Total (sum) – most common
Mean – average
Max – peak value
3. Display as a pie slice per label.
The pie chart’s accuracy depends heavily on the data available in the time window.
i) If your resolution is too fine (1m), some labels might appear smaller or missing due to delayed metric arrival. Be over-fragmented (e.g., multiple tiny time series instead of one clean series).
ii) If your resolution is coarser (2m, 5m), More data fits into each bucket and aggregation (sum or mean) is more stable and reliable.
--Example Scenario: HTTP Status Code Counts
Imagine you're counting HTTP responses (status codes):
- At 1m resolution: In minute 1: 10 200, 2 500
- In minute 2: Only 5 200, because some were delayed.
Grafana may show fewer 200s or multiple fragments.
- At 2m resolution: Minute 1–2: 15 200, 2 500 (more complete picture)
Pie chart will more accurately show traffic distribution by status.
Hence, 1m resolution = high detail, but more risk of fragmentation or incomplete buckets
2m+ resolution = less detail, but more accurate aggregations in pie charts
Pie charts rely on reduced metrics per label, and the input data quality (sampling + timing) matter a lot3. Display as a pie slice per label.
If the provided solution works for your query, please do not forget to Upvote it. this can be beneficial to other community members.it would be greatly appreciated and helpful to others.
Thanks