Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
float
Commits
a2e7e7c4
Commit
a2e7e7c4
authored
Jun 11, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add summary graphs to service overview
parent
d35e0f3b
Pipeline
#3430
failed with stage
in 180 minutes and 3 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
188 additions
and
7 deletions
+188
-7
roles/prometheus/files/grafana/dashboards/service_overview.json
...prometheus/files/grafana/dashboards/service_overview.json
+188
-7
No files found.
roles/prometheus/files/grafana/dashboards/service_overview.json
View file @
a2e7e7c4
...
...
@@ -16,7 +16,7 @@
"gnetId"
:
null
,
"graphTooltip"
:
1
,
"id"
:
5
,
"iteration"
:
15602
76264564
,
"iteration"
:
15602
84240045
,
"links"
:
[
{
"asDropdown"
:
false
,
...
...
@@ -73,7 +73,7 @@
"steppedLine"
:
false
,
"targets"
:
[
{
"expr"
:
"topk(5, s
um(rate(cgroup_cpu_usage{mode=
\"
user
\"
,host=~
\"
^$host$
\"
}[5m])) by (service)
)"
,
"expr"
:
"topk(5, s
ervice:cpu_usage:rate1m{host=~
\"
^$host$
\"
}
)"
,
"format"
:
"time_series"
,
"interval"
:
""
,
"intervalFactor"
:
1
,
...
...
@@ -105,7 +105,7 @@
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"min"
:
"0"
,
"show"
:
true
},
{
...
...
@@ -184,7 +184,110 @@
"show"
:
true
,
"values"
:
[]
},
"yaxes"
:
[
{
"format"
:
"decbytes"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
"0"
,
"show"
:
true
},
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
}
],
"yaxis"
:
{
"align"
:
false
,
"alignLevel"
:
null
}
},
{
"aliasColors"
:
{},
"bars"
:
false
,
"dashLength"
:
10
,
"dashes"
:
false
,
"datasource"
:
"localhost"
,
"fill"
:
1
,
"gridPos"
:
{
"h"
:
5
,
"w"
:
12
,
"x"
:
0
,
"y"
:
8
},
"id"
:
5
,
"legend"
:
{
"avg"
:
false
,
"current"
:
false
,
"max"
:
false
,
"min"
:
false
,
"show"
:
false
,
"total"
:
false
,
"values"
:
false
},
"lines"
:
true
,
"linewidth"
:
1
,
"links"
:
[
{
"dashUri"
:
"db/service-overview"
,
"dashboard"
:
"Service overview"
,
"includeVars"
:
true
,
"params"
:
"service"
,
"title"
:
"Service"
,
"type"
:
"dashboard"
}
],
"nullPointMode"
:
"null"
,
"percentage"
:
false
,
"pointradius"
:
5
,
"points"
:
false
,
"renderer"
:
"flot"
,
"seriesOverrides"
:
[],
"spaceLength"
:
10
,
"stack"
:
false
,
"steppedLine"
:
false
,
"targets"
:
[
{
"expr"
:
"sum(service:cpu_usage:rate1m{host=~
\"
^$host$
\"
})"
,
"format"
:
"time_series"
,
"interval"
:
""
,
"intervalFactor"
:
1
,
"legendFormat"
:
"{{service}}"
,
"refId"
:
"A"
}
],
"thresholds"
:
[],
"timeFrom"
:
null
,
"timeRegions"
:
[],
"timeShift"
:
null
,
"title"
:
"CPU (sum)"
,
"tooltip"
:
{
"shared"
:
true
,
"sort"
:
0
,
"value_type"
:
"individual"
},
"type"
:
"graph"
,
"xaxis"
:
{
"buckets"
:
null
,
"mode"
:
"time"
,
"name"
:
null
,
"show"
:
true
,
"values"
:
[]
},
"yaxes"
:
[
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
"0"
,
"show"
:
true
},
{
"format"
:
"short"
,
"label"
:
null
,
...
...
@@ -192,6 +295,83 @@
"max"
:
null
,
"min"
:
null
,
"show"
:
true
}
],
"yaxis"
:
{
"align"
:
false
,
"alignLevel"
:
null
}
},
{
"aliasColors"
:
{},
"bars"
:
false
,
"dashLength"
:
10
,
"dashes"
:
false
,
"datasource"
:
"localhost"
,
"fill"
:
1
,
"gridPos"
:
{
"h"
:
5
,
"w"
:
12
,
"x"
:
12
,
"y"
:
8
},
"id"
:
6
,
"legend"
:
{
"avg"
:
false
,
"current"
:
false
,
"max"
:
false
,
"min"
:
false
,
"show"
:
false
,
"total"
:
false
,
"values"
:
false
},
"lines"
:
true
,
"linewidth"
:
1
,
"links"
:
[],
"nullPointMode"
:
"null"
,
"percentage"
:
false
,
"pointradius"
:
5
,
"points"
:
false
,
"renderer"
:
"flot"
,
"seriesOverrides"
:
[],
"spaceLength"
:
10
,
"stack"
:
false
,
"steppedLine"
:
false
,
"targets"
:
[
{
"expr"
:
"sum(cgroup_memory_usage{host=~
\"
^$host$
\"
})"
,
"format"
:
"time_series"
,
"intervalFactor"
:
1
,
"legendFormat"
:
"{{service}}"
,
"refId"
:
"A"
}
],
"thresholds"
:
[],
"timeFrom"
:
null
,
"timeRegions"
:
[],
"timeShift"
:
null
,
"title"
:
"Memory (sum)"
,
"tooltip"
:
{
"shared"
:
true
,
"sort"
:
0
,
"value_type"
:
"individual"
},
"type"
:
"graph"
,
"xaxis"
:
{
"buckets"
:
null
,
"mode"
:
"time"
,
"name"
:
null
,
"show"
:
true
,
"values"
:
[]
},
"yaxes"
:
[
{
"format"
:
"decbytes"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
"0"
,
"show"
:
true
},
{
"format"
:
"short"
,
...
...
@@ -216,9 +396,10 @@
{
"allValue"
:
".*"
,
"current"
:
{
"selected"
:
false
,
"tags"
:
[],
"text"
:
"
latita
nza"
,
"value"
:
"
latita
nza"
"text"
:
"
soffere
nza"
,
"value"
:
"
soffere
nza"
},
"datasource"
:
"localhost"
,
"definition"
:
"label_values(up, host)"
,
...
...
@@ -273,5 +454,5 @@
"timezone"
:
""
,
"title"
:
"All services"
,
"uid"
:
"HnScjOniz"
,
"version"
:
2
}
\ No newline at end of file
"version"
:
3
}
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