diff --git a/config/prometheus/additional_metrics.yml b/config/prometheus/additional_metrics.yml index 407a6b0c73c..33b897f46e2 100644 --- a/config/prometheus/additional_metrics.yml +++ b/config/prometheus/additional_metrics.yml @@ -7,15 +7,16 @@ - nginx_upstream_responses_total weight: 1 queries: - - query_range: 'rate(nginx_upstream_responses_total{upstream=~"%{kube_namespace}-%{ci_environment_slug}-.*"}[2m])' + - query_range: 'sum(rate(nginx_upstream_responses_total{upstream=~"%{kube_namespace}-%{ci_environment_slug}-.*"}[2m])) by (status_code)' unit: req / sec + label: Status Code series: - label: status_code when: - value: 2xx color: green - value: 4xx - color: yellow + color: orange - value: 5xx color: red - title: "Latency"