Grafana-managed recording rules stop writing to the stack's Prometheus for hours (queries return 200, evaluation retried 3×)

Setup. Grafana Cloud Free, region prod-us-west-0, Grafana 13.4. One Grafana-managed recording-rule group, interval 5m, five recording rules, no explicit target data source (so they write to the stack’s default hosted Prometheus, grafanacloud-prom). Three rules query Loki and two query Prometheus. One of the Prometheus rules is just vector(time()), used as a heartbeat.

Symptom. Several times a week, the rules whose query returns series stopped producing samples for 1 to 16 hours. That included the vector(time()) heartbeat, which reads no data. Rules in the same group whose query returned no series kept evaluating every 5 minutes. Seven windows, all UTC:

  • 2026-10-27 05:45–17:25
  • 2026-10-28 11:30–18:40
  • 2026-11-01 12:00–16:10
  • 2026-11-01 21:40–22:50
  • 2026-11-02 16:20–22:35
  • 2026-11-03 13:22 – 2026-11-04 05:17
  • 2026-11-05 05:07–06:07

What we saw from our side.

  1. In the usage-insights request log (grafanacloud-usage-insights, source=grafana-alert), each affected rule’s query ran 3 times per evaluation, about 1 s apart, with the same time parameter. Each returned HTTP 200 within milliseconds, the heartbeat included. Outside the windows each rule’s query ran once per evaluation. We read this as the remote write of the result failing quickly and the evaluation being retried (max_attempts).
  2. In two windows (2026-10-27 from about 09:30, 2026-10-28 from about 12:15), the affected rules made almost no queries for 6–7 hours, while the empty rules in the same group kept running every 5 minutes. That looks like the write hanging and holding the evaluation.
  3. grafanacloud_grafana_instance_alerting_rule_evaluation_failures_total:rate5m was non-zero only inside the windows (flat 0.0125/s for the whole 16-hour window on Nov 3–4).
  4. The hosted Prometheus tenant was healthy throughout. OTLP ingestion into it continued at 11–50 samples/s, active series were about 3,100 of a 15,000 limit, ingestion was about 27/s of 1,500/s, every query from the ruler returned 200, and no future-timestamped sample preceded any window.
  5. We could not see the error text. Writes do not appear in the usage-insights log, and the rule’s lastError is held only in memory while a window is running. A read-only watcher polled the rules API for 4 days and missed the one window in that time.

What we did. On 2026-11-08 we moved these recordings to the data-source rulers (the Loki ruler for the log queries, the Mimir ruler for the PromQL one) and deleted the Grafana-managed group. Those rulers do not go through Grafana’s recording-rule writer, and so far they write normally.

Questions.

  • Is this a known issue with Grafana-managed recording rules writing to the hosted Prometheus on Grafana Cloud?
  • Is there a way to see the remote-write error for a Grafana-managed recording rule after the fact (a log, a metric, state history)?
  • Could someone at Grafana Labs check the recording-rule writer’s logs for those windows? We can share the stack details privately.

Hi @roshanmjain77,

Your data points to the Grafana managed recording rule write path, but it doesn’t prove it.
HTTP 200 only shows the source queries succeeded, and the evaluation failures metric counts evaluation failures in general, so neither shows that the failing step is the remote write itself.
The missing vector(time()) samples do show the problem isn’t just empty query results.

I couldn’t find a documented way to inspect the remote write error of a Grafana managed recording rule after the fact. This is consistent with what you found with lastError.

As per the documentation leaving the target data source blank writes to grafanacloud-prom.

Moving to datasource managed rules is a reasonable workaround, but it changes the execution and storage path, so it doesn’t establish the root cause.

Please give Grafana support your stack slug, region (prod-us-west-0), affected rule group and rule UIDs (if you still have them), and the UTC time windows, and ask them to check whether the writer logged errors during those windows. The 11-03 13:22 to 11-04 05:17 window is the best one to highlight, since it is the longest.

the fact that empty rules keep firring suggests the rule engine stays alive but the write to the stack fails silently.