diff options
author | Joshua Lambert <joshua@gitlab.com> | 2017-09-09 00:50:02 -0400 |
---|---|---|
committer | Joshua Lambert <joshua@gitlab.com> | 2017-09-09 00:50:02 -0400 |
commit | 2149e90cc1af0a40515aee8d5e8712f7d46c0911 (patch) | |
tree | 2a6dcdcf3481643f42a08d0e72ff511789dbdd34 /config | |
parent | 6e2ce46760f4d5dd77f77cb65e87d17223a07399 (diff) | |
download | gitlab-ce-2149e90cc1af0a40515aee8d5e8712f7d46c0911.tar.gz |
Fix ingress query
Diffstat (limited to 'config')
-rw-r--r-- | config/prometheus/additional_metrics.yml | 5 |
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" |