Skip to content

Grafana stacked panels should render null values as zero #5009

@nizheming

Description

@nizheming

Problem

Some TiCDC Grafana dashboards use stacked graph panels. When a stacked panel keeps the default null handling (nullPointMode: "null"), a single series with missing points can make the stacked visualization misleading or broken in Grafana.

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.

Affected dashboards

The current TiCDC fix touches:

  • metrics/grafana/ticdc_new_arch.json
  • metrics/nextgengrafana/ticdc_new_arch_next_gen.json

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: #5008

The PR updates stacked Grafana panels to render null values as zero and verifies the dashboard JSON structurally.

Metadata

Metadata

Assignees

Labels

component/metrics-loggingMetrics and logging component.contributionThis PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.type/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions