summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJoshua Lambert <joshua@gitlab.com>2017-09-09 00:50:02 -0400
committerJoshua Lambert <joshua@gitlab.com>2017-09-09 00:50:02 -0400
commit2149e90cc1af0a40515aee8d5e8712f7d46c0911 (patch)
tree2a6dcdcf3481643f42a08d0e72ff511789dbdd34 /config
parent6e2ce46760f4d5dd77f77cb65e87d17223a07399 (diff)
downloadgitlab-ce-2149e90cc1af0a40515aee8d5e8712f7d46c0911.tar.gz
Fix ingress query
Diffstat (limited to 'config')
-rw-r--r--config/prometheus/additional_metrics.yml5
1 files changed, 3 insertions, 2 deletions
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"