mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 01:24:04 -08:00
35ee2cd3cb
Alert definitions now also have mandatory SUMMARY and DESCRIPTION fields that get sent along a firing alert to the alert manager.
17 lines
465 B
Plaintext
17 lines
465 B
Plaintext
// A simple test recording rule.
|
|
dc_http_request_rate5m = sum(rate(http_request_count[5m])) by (dc)
|
|
|
|
// A simple test alerting rule.
|
|
ALERT GlobalRequestRateLow IF(dc_http_request_rate5m < 10000) FOR 5m WITH {
|
|
service = "testservice"
|
|
/* ... more fields here ... */
|
|
}
|
|
SUMMARY "Global request rate low"
|
|
DESCRIPTION "The global request rate is low"
|
|
|
|
foo = bar{label1="value1"}
|
|
|
|
ALERT BazAlert IF(foo > 10) WITH {}
|
|
SUMMARY "Baz"
|
|
DESCRIPTION "BazAlert"
|