Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
c46db139
Commit
c46db139
authored
Jun 06, 2018
by
Joshua Lambert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update NGINX error rate to a percentage
parent
af07c490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
config/prometheus/additional_metrics.yml
config/prometheus/additional_metrics.yml
+4
-4
No files found.
config/prometheus/additional_metrics.yml
View file @
c46db139
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment