Commit 812569a9 authored by Fabian Reinartz's avatar Fabian Reinartz

Merge pull request #105 from prometheus/optional-with

Indicate WITH keyword as optional in alerting docs.
parents 7aa30919 2bf7f631
...@@ -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