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
9b9af870
Commit
9b9af870
authored
Feb 28, 2018
by
Joshua Lambert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final updates for metrics
parent
15966c30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
config/prometheus/additional_metrics.yml
config/prometheus/additional_metrics.yml
+3
-3
No files found.
config/prometheus/additional_metrics.yml
View file @
9b9af870
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
priority
:
5
priority
:
5
metrics
:
metrics
:
-
title
:
"
Memory
Usage"
-
title
:
"
Memory
Usage"
y_label
:
"
Memory
Us
age
(MB)
"
y_label
:
"
Memory
Us
ed
per
Pod
"
required_metrics
:
required_metrics
:
-
container_memory_usage_bytes
-
container_memory_usage_bytes
weight
:
1
weight
:
1
...
@@ -149,11 +149,11 @@
...
@@ -149,11 +149,11 @@
label
:
Average
label
:
Average
unit
:
MB
unit
:
MB
-
title
:
"
CPU
Usage"
-
title
:
"
CPU
Usage"
y_label
:
"
Cores"
y_label
:
"
Cores
per
Pod
"
required_metrics
:
required_metrics
:
-
container_cpu_usage_seconds_total
-
container_cpu_usage_seconds_total
weight
:
1
weight
:
1
queries
:
queries
:
-
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)'
-
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)
/
count(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
(pod_name))
'
label
:
Average
label
:
Average
unit
:
"
cores"
unit
:
"
cores"
\ 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