diff --git a/docs/monitoring_metrics/prometheus_for_dev.rst b/docs/monitoring_metrics/prometheus_for_dev.rst index 5cc333d..5a2ede4 100644 --- a/docs/monitoring_metrics/prometheus_for_dev.rst +++ b/docs/monitoring_metrics/prometheus_for_dev.rst @@ -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. \ No newline at end of file +would alert if there is more than 1% responses with 500 status code.