Adjust formatting in prometheus_for_dev
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
ae5023405c
commit
1727112869
1 changed files with 17 additions and 17 deletions
|
@ -92,21 +92,21 @@ For example:
|
|||
|
||||
::
|
||||
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
labels:
|
||||
monitoring-key: cpe
|
||||
name: prometheus-application-monitoring-rules
|
||||
spec:
|
||||
groups:
|
||||
- name: general.rules
|
||||
rules:
|
||||
- alert: AlertBodhi500Status
|
||||
annotations:
|
||||
summary: Alerting on too many server errors
|
||||
expr: (100*sum(rate(pyramid_request_count{namespace="bodhi", path_info_pattern=~".*[^healthz]", status="500"}[20m]))/sum(rate(pyramid_request_count{namespace="bodhi", path_info_pattern=~".*[^healthz]"}[20m])))>1
|
||||
labels:
|
||||
severity: high
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
labels:
|
||||
monitoring-key: cpe
|
||||
name: prometheus-application-monitoring-rules
|
||||
spec:
|
||||
groups:
|
||||
- name: general.rules
|
||||
rules:
|
||||
- alert: AlertBodhi500Status
|
||||
annotations:
|
||||
summary: Alerting on too many server errors
|
||||
expr: (100*sum(rate(pyramid_request_count{namespace="bodhi", path_info_pattern=~".*[^healthz]", status="500"}[20m]))/sum(rate(pyramid_request_count{namespace="bodhi", path_info_pattern=~".*[^healthz]"}[20m])))>1
|
||||
labels:
|
||||
severity: high
|
||||
|
||||
would alert if there is more than 1% responses with 500 status code.
|
||||
would alert if there is more than 1% responses with 500 status code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue