pingcap / pingcap/tidb

Grafana stacked panels should render null values as zero

Open
#68,230 3 comments 0 reactions 0 assignees View on GitHub
component/observability contribution first-time-contributor type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Problem

Some TiDB Grafana dashboards use stacked graph panels. When a stacked panel keeps the default null handling (`nullPointMode: "null"` or connected gaps), missing points in one series can make the stacked visualization misleading.

For stacked panels, null values should be rendered as zero so gaps in one series do not corrupt the visual stacking of the remaining series.

## Expected contract

For every legacy Grafana graph panel with stack enabled:

- panel or series override has `"stack": true`
- the same panel should use `"nullPointMode": "null as zero"`

Non-stacked panels should not be changed only because they have `nullPointMode`.

## Related fix

PR: https://github.com/pingcap/tidb/pull/68219

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.