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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
48248e6f
Commit
48248e6f
authored
Nov 07, 2017
by
Joshua Lambert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update queries to remove duplicate entries
parent
235145e7
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 @
48248e6f
...
...
@@ -145,10 +145,10 @@
-
container_memory_usage_bytes
weight
:
1
queries
:
-
query_range
:
'
(sum(
container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}"})
/
count(container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}"}
))
/1024/1024'
-
query_range
:
'
(sum(
avg(container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}"})
without
(job)))
/
count(avg(container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}"})
without
(job
))
/1024/1024'
label
:
Average
unit
:
MB
-
query_range
:
'
(sum(
container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}-canary"})
/
count(container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}-canary"}
))
/1024/1024'
-
query_range
:
'
(sum(
avg(container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}-canary"})
without
(job)))
/
count(avg(container_memory_usage_bytes{container_name!="POD",environment="%{ci_environment_slug}-canary"})
without
(job
))
/1024/1024'
label
:
Average
unit
:
MB
track
:
canary
...
...
@@ -158,10 +158,10 @@
-
container_cpu_usage_seconds_total
weight
:
1
queries
:
-
query_range
:
'
sum(
rate(container_cpu_usage_seconds_total{container_name!="POD",environment="%{ci_environment_slug}"}[2m]
))
*
100'
-
query_range
:
'
sum(
avg(rate(container_cpu_usage_seconds_total{container_name!="POD",environment="%{ci_environment_slug}"}[2m]))
without
(job
))
*
100'
label
:
CPU
unit
:
"
%"
-
query_range
:
'
sum(
rate(container_cpu_usage_seconds_total{container_name!="POD",environment="%{ci_environment_slug}-canary"}[2m]
))
*
100'
-
query_range
:
'
sum(
avg(rate(container_cpu_usage_seconds_total{container_name!="POD",environment="%{ci_environment_slug}-canary"}[2m]))
without
(job
))
*
100'
label
:
CPU
unit
:
"
%"
track
:
canary
\ No newline at end of file
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