Skip to content

Commit

Permalink
docs: Fix mangled admonition block in alerting/recording rule docs (#…
Browse files Browse the repository at this point in the history
…12733)

(cherry picked from commit c825dba)
  • Loading branch information
seizethedave authored and grafana-delivery-bot[bot] committed Apr 22, 2024
1 parent b8b2d51 commit 8807590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sources/alert/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ Another great use case is alerting on high cardinality sources. These are things
Creating these alerts in LogQL is attractive because these metrics can be extracted at _query time_, meaning we don't suffer the cardinality explosion in our metrics store.

{{% admonition type="note" %}}
As an example, we can use LogQL v2 to help Loki to monitor _itself_, alerting us when specific tenants have queries that take longer than 10s to complete! To do so, we'd use the following query: `sum by (org_id) (rate({job="loki-prod/query-frontend"} |= "metrics.go" | logfmt | duration > 10s [1m])
{{% /admonition %}}`.
As an example, we can use LogQL v2 to help Loki to monitor _itself_, alerting us when specific tenants have queries that take longer than 10s to complete! To do so, we'd use the following query: `sum by (org_id) (rate({job="loki-prod/query-frontend"} |= "metrics.go" | logfmt | duration > 10s [1m])`.
{{% /admonition %}}

## Interacting with the Ruler

Expand Down

0 comments on commit 8807590

Please sign in to comment.