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
Boxiang Sun
gitlab-ce
Commits
e587c6b6
Commit
e587c6b6
authored
Feb 27, 2018
by
Joshua Lambert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix k8s metrics
parent
d4867c51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
config/prometheus/additional_metrics.yml
config/prometheus/additional_metrics.yml
+5
-5
No files found.
config/prometheus/additional_metrics.yml
View file @
e587c6b6
...
@@ -145,15 +145,15 @@
...
@@ -145,15 +145,15 @@
-
container_memory_usage_bytes
-
container_memory_usage_bytes
weight
:
1
weight
:
1
queries
:
queries
:
-
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'
-
query_range
:
'
avg(sum(container_memory_usage_bytes{container_name!="POD",pod_name=~"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)",namespace="%{kube_namespace}"})
by
(job))
without
(job)
/
count(avg(container_memory_usage_bytes{container_name!="POD",pod_name=~"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)",namespace="%{kube_namespace
}"})
without
(job))
/1024/1024'
label
:
Average
label
:
Average
unit
:
MB
unit
:
MB
-
title
:
"
CPU
U
tilization
"
-
title
:
"
CPU
U
sage
"
y_label
:
"
C
PU
Utilization
(%)
"
y_label
:
"
C
ores
"
required_metrics
:
required_metrics
:
-
container_cpu_usage_seconds_total
-
container_cpu_usage_seconds_total
weight
:
1
weight
:
1
queries
:
queries
:
-
query_range
:
'
sum(avg(rate(container_cpu_usage_seconds_total{container_name!="POD",environment="%{ci_environment_slug}"}[2m]))
without
(job))
*
100
'
-
query_range
:
'
avg(sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name=~"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)",namespace="%{kube_namespace}"}[15m]))
by
(job))
without
(job)
'
label
:
Average
label
:
Average
unit
:
"
%"
unit
:
"
cores"
\ No newline at end of file
\ 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