Course outline

Grafana / Advanced: access, dependencies, and evidence / Lesson 21

Alert instance identity and missing series

Reason about label sets, changing series and notification evidence for Grafana-managed alert rules.

About 3 min readContent reviewed
On this page

Lesson goals

  • Distinguish an alert rule from its labeled instances.
  • Investigate a missing series without assuming the monitored service recovered.

Define the instance population

One alert rule can evaluate multiple labeled series and produce distinct instances. Decide which labels identify an actionable service and which are needed for routing, then document their expected cardinality. A changing label can create a different identity rather than update a stable one. Grafana behavior depends on rule type and deployed version, so review the applicable instance and notification semantics before changing production rules.

Inspect the first evaluation

This synthetic result contains checkout instances in north and south. It represents the labels relevant to the exercise, not a live Grafana API response. A reviewer should record the rule identity, evaluation time, query window and complete relevant labels. A single firing or resolved notification cannot describe every instance when several label sets are evaluated independently.

json Two synthetic alert instances
{"evaluation":1,"instances":[{"service":"checkout","region":"north"},{"service":"checkout","region":"south"}]}

The two region labels distinguish the example instances under one rule.

Recognize a missing series

At the next synthetic evaluation north remains but south is absent. That observation alone does not prove that south recovered; its telemetry or label set may have changed. Grafana-managed alert rules have documented handling for stale instances, which differs from an entire query returning no data. Verify the configured behavior and timing in the deployed version, and preserve the original labels and source evidence.

json One series is absent
{"evaluation":2,"instances":[{"service":"checkout","region":"north"}],"missing":"south"}

The fixture shows only an absent south label set; it does not assert a service state.

Trace the notification boundary

Notification policies use labels and grouping to route alert instances. Trace a representative instance through its rule labels, policy and contact point without exposing recipient details. A resolved message can reflect the configured lifecycle rather than proof of a healthy service. Decide how missing telemetry should be detected independently, and avoid high-cardinality identifiers that would create unmanageable or unstable routing identities.

Exercise disappearance and recovery

In a disposable rule, emit two synthetic series, remove one for the configured observation period and inspect instance state and a test contact point. Restore it and compare labels, timestamps and resulting evaluation. Also test an entirely empty query and a controlled query error, because these are different conditions. Record actual behavior for the deployed version; do not notify real responders during the exercise.

Common errors and fixes

A missing instance is described as proof of recovery.

Why it happens
Missing telemetry was confused with a healthy measurement.
How to fix it
Inspect source data and instance lifecycle evidence.
Prevent it next time
Monitor telemetry availability separately.

Every request creates a new alert identity.

Why it happens
A high-cardinality request identifier was used as a label.
How to fix it
Use stable labels appropriate to the operational action.
Prevent it next time
Review expected instance cardinality.

A test alert reaches the wrong team.

Why it happens
Its labels do not match the intended notification policy.
How to fix it
Trace the labels and policy with a test contact point.
Prevent it next time
Test routing after label or policy changes.

2 practice exercises

1. South is absent in the second fixture. Is checkout south healthy?

Show worked solution

The fixture cannot establish that. It only shows the label set was absent from the result. Inspect telemetry, query filters and the configured instance lifecycle before deciding whether the service recovered.

2. Why can a changing request ID be a poor alert label?

Show worked solution

Each distinct value can create a new identity and increase instance and notification volume. Prefer stable labels that identify an actionable population; keep individual request details in an appropriate linked diagnostic system.

Key takeaways

  • An alert rule and its labeled instances are different units of evidence.
  • A missing series, a no-data query and an error require separate diagnosis.

Official references