Skip to content

Commit e9477e7

Browse files
committed
update Dashboard json
1 parent 03dd66d commit e9477e7

File tree

3 files changed

+186
-3
lines changed

3 files changed

+186
-3
lines changed

dashboards/container_status.json

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
{
2+
"annotations": {
3+
"list": [
4+
{
5+
"builtIn": 1,
6+
"datasource": {
7+
"type": "grafana",
8+
"uid": "-- Grafana --"
9+
},
10+
"enable": true,
11+
"hide": true,
12+
"iconColor": "rgba(0, 211, 255, 1)",
13+
"name": "Annotations & Alerts",
14+
"type": "dashboard"
15+
}
16+
]
17+
},
18+
"editable": true,
19+
"fiscalYearStartMonth": 0,
20+
"graphTooltip": 0,
21+
"id": 2,
22+
"links": [],
23+
"panels": [
24+
{
25+
"datasource": {
26+
"type": "prometheus",
27+
"uid": "Your prometheus data source uid"
28+
},
29+
"description": "",
30+
"fieldConfig": {
31+
"defaults": {
32+
"color": {
33+
"mode": "palette-classic"
34+
},
35+
"custom": {
36+
"axisBorderShow": false,
37+
"axisCenteredZero": false,
38+
"axisColorMode": "text",
39+
"axisLabel": "usage in percentage",
40+
"axisPlacement": "auto",
41+
"barAlignment": 0,
42+
"barWidthFactor": 0.6,
43+
"drawStyle": "line",
44+
"fillOpacity": 0,
45+
"gradientMode": "none",
46+
"hideFrom": {
47+
"legend": false,
48+
"tooltip": false,
49+
"viz": false
50+
},
51+
"insertNulls": false,
52+
"lineInterpolation": "linear",
53+
"lineStyle": {
54+
"fill": "solid"
55+
},
56+
"lineWidth": 1,
57+
"pointSize": 4,
58+
"scaleDistribution": {
59+
"type": "linear"
60+
},
61+
"showPoints": "always",
62+
"spanNulls": false,
63+
"stacking": {
64+
"group": "A",
65+
"mode": "none"
66+
},
67+
"thresholdsStyle": {
68+
"mode": "dashed+area"
69+
}
70+
},
71+
"mappings": [],
72+
"thresholds": {
73+
"mode": "absolute",
74+
"steps": [
75+
{
76+
"color": "green"
77+
},
78+
{
79+
"color": "yellow",
80+
"value": 85
81+
},
82+
{
83+
"color": "red",
84+
"value": 150
85+
}
86+
]
87+
}
88+
},
89+
"overrides": [
90+
{
91+
"__systemRef": "hideSeriesFrom",
92+
"matcher": {
93+
"id": "byNames",
94+
"options": {
95+
"mode": "exclude",
96+
"names": [
97+
"{container_name=\"hopeful_dewdney\"}"
98+
],
99+
"prefix": "All except:",
100+
"readOnly": true
101+
}
102+
},
103+
"properties": [
104+
{
105+
"id": "custom.hideFrom",
106+
"value": {
107+
"legend": false,
108+
"tooltip": false,
109+
"viz": true
110+
}
111+
}
112+
]
113+
}
114+
]
115+
},
116+
"gridPos": {
117+
"h": 17,
118+
"w": 24,
119+
"x": 0,
120+
"y": 0
121+
},
122+
"id": 1,
123+
"options": {
124+
"legend": {
125+
"calcs": [
126+
"min",
127+
"max",
128+
"mean"
129+
],
130+
"displayMode": "table",
131+
"placement": "right",
132+
"showLegend": true,
133+
"sortBy": "Mean",
134+
"sortDesc": true
135+
},
136+
"tooltip": {
137+
"hideZeros": false,
138+
"mode": "multi",
139+
"sort": "desc"
140+
}
141+
},
142+
"pluginVersion": "12.0.1",
143+
"targets": [
144+
{
145+
"datasource": {
146+
"type": "prometheus",
147+
"uid": "fenjtj2603wn4f"
148+
},
149+
"editorMode": "code",
150+
"expr": "sum(cxp_container_status) by (container_name)",
151+
"instant": false,
152+
"range": true,
153+
"refId": "A"
154+
}
155+
],
156+
"title": "Containers CPU Usage ",
157+
"transparent": true,
158+
"type": "timeseries"
159+
}
160+
],
161+
"preload": false,
162+
"refresh": "5s",
163+
"schemaVersion": 41,
164+
"tags": [
165+
"docker",
166+
"CPU",
167+
"Containers",
168+
"container-exporter"
169+
],
170+
"templating": {
171+
"list": []
172+
},
173+
"time": {
174+
"from": "now-5m",
175+
"to": "now"
176+
},
177+
"timepicker": {},
178+
"timezone": "",
179+
"title": "Container Status",
180+
"uid": "e7333381-1beb-4bad-bb6f-3203d46da0a9",
181+
"version": 6,
182+
"weekStart": "saturday"
183+
}

dashboards/cpu_usage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@
117117
{
118118
"datasource": {
119119
"type": "prometheus",
120-
"uid": "Your prometheus data source uid"
120+
"uid": "fenjtj2603wn4f"
121121
},
122122
"editorMode": "code",
123-
"expr": "sum(docker_container_cpu_percentage) by (container_name)",
123+
"expr": "sum(cxp_cpu_percentage) by (container_name)",
124124
"instant": false,
125125
"range": true,
126126
"refId": "A"

dashboards/memory_usage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"uid": "Your prometheus data source uid"
117117
},
118118
"editorMode": "code",
119-
"expr": "sum(docker_container_memory_percentage) by (container_name)",
119+
"expr": "sum(cxp_memory_percentage) by (container_name)",
120120
"instant": false,
121121
"range": true,
122122
"refId": "A"

0 commit comments

Comments
 (0)