From 1727112869a6c0402b579f773f45c1feb174c04c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 19 Apr 2021 11:47:43 +0200 Subject: [PATCH] Adjust formatting in prometheus_for_dev Signed-off-by: Pierre-Yves Chibon --- .../monitoring_metrics/prometheus_for_dev.rst | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) 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.