Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
a8df46be65ac
Commit
bc58f625
authored
Nov 07, 2017
by
Joshua Lambert
Browse files
Adjust metrics to ignore Job tag to support k8s 1.7+
parent
a63922591894
Changes
1
Show whitespace changes
Inline
Side-by-side
config/prometheus/additional_metrics.yml
View file @
a8df46be
...
...
@@ -145,7 +145,7 @@
-
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="
production"})
without
(job))
)
/
count(
avg(
container_memory_usage_bytes{container_name!="POD",environment="
production"})
without
(job
))
/1024/1024'
label
:
Average
unit
:
MB
-
title
:
"
CPU
Utilization"
...
...
@@ -154,7 +154,7 @@
-
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
:
'
avg(
sum(rate(container_cpu_usage_seconds_total{container_name!="POD",environment="%{ci_environment_slug}"}[2m]))
*
100
)
without
(job)
'
label
:
CPU
unit
:
"
%"
series
:
...
...
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