Commit 2bf7f631 authored by Julius Volz's avatar Julius Volz

Indicate WITH keyword as optional in alerting docs.

parent 7aa30919
...@@ -20,7 +20,7 @@ Alerting rules are defined in the following syntax: ...@@ -20,7 +20,7 @@ Alerting rules are defined in the following syntax:
ALERT <alert name> ALERT <alert name>
IF <expression> IF <expression>
[FOR <duration>] [FOR <duration>]
WITH <label set> [WITH <label set>]
SUMMARY "<summary template>" SUMMARY "<summary template>"
DESCRIPTION "<description template>" DESCRIPTION "<description template>"
...@@ -58,7 +58,6 @@ Examples: ...@@ -58,7 +58,6 @@ Examples:
ALERT ApiHighRequestLatency ALERT ApiHighRequestLatency
IF api_http_request_latencies_ms{quantile="0.5"} > 1000 IF api_http_request_latencies_ms{quantile="0.5"} > 1000
FOR 1m FOR 1m
WITH {}
SUMMARY "High request latency on {{$labels.instance}}" SUMMARY "High request latency on {{$labels.instance}}"
DESCRIPTION "{{$labels.instance}} has a median request latency above 1s (current value: {{$value}})" DESCRIPTION "{{$labels.instance}} has a median request latency above 1s (current value: {{$value}})"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment