From d38a50c2f32f387ee96254b0dcf27ea76898f09d Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 23 Jun 2021 10:51:44 -0400 Subject: [PATCH] Docs: document cortex/loki data source caveats for alerting (#36074) (#36078) * Document cortex/loki datasource caveats * Update docs/sources/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update docs/sources/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> (cherry picked from commit d427b57c0e7c7be0203f1372c869981e63431ba6) Co-authored-by: Domas --- .../alerting-rules/create-cortex-loki-managed-rule.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/sources/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule.md b/docs/sources/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule.md index 879b079bc71..63a555f5591 100644 --- a/docs/sources/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule.md +++ b/docs/sources/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule.md @@ -9,6 +9,9 @@ weight = 400 Grafana allows you manage alerting rules for an external Cortex or Loki instance. + +In order for both Cortex and Loki data sources to work with Grafana 8.0 alerting, enable the ruler API by configuring their respective services. The`local` rule storage type, default for Loki, only supports viewing of rules. If you want to edit rules, then configure one of the other rule storage types. When configuring a Grafana Prometheus data source to point to Cortex, use the legacy `/api/prom` prefix, not `/prometheus`. Only single-binary mode is currently supported, and it is not possible to provide a separate URL for the ruler API. + ## Add or edit a Cortex or Loki managed alerting rule 1. In the Grafana menu hover your cursor over the Alerting (bell) icon. @@ -59,4 +62,4 @@ Labels are key value pairs that categorize or identify an alert. Labels are use ## Preview alerts -To evaluate the rule and see what alerts it would produce, click **Preview alerts**. It will display a list of alerts with state and value of for each one. \ No newline at end of file +To evaluate the rule and see what alerts it would produce, click **Preview alerts**. It will display a list of alerts with state and value of for each one.