REA Prometheus Rules notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Prometheus Rules config trees (PrometheusRule / recording rules / alerting rules / rule groups) record rule identity. In REA 6.7.x, treat selected rule-group and alert labels as Evidence beside archive/package routes — complementing Operator / Grafana dashboard / Thanos / Loki cousins without inventing APIs. Distinct from rea-prometheus-operator (rules ≠ Operator CRDs) and rea-grafana-dashboards (alerts ≠ dashboards).

Mental model

  1. Authorize the PrometheusRule / rule-file tree (+ packaged charts you hold).
  2. Quote selected rule-group names / alert names / expr labels you actually see (never paste remote-write tokens or secret refs' values).
  3. Cousins → prometheus-operator · grafana-dashboards · thanos · loki.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_prometheus_rules API REA never called.

Minimal path

# authorized PrometheusRule / recording+alerting rule files (+ charts you hold)
# quote selected rule-group / alert labels into case notes
# cousins → peer Operator / Grafana dashboard / Thanos / Loki lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_prometheus_rules .

Compare

ArtifactHonest posture
PrometheusRule / recording+alerting / rule groupsPrometheus Rules identity facts
Peerrea-prometheus-operator
Peerrea-grafana-dashboards
Not thisrea-thanos (LTS store zoom)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote selected rule-group names, alert names, and expr labels — enough for most Evidence binders.
  • Remote-write tokens, basic-auth secrets, and receiver credentials are secrets — record key names only.
  • Keep Rules identity distinct from Operator CRDs / Grafana dashboard trees in case notes.
  • Chart image tag pins are identity Evidence — label them separately from cousin pages.
  • Select keys are useful inventory — quote them without inventing REA helpers for live Prometheus admission.

Scope we will not cover

  • No inventing inspect_prometheus_rules / automatic scrape against foreign rule trees.
  • No credential theft from remote-write tokens, basic-auth secrets, or receiver URLs.
  • No pirate redistribution of proprietary Prometheus rule trees.
  • No crack framing via rule pins.
  • No cookbooks that weaken remote alert auth on foreign accounts.
  • No using Rules as an unauthorized metrics-bypass guide against accounts you do not own.

Honest limits

RepoRead documents config literacy — how authorized Prometheus rule trees relate to Evidence — not a full PromQL course. Prefer upstream Prometheus docs for alerting/recording rules; use rea-prometheus-operator for Operator CRDs. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-prometheus-operator / rea-grafana-dashboards / rea-thanos / rea-loki?

rea-prometheus-operator covers Operator CRDs (Prometheus/ServiceMonitor). rea-grafana-dashboards covers dashboard JSON/ConfigMaps. rea-thanos covers long-term store. rea-loki covers logs. This page zooms on PrometheusRule / recording+alerting rule identity — it does not overwrite those pages.

Is there inspect_prometheus_rules in 6.7.0?

Not assumed. Quote PrometheusRule / rule-group / alert labels you actually open, then use documented package/archive lanes. Do not invent inspect_prometheus_rules.

Does REA call Prometheus APIs or steal remote-write credentials?

No. Local trees only. Redact remote-write tokens, basic-auth secrets, and remote cluster URLs; do not treat REA as a Prometheus runner. No credential theft.

How should I label Evidence vs Operator / Grafana dashboard configs?

Label Evidence by the file present. Keep rule-group / alert labels separate from rea-prometheus-operator and rea-grafana-dashboards.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources