REA Loki Rules notes (unofficial)
Loki Rules config trees (ruler configs / alerting rules / recording rules / LogQL groups) record log-rule identity. In REA 6.7.x, treat selected ruler group and alert labels as Evidence beside archive/package routes — complementing Loki / Prometheus rules / Tempo / Grafana Operator cousins without inventing APIs. Distinct from rea-loki (rules ≠ schema/storage) and rea-prometheus-rules (LogQL ≠ PromQL).
Mental model
- Authorize the Loki ruler / rule-file tree (+ packaged charts you hold).
- Quote selected ruler group names / alert names / LogQL labels you actually see (never paste object-store keys or secret refs' values).
- Cousins → loki · prometheus-rules · tempo · grafana-operator.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_loki_rulesAPI REA never called.
Minimal path
# authorized Loki ruler / alerting+recording rule files (+ charts you hold)
# quote selected ruler group / alert / LogQL labels into case notes
# cousins → peer Loki / Prometheus rules / Tempo / Grafana Operator lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_loki_rules .
Compare
| Artifact | Honest posture |
|---|---|
| Loki ruler / alerting+recording / LogQL groups | Loki Rules identity facts |
| Peer | rea-loki |
| Peer | rea-prometheus-rules |
| Not this | rea-tempo (traces zoom) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote selected ruler group names, alert names, and LogQL labels — enough for most Evidence binders.
- Object-store keys, basic-auth secrets, and remote API URLs are secrets — record key names only.
- Keep Loki Rules identity distinct from Loki schema/storage / Prometheus rule 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 Loki admission.
Scope we will not cover
- No inventing
inspect_loki_rules/ automatic scrape against foreign ruler trees. - No credential theft from object-store keys, basic-auth secrets, or remote API URLs.
- No pirate redistribution of proprietary Loki rule trees.
- No crack framing via ruler pins.
- No cookbooks that weaken remote Loki auth on foreign accounts.
- No using Loki Rules as an unauthorized log-bypass guide against accounts you do not own.
Honest limits
RepoRead documents config literacy — how authorized Loki ruler trees relate to Evidence — not a full LogQL course. Prefer upstream Loki docs for ruler/alerting; use rea-loki for schema/storage. 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-loki / rea-prometheus-rules / rea-tempo / rea-grafana-operator?
rea-loki covers Loki schema/storage identity. rea-prometheus-rules covers Prometheus alerting/recording. rea-tempo covers traces. rea-grafana-operator covers Grafana Operator. This page zooms on Loki ruler / log-alert rule identity — it does not overwrite those pages.
Is there inspect_loki_rules in 6.7.0?
Not assumed. Quote ruler group / alert / LogQL labels you actually open, then use documented package/archive lanes. Do not invent inspect_loki_rules.
Does REA query Loki APIs or steal object-store credentials?
No. Local trees only. Redact object-store keys, basic-auth passwords, and remote API URLs; do not treat REA as a Loki runner. No credential theft.
How should I label Evidence vs Loki / Prometheus rules configs?
Label Evidence by the file present. Keep Loki ruler/alert labels separate from rea-loki and rea-prometheus-rules.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).