mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
14 lines
438 B
Plaintext
14 lines
438 B
Plaintext
|
// A simple test recording rule.
|
||
|
dc_http_request_rate5m = sum(rate(http_request_count[5m])) by (dc)
|
||
|
|
||
|
// A simple test alerting rule with a syntax error (invalid duration string "5").
|
||
|
ALERT GlobalRequestRateLow IF(dc_http_request_rate5m < 10000) FOR 5 WITH {
|
||
|
description = "Global HTTP request rate low!",
|
||
|
summary = "Request rate low"
|
||
|
/* ... more fields here ... */
|
||
|
}
|
||
|
|
||
|
foo = bar{label1="value1"}
|
||
|
|
||
|
ALERT BazAlert IF(foo > 10) WITH {}
|