Adjust formatting in prometheus_for_dev

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-04-19 11:47:43 +02:00
parent ae5023405c
commit 1727112869

View file

@ -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.