Logit.io
Why Grafana resolved an alert when a series went missing
← Back to blog
11/24/2026 · 14 min read

Why Grafana resolved an alert when a series went missing

Logit.io Team
Logit.io Team
Technical Content Team

Last updated 11/24/2026

How To GuidesGetting Started

Grafana can send a resolved notification for a silent host when its series goes missing while another host still returns data. After the configured stale interval, Grafana resolves and evicts the old alert instance with the reason MissingSeries. A resolution alone cannot establish host recovery.

That kind of resolution can look like a recovery when the host is still missing. If you treat it as a clean bill of health, the next person on call may stop looking for a silent machine.

The walk-through below uses illustrative example values for two hosts, a and b, and a Grafana-managed heartbeat rule. Start with the last returned label set and the evaluation that produced the resolution. Open Grafana with Launch Metrics, then give the service owner the evidence and name the person who will confirm whether the host should still be reporting.

Contents

Read the identity on the notification

Alert instance and evaluation

Open the individual resolved alert within the notification. A notification can group several instances, and the subject or group status may describe the batch. Copy the rule name and UID, the instance's full labels and its resolution reason. A rule defines the query, condition and timing. One Grafana-managed rule can track an instance for each distinct set of labels returned by its condition. In this example, host="a" and host="b" distinguish two instances of the same rule. The rule adds team="service-example" for routing. Check that the old firing instance was uniquely identified by stable labels. Save the raw query labels and the alert labels separately, since the two sets can differ.

If a rollout changed host, instance or another label used by the condition, the old instance can disappear while a new one appears for the same machine. A query edit that groups away host can also remove the old identity. Compare the full condition label set before and after the change. A rule title and a matching value on a dashboard leave the identity question open.

Get the evaluation time from rule history where available, then compare it with the notification receipt time. Re-run the same query and condition at that evaluation time with the same data source, selectors and time settings. Use an instant query for the instant selector in this example. Save the raw vector and note whether the same label set reaches the condition. Does the evaluation still return at least one series? If so, list which label sets survived. An Explore graph drawn over an hour can still contain a host that was absent at a particular tick. If you need to find the query and inspect its output first, see the first Grafana dashboard walkthrough.

On a stale resolution, grafana_state_reason is an annotation attached to the individual alert. In a webhook payload, look for this field on the entry whose labels and status match the resolved instance:

alerts[].annotations.grafana_state_reason

State history can show the transition as Normal with a MissingSeries reason, even after the instance has left the active list. If a notification template omits the annotation, inspect the payload or expose it inside the loop over resolved alerts. Use labels to match notification policies. Grafana stale alert instances.

Follow two host series across evaluations

Breach, eviction and return

The timeline below uses illustrative example values, not a capture from a live stack. The Grafana-managed rule runs every minute. Query A reads the instant vector demo_heartbeat. Threshold B checks A > 1 per host, with a one-minute pending period and keep firing set to zero seconds. A value of 1 or 0 still reaches the threshold and yields a false condition for that host. In PromQL, putting a filtering comparison such as demo_heartbeat > 1 in A would drop those samples and change the test.

The example sets Missing series evaluations to resolve to two, which is Grafana's default when the setting is unset. With a one-minute interval and regular evaluations, the second consecutive tick without the host is two minutes after its last returned result. Confirm the evaluation interval and that setting on your own rule. Also record the pending period, keep-firing period and the No Data and execution error choices. The pending period determines whether the breach reached Alerting. Keep firing affects what happens when a condition clears on a returned sample. The No Data and error choices govern evaluations with an empty result or a failure. Configure Grafana-managed alert rules.

When scrapes stop, an instant query can keep returning a recent sample for a short time, then drop the series. How long that lasts depends on the store and the sample interval. Logit Metrics stores data in VictoriaMetrics, not a Prometheus server. You still query it with PromQL-compatible MetricsQL in Grafana, and ingest goes to an endpoint such as this one:

https://your-stack-id-vm.logit.io

MetricsQL chooses a lookbehind window from the sample interval, and a latency offset (-search.latencyOffset) can hide the most recent samples. Check how long a series remains visible on your own stack rather than assuming Prometheus lookback or stale markers. In this example, host a is missing from the instant result at 12:03, and host b is missing at 12:05, so you can see the difference between one missing host and an empty result. Infrastructure Metrics Storage.

Use two webhook paths as the notification sink in the example. Ordinary threshold events go to /threshold and the separate data-source events go to /datasource. Resolved delivery is enabled. The initial group wait is 10 seconds and group updates use a 30-second interval. Compare the evaluation and receipt times separately. Each destination entry below is an event eligible for delivery. In the raw vector column, a=2 stands for demo_heartbeat{host="a"} with sample value 2. The inventory records the hosts the service owner still expects to report.

Raw vector (UTC evaluation)Expected inventoryPer-host stateReasonDestination
12:00 a=0, b=1a, ba Normal, b NormalBoth values are at or below 1.None
12:01 a=2, b=1a, ba Pending, b NormalFirst breach for a.None
12:02 a=2, b=1a, ba Alerting, b Normala has breached for one minute./threshold firing for a
12:03 b=1a, ba retains Alerting, b NormalFirst evaluation without a.None
12:04 b=1a, ba Normal, then evicted. b Normal.Second evaluation without a. grafana_state_reason is MissingSeries./threshold resolved for a
12:05 []a, ba evicted, b retains Normal. Separate No Data instance.Query A succeeds and returns no series, so Grafana treats the evaluation as No Data./datasource firing for DatasourceNoData
12:06 []a, ba and b evicted. No Data continues.b was Normal when evicted.None
12:10 a=2, b=1a, ba Pending again, b NormalBoth label sets return. Separate No Data instance resolves./datasource resolved for DatasourceNoData
12:11 a=2, b=1a, ba Alerting, b NormalNew breach for one minute./threshold firing for a
12:12 a=0, b=1a, ba Normal, b NormalMeasured zero makes a's condition false./threshold resolved for a
12:13 Query A faileda, bBoth hosts retain Normal. Separate Error instance.Query failed, so no vector was evaluated./datasource firing for DatasourceError
12:14 a=0, b=1a, ba Normal, b NormalQuery succeeds. Separate Error instance resolves./datasource resolved for DatasourceError

To reconstruct the 12:04 resolution, start at 12:02, when the rule last saw demo_heartbeat{host="a"} at 2 and the pending period elapsed. At 12:03 the condition still saw b, while a kept its previous Alerting state. At 12:04 the result still had b and the missing interval for a elapsed. The resolution belongs to the threshold instance for a. The later 12:05 message belongs to the separate No Data instance. When a reappears at 12:10 above the threshold, it starts a fresh pending period. The first new sample confirms that telemetry returned at that tick.

For verification, check the two resolved threshold events side by side. At 12:04 the raw vector contains no a and the notification carries MissingSeries. At 12:12 the same host is present with a measured zero, which clears the configured threshold. Record the last full label set, annotation and destination for each resolution. That comparison tells the service owner which message warrants checking whether the host is still expected and which reflects an observed change in the metric.

Copy this ledger for your own incident. Put the evaluation time alongside the raw vector and the receipt time alongside the destination. In the reason column, preserve the annotation as emitted. If it is unavailable, write down the observed transition and mark the reason as unknown.

Raw vector (UTC evaluation)Expected inventoryPer-host stateReasonDestination
     
     
     

Choose the check for absence

Compare expected hosts with recent samples

If a should always report, give its absence a separate condition. Use an explicit selector for the host, then choose a time window that covers ordinary scrape gaps and ingestion delays. This expression returns a series with host="a" and value 1 when the range contains no matching samples. It returns an empty vector when a matching sample exists, even when the stored sample is zero. The five-minute window here is an example. Pick a window that matches how often the host reports, and confirm on your stack how long a last sample stays visible. Prometheus absence and presence functions.

absent_over_time(demo_heartbeat{host="a"}[5m])

For a dedicated Grafana-managed rule using this expression, use a threshold above zero. Configure its empty result as Normal, since any matching sample makes the absence condition false. Keep execution errors visible through a separate error route. The threshold rule in the example still uses its own No Data setting.

In this example, host a last reported at 12:02. An instant query can drop the series before a longer range selector stops seeing that last sample. How quickly that happens depends on the store, the sample interval and the window you choose. A fleet-wide check over the same window stays empty while any other host still has a sample in range, so it cannot name an expected host that never appears in the result.

absent_over_time(demo_heartbeat[5m])

For several hosts, publish an independent inventory metric with one expected_host series at value 1 for each stable host key. Compare it with the hosts that had any heartbeat sample in your chosen window. PromQL unless keeps rows on the left that lack a match on the right. Match on host, or include further keys such as a cluster when host names can repeat. Keep each key unique in the inventory. Prometheus set operators.

expected_host unless on(host) present_over_time(demo_heartbeat[5m])

With both hosts in inventory, this expression names a host once it has no sample in the window, and it returns no rows once both report again. For a Grafana-managed absence rule, decide what a healthy result looks like before configuring No Data. The sparse expression above is empty when everyone reports. The following query gives the threshold a numeric result per expected host, with 1 for missing and 0 for present. Set the condition to above zero, then allow for the absence window, any pending period and notification grouping in the paging delay.

((expected_host unless on(host) present_over_time(demo_heartbeat[5m])) * 1)
or on(host) (expected_host * 0)

Have the service owner define when a new host becomes expected, and have the inventory publisher keep the series current while that obligation lasts. On confirmed retirement, remove the host from inventory and verify that its entry actually disappears from the query after the retired series has dropped out on your stack. An explicit host rule also needs to be updated if it names that retired host. For temporary maintenance, agree how to handle the alert while preserving the expectation to resume reporting. Monitor the freshness of the inventory separately. If it stops arriving, the absence comparison can lose the very list it needs, including when the heartbeat data also disappear.

Separate data-source health from service health

Results and notification routing

Returned zero. a=0 is a sample from the same host. At 12:12 it makes this rule's > 1 condition false. For a real metric, use its definition to determine what a zero says about service health.

Partial disappearance. Query A succeeds and returns b at 12:03 and 12:04. The old a instance ages out. Check the expected inventory and investigate the missing host, scrape path or label change.

All series absent. Query A succeeds with [] at 12:05. With the example's No Data choice, Grafana creates a separate DatasourceNoData instance. Check time settings, selectors and whether other queries still see samples from that data source.

Failed query. Query A returns an error at 12:13. With the example's Error choice, Grafana creates a separate DatasourceError instance. Look at the error detail for timeout, connectivity or query problems. The failure supplies no measurement of either host.

These data-source alerts are separate from the original per-host threshold alert and can enter their states immediately, depending on the pending period. Grafana's documentation describes them with labels for the alert rule name, the rule UID and the data source UID. Check the actual labels on your stack before you write a policy matcher, including whether a host label is present. A matcher that requires host="a" can miss either of these alerts. The example policy matches the two generated alert names and sends them to /datasource. No data and error handling and Grafana's guide to connectivity errors.

Check the policy or direct contact point on the original rule, then the destination for the separate data-source alert. Inspect grouping, active silences or mute timings and whether resolved delivery is enabled. Decide who can verify the expected host and who can investigate the data source. For example, [email protected] and Slack #alerts-lab are illustrative destinations. Logit.io's Launch Metrics opens Grafana, where the documented workflow covers metric conditions, notification policies and email and Slack contact points. Review Metrics alerting and notification routing.

Frequently asked questions

Can a MissingSeries resolution still show the last value?

Yes. A stale resolution can carry values retained from the previous evaluation of that instance. Check the evaluation time that produced the resolution and the last time the vector actually contained the host. The value attached to the alert can describe the earlier breach while the reason describes eviction. Grafana's missing-data guide.

No Data handling and one missing host

Changing the No Data setting controls how the rule handles an evaluation with no data. While some hosts still return results, use an explicit host check or compare recent samples with inventory to alert on an expected host's absence. For hosts designed to come and go, agree on the reporting obligation before choosing a per-host alert.

The free trial

Yes. The free trial includes every feature, including a Metrics stack and Grafana alerting. Send metrics to a trial Metrics stack so you have a rule and an evaluation history to inspect. Getting started with the Logit.io trial.

Next steps

Send the service owner the last returned label set, the last sample or evaluation time, the resolution reason and the name of the person who will confirm whether the host should still exist. For this example, the handoff reads “demo_heartbeat{host="a"} last returned 2 at 12:02 UTC. The threshold instance resolved at 12:04 with MissingSeries while b still reported. Confirm whether a should still exist.” If the host should still report, agree on the absence window, pending period and recipient with that owner. Review who receives the agreed absence condition and who receives data-source alerts together in the Metrics alerting overview.

Start Free Trial

Unlock complete visibility with hosted ELK, Grafana, and Prometheus-backed Observability

Start Free Trial

Get the latest Elastic Stack & logging resources when you subscribe

Want to see this in action?
Start a free trial and connect logs to your alert workflows.