summaryrefslogtreecommitdiff
path: root/config/prometheus
diff options
context:
space:
mode:
authorJoshua Lambert <joshua@gitlab.com>2018-06-06 03:26:22 -0400
committerJoshua Lambert <joshua@gitlab.com>2018-06-06 03:26:22 -0400
commitc46db1390b3d503f78209f3ed1f064652b6a97e4 (patch)
treeee4bd3fbccd607b46d3a9e5bb7b39366527ee99f /config/prometheus
parentaf07c490b2a32ed4c88e387d1133e7882f79abc5 (diff)
downloadgitlab-ce-c46db1390b3d503f78209f3ed1f064652b6a97e4.tar.gz
Update NGINX error rate to a percentage
Diffstat (limited to 'config/prometheus')
-rw-r--r--config/prometheus/additional_metrics.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/prometheus/additional_metrics.yml b/config/prometheus/additional_metrics.yml
index 13732384953..c994bad7865 100644
--- a/config/prometheus/additional_metrics.yml
+++ b/config/prometheus/additional_metrics.yml
@@ -29,14 +29,14 @@
label: Pod average
unit: ms
- title: "HTTP Error Rate"
- y_label: "HTTP 500 Errors / Sec"
+ y_label: "HTTP Errors"
required_metrics:
- nginx_upstream_responses_total
weight: 1
queries:
- - query_range: 'sum(rate(nginx_upstream_responses_total{status_code="5xx", upstream=~"%{kube_namespace}-%{ci_environment_slug}-.*"}[2m]))'
- label: HTTP Errors
- unit: "errors / sec"
+ - query_range: 'sum(rate(nginx_upstream_responses_total{status_code="5xx", upstream=~"%{kube_namespace}-%{ci_environment_slug}-.*"}[2m])) / sum(rate(nginx_upstream_responses_total{upstream=~"%{kube_namespace}-%{ci_environment_slug}-.*"}[2m])) * 100'
+ label: 5xx Errors
+ unit: "%"
- group: Response metrics (HA Proxy)
priority: 10
metrics: