Merge ~ubuntu-docker-images/ubuntu-docker-images/+git/grafana:readme into ~ubuntu-docker-images/ubuntu-docker-images/+git/grafana:edge
- Git
- lp:~ubuntu-docker-images/ubuntu-docker-images/+git/grafana
- readme
- Merge into edge
Proposed by
Lucas Kanashiro
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 0462c0caa306e1d4201250bc93662afe388d497b | ||||
Proposed branch: | ~ubuntu-docker-images/ubuntu-docker-images/+git/grafana:readme | ||||
Merge into: | ~ubuntu-docker-images/ubuntu-docker-images/+git/grafana:edge | ||||
Diff against target: |
2633 lines (+2585/-0) 8 files modified
HACKING.md (+14/-0) README.md.oci (+149/-0) examples/README.md (+48/-0) examples/config/dashboard.yml (+12/-0) examples/config/datasource.yml (+11/-0) examples/config/system-stats-dashboard.json (+2282/-0) examples/docker-compose.yml (+11/-0) examples/grafana-deployment.yml (+58/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lucas Kanashiro | Approve | ||
Sergio Durigan Junior | Needs Fixing | ||
Review via email:
|
Commit message
Description of the change
Improve README.
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Bryce Harrington (bryce) wrote : | # |
A handful of copyedit suggestions...
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lucas Kanashiro (lucaskanashiro) wrote : | # |
Thanks Sergio and Bryce! The points you raised were addressed. I am going to approve and merge this.
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/HACKING.md b/HACKING.md | |||
2 | 0 | new file mode 100644 | 0 | new file mode 100644 |
3 | index 0000000..64f8ea3 | |||
4 | --- /dev/null | |||
5 | +++ b/HACKING.md | |||
6 | @@ -0,0 +1,14 @@ | |||
7 | 1 | # Contributing | ||
8 | 2 | |||
9 | 3 | In order to contribute to the Grafana OCI image do the following: | ||
10 | 4 | |||
11 | 5 | * Create a new branch. | ||
12 | 6 | * Make your changes. Keep your commits logically separated. If it is fixing a bug do not forget to mention it in the commit message. | ||
13 | 7 | * Build a new image with your changes. You can use the following command: | ||
14 | 8 | |||
15 | 9 | ``` | ||
16 | 10 | $ docker build -t squeakywheel/grafana:test -f Dockerfile . | ||
17 | 11 | ``` | ||
18 | 12 | |||
19 | 13 | * Test the new image. Run it in some way that exercises your changes, you can also check the README.md file. | ||
20 | 14 | * If everything goes well submit a merge proposal. | ||
21 | diff --git a/README.md.oci b/README.md.oci | |||
22 | 0 | new file mode 100644 | 15 | new file mode 100644 |
23 | index 0000000..99aa87e | |||
24 | --- /dev/null | |||
25 | +++ b/README.md.oci | |||
26 | @@ -0,0 +1,149 @@ | |||
27 | 1 | # Grafana | Ubuntu | ||
28 | 2 | |||
29 | 3 | ## About Grafana | ||
30 | 4 | |||
31 | 5 | Grafana is a feature rich metrics dashboard and graph editor for Cloudwatch, Elasticsearch, Graphite, InfluxDB, OpenTSB, Prometheus, and Hosted Metrics. | ||
32 | 6 | |||
33 | 7 | ## Tags | ||
34 | 8 | |||
35 | 9 | - `7.0.3-focal`, `7.0.3`, `7.0-focal`, `7.0`, `7-focal`, `7`, `focal`, `beta` - **/!\ this is a beta release** | ||
36 | 10 | |||
37 | 11 | ### Architectures supported | ||
38 | 12 | |||
39 | 13 | - `amd64`, `arm64`, `ppc64el`, `s390x` | ||
40 | 14 | |||
41 | 15 | ## Usage | ||
42 | 16 | |||
43 | 17 | ### Docker CLI | ||
44 | 18 | |||
45 | 19 | ```sh | ||
46 | 20 | $ docker run --name grafana -p 3000:3000 -d -e TZ=Europe/London squeakywheel/grafana:edge | ||
47 | 21 | ``` | ||
48 | 22 | |||
49 | 23 | Since containers are ephemeral, you may want to use persistent data rather than initializing a new database for each newly launched container. To do this, you can use docker volumes: | ||
50 | 24 | |||
51 | 25 | ```sh | ||
52 | 26 | $ docker run --name grafana -v /path/to/persisted/data:/var/lib/grafana squeakywheel/grafana:edge | ||
53 | 27 | ``` | ||
54 | 28 | |||
55 | 29 | #### Parameters | ||
56 | 30 | |||
57 | 31 | | Parameter | Description | | ||
58 | 32 | |---|---| | ||
59 | 33 | | `-e TZ=UTC` | Timezone. | | ||
60 | 34 | | `-v /path/to/grafana/provisioning/files/:/etc/grafana/provisioning/` | Pass a directory with files to provision a Grafana `datasource` and `dashboard`. | | ||
61 | 35 | |||
62 | 36 | #### Debugging | ||
63 | 37 | |||
64 | 38 | In case you need to debug what it is happening with the container you can run `docker logs <name_of_the_container>`. For a better experience while checking logs pass `-e GF_LOG_MODE="console file"` when you run the container. Alternatively, for an interactive shell run: | ||
65 | 39 | |||
66 | 40 | ```sh | ||
67 | 41 | $ docker exec -it <name_of_the_container> /bin/bash | ||
68 | 42 | ``` | ||
69 | 43 | |||
70 | 44 | ## Deploy with Kubernetes | ||
71 | 45 | |||
72 | 46 | You can use your favorite Kubernetes distribution; if you don't have one, consider [installing MicroK8s](https://microk8s.io/). | ||
73 | 47 | |||
74 | 48 | With microk8s running, enable the `dns` and `storage` add-ons: | ||
75 | 49 | ```sh | ||
76 | 50 | $ microk8s enable dns storage | ||
77 | 51 | ``` | ||
78 | 52 | |||
79 | 53 | Create a configmap for the provisioning configuration files (check the upstream documentation [here](https://grafana.com/docs/grafana/latest/administration/provisioning/) on how to provision a dashboard): | ||
80 | 54 | |||
81 | 55 | ```sh | ||
82 | 56 | $ microk8s kubectl create configmap grafana-config --from-file=grafana-datasource=config/datasource.yml --from-file=grafana-dashboard-definition=config/dashboard.yml --from-file=grafana-dashboard=config/system-stats-dashboard.json | ||
83 | 57 | ``` | ||
84 | 58 | |||
85 | 59 | Use the sample deployment yaml provided [here](https://git.launchpad.net/~canonical-server/ubuntu-server-oci/+git/grafana/plain/examples/grafana-deployment.yml). | ||
86 | 60 | |||
87 | 61 | <details> | ||
88 | 62 | <summary>Apply the `grafana-deployment.yml` (click to expand)</summary> | ||
89 | 63 | |||
90 | 64 | ```yaml | ||
91 | 65 | # grafana-deployment.yml | ||
92 | 66 | --- | ||
93 | 67 | apiVersion: apps/v1 | ||
94 | 68 | kind: Deployment | ||
95 | 69 | metadata: | ||
96 | 70 | name: grafana-deployment | ||
97 | 71 | spec: | ||
98 | 72 | replicas: 1 | ||
99 | 73 | selector: | ||
100 | 74 | matchLabels: | ||
101 | 75 | app: grafana | ||
102 | 76 | template: | ||
103 | 77 | metadata: | ||
104 | 78 | labels: | ||
105 | 79 | app: grafana | ||
106 | 80 | spec: | ||
107 | 81 | containers: | ||
108 | 82 | - name: grafana | ||
109 | 83 | image: squeakywheel/grafana:edge | ||
110 | 84 | volumeMounts: | ||
111 | 85 | - name: grafana-config-volume | ||
112 | 86 | mountPath: /etc/grafana/provisioning/datasources/datasource.yml | ||
113 | 87 | subPath: datasource.yml | ||
114 | 88 | - name: grafana-config-volume | ||
115 | 89 | mountPath: /etc/grafana/provisioning/dashboards/dashboard.yml | ||
116 | 90 | subPath: dashboard.yml | ||
117 | 91 | - name: grafana-config-volume | ||
118 | 92 | mountPath: /etc/grafana/provisioning/dashboards/system-stats-dashboard.json | ||
119 | 93 | subPath: system-stats-dashboard.json | ||
120 | 94 | ports: | ||
121 | 95 | - containerPort: 3000 | ||
122 | 96 | name: grafana | ||
123 | 97 | protocol: TCP | ||
124 | 98 | volumes: | ||
125 | 99 | - name: grafana-config-volume | ||
126 | 100 | configMap: | ||
127 | 101 | name: grafana-config | ||
128 | 102 | items: | ||
129 | 103 | - key: grafana-datasource | ||
130 | 104 | path: datasource.yml | ||
131 | 105 | - key: grafana-dashboard-definition | ||
132 | 106 | path: dashboard.yml | ||
133 | 107 | - key: grafana-dashboard | ||
134 | 108 | path: system-stats-dashboard.json | ||
135 | 109 | --- | ||
136 | 110 | apiVersion: v1 | ||
137 | 111 | kind: Service | ||
138 | 112 | metadata: | ||
139 | 113 | name: grafana-service | ||
140 | 114 | spec: | ||
141 | 115 | type: NodePort | ||
142 | 116 | selector: | ||
143 | 117 | app: grafana | ||
144 | 118 | ports: | ||
145 | 119 | - protocol: TCP | ||
146 | 120 | port: 3000 | ||
147 | 121 | targetPort: 3000 | ||
148 | 122 | nodePort: 30000 | ||
149 | 123 | name: grafana | ||
150 | 124 | ``` | ||
151 | 125 | |||
152 | 126 | </details> | ||
153 | 127 | |||
154 | 128 | ```sh | ||
155 | 129 | $ microk8s kubectl apply -f grafana-deployment.yml | ||
156 | 130 | ``` | ||
157 | 131 | |||
158 | 132 | You will now be able to connect to the Grafana on `http://localhost:30000`. | ||
159 | 133 | |||
160 | 134 | ## Bugs and Features request | ||
161 | 135 | |||
162 | 136 | If you find a bug in our image or want to request a specific feature file a bug here: | ||
163 | 137 | |||
164 | 138 | https://bugs.launchpad.net/ubuntu-server-oci/+filebug | ||
165 | 139 | |||
166 | 140 | In the title of the bug add `grafana: <reason>`. | ||
167 | 141 | |||
168 | 142 | Make sure to include: | ||
169 | 143 | |||
170 | 144 | * The digest of the image you are using, you can find it using this command replacing `<tag>` with the one you used to run the image: | ||
171 | 145 | ```sh | ||
172 | 146 | $ docker images --no-trunc --quiet squeakywheel/grafana:<tag> | ||
173 | 147 | ``` | ||
174 | 148 | * Reproduction steps for the deployment | ||
175 | 149 | * If it is a feature request, please provide as much detail as possible | ||
176 | diff --git a/examples/README.md b/examples/README.md | |||
177 | 0 | new file mode 100644 | 150 | new file mode 100644 |
178 | index 0000000..45b2d60 | |||
179 | --- /dev/null | |||
180 | +++ b/examples/README.md | |||
181 | @@ -0,0 +1,48 @@ | |||
182 | 1 | # Running the examples | ||
183 | 2 | |||
184 | 3 | ## docker-compose | ||
185 | 4 | |||
186 | 5 | Install `docker-compose` from the Ubuntu archive: | ||
187 | 6 | |||
188 | 7 | ``` | ||
189 | 8 | $ sudo apt install -y docker-compose | ||
190 | 9 | ``` | ||
191 | 10 | |||
192 | 11 | Call `docker-compose` from the examples directory: | ||
193 | 12 | |||
194 | 13 | ``` | ||
195 | 14 | $ docker-compose up -d | ||
196 | 15 | ``` | ||
197 | 16 | |||
198 | 17 | Grafana will be running and available via port `3000` on your host. The user is `admin` and the password `admin`. The dashboard will not be fully functional because we provisioned the datasource but we did not hook up any Prometheus nor Telegraf instance to provide data. | ||
199 | 18 | |||
200 | 19 | To stop it run: | ||
201 | 20 | |||
202 | 21 | ``` | ||
203 | 22 | $ docker-compose down | ||
204 | 23 | ``` | ||
205 | 24 | |||
206 | 25 | ## Microk8s | ||
207 | 26 | |||
208 | 27 | With microk8s running, enable the `dns` and `storage` add-ons: | ||
209 | 28 | |||
210 | 29 | ``` | ||
211 | 30 | $ microk8s enable dns storage | ||
212 | 31 | ``` | ||
213 | 32 | |||
214 | 33 | Create a configmap for the configuration files: | ||
215 | 34 | |||
216 | 35 | ``` | ||
217 | 36 | $ microk8s kubectl create configmap grafana-config \ | ||
218 | 37 | --from-file=grafana-datasource=config/datasource.yml \ | ||
219 | 38 | --from-file=grafana-dashboard-definition=config/dashboard.yml \ | ||
220 | 39 | --from-file=grafana-dashboard=config/system-stats-dashboard.json | ||
221 | 40 | ``` | ||
222 | 41 | |||
223 | 42 | Apply the `grafana-deployment.yml`: | ||
224 | 43 | |||
225 | 44 | ``` | ||
226 | 45 | $ microk8s kubectl apply -f grafana-deployment.yml | ||
227 | 46 | ``` | ||
228 | 47 | |||
229 | 48 | Grafana will be running and available via port `30000` on your host. The user is `admin` and the password `admin`. The dashboard will not be fully functional because we provisioned the datasource but we did not hook up any Prometheus nor Telegraf instance to provide data. | ||
230 | diff --git a/examples/config/dashboard.yml b/examples/config/dashboard.yml | |||
231 | 0 | new file mode 100644 | 49 | new file mode 100644 |
232 | index 0000000..0f882d3 | |||
233 | --- /dev/null | |||
234 | +++ b/examples/config/dashboard.yml | |||
235 | @@ -0,0 +1,12 @@ | |||
236 | 1 | apiVersion: 1 | ||
237 | 2 | |||
238 | 3 | providers: | ||
239 | 4 | - name: dashboard | ||
240 | 5 | orgId: 1 | ||
241 | 6 | folder: '' | ||
242 | 7 | type: file | ||
243 | 8 | disableDeletion: false | ||
244 | 9 | editable: true | ||
245 | 10 | allowUiUpdates: true | ||
246 | 11 | options: | ||
247 | 12 | path: /etc/grafana/provisioning/dashboards | ||
248 | diff --git a/examples/config/datasource.yml b/examples/config/datasource.yml | |||
249 | 0 | new file mode 100644 | 13 | new file mode 100644 |
250 | index 0000000..0b62b9c | |||
251 | --- /dev/null | |||
252 | +++ b/examples/config/datasource.yml | |||
253 | @@ -0,0 +1,11 @@ | |||
254 | 1 | apiVersion: 1 | ||
255 | 2 | |||
256 | 3 | datasources: | ||
257 | 4 | - name: prometheus | ||
258 | 5 | type: prometheus | ||
259 | 6 | access: proxy | ||
260 | 7 | orgId: 1 | ||
261 | 8 | url: http://prometheus:9090 | ||
262 | 9 | basicAuth: false | ||
263 | 10 | isDefault: true | ||
264 | 11 | editable: true | ||
265 | diff --git a/examples/config/system-stats-dashboard.json b/examples/config/system-stats-dashboard.json | |||
266 | 0 | new file mode 100644 | 12 | new file mode 100644 |
267 | index 0000000..c93f194 | |||
268 | --- /dev/null | |||
269 | +++ b/examples/config/system-stats-dashboard.json | |||
270 | @@ -0,0 +1,2282 @@ | |||
271 | 1 | { | ||
272 | 2 | "annotations": { | ||
273 | 3 | "list": [ | ||
274 | 4 | { | ||
275 | 5 | "builtIn": 1, | ||
276 | 6 | "datasource": "prometheus", | ||
277 | 7 | "enable": true, | ||
278 | 8 | "hide": true, | ||
279 | 9 | "iconColor": "rgba(0, 211, 255, 1)", | ||
280 | 10 | "name": "Annotations & Alerts", | ||
281 | 11 | "type": "dashboard" | ||
282 | 12 | } | ||
283 | 13 | ] | ||
284 | 14 | }, | ||
285 | 15 | "editable": true, | ||
286 | 16 | "gnetId": null, | ||
287 | 17 | "graphTooltip": 1, | ||
288 | 18 | "id": 1, | ||
289 | 19 | "iteration": 1602280737314, | ||
290 | 20 | "links": [], | ||
291 | 21 | "panels": [ | ||
292 | 22 | { | ||
293 | 23 | "collapsed": false, | ||
294 | 24 | "datasource": "prometheus", | ||
295 | 25 | "gridPos": { | ||
296 | 26 | "h": 1, | ||
297 | 27 | "w": 24, | ||
298 | 28 | "x": 0, | ||
299 | 29 | "y": 0 | ||
300 | 30 | }, | ||
301 | 31 | "id": 287, | ||
302 | 32 | "panels": [], | ||
303 | 33 | "repeat": null, | ||
304 | 34 | "title": "Load/CPU/Memory/Swap", | ||
305 | 35 | "type": "row" | ||
306 | 36 | }, | ||
307 | 37 | { | ||
308 | 38 | "aliasColors": {}, | ||
309 | 39 | "bars": false, | ||
310 | 40 | "dashLength": 10, | ||
311 | 41 | "dashes": false, | ||
312 | 42 | "datasource": "prometheus", | ||
313 | 43 | "description": "", | ||
314 | 44 | "fieldConfig": { | ||
315 | 45 | "defaults": { | ||
316 | 46 | "custom": {}, | ||
317 | 47 | "links": [] | ||
318 | 48 | }, | ||
319 | 49 | "overrides": [] | ||
320 | 50 | }, | ||
321 | 51 | "fill": 1, | ||
322 | 52 | "fillGradient": 0, | ||
323 | 53 | "gridPos": { | ||
324 | 54 | "h": 9, | ||
325 | 55 | "w": 12, | ||
326 | 56 | "x": 0, | ||
327 | 57 | "y": 1 | ||
328 | 58 | }, | ||
329 | 59 | "height": "", | ||
330 | 60 | "hiddenSeries": false, | ||
331 | 61 | "id": 1, | ||
332 | 62 | "legend": { | ||
333 | 63 | "alignAsTable": true, | ||
334 | 64 | "avg": false, | ||
335 | 65 | "current": true, | ||
336 | 66 | "max": true, | ||
337 | 67 | "min": true, | ||
338 | 68 | "show": true, | ||
339 | 69 | "total": false, | ||
340 | 70 | "values": true | ||
341 | 71 | }, | ||
342 | 72 | "lines": true, | ||
343 | 73 | "linewidth": 1, | ||
344 | 74 | "links": [], | ||
345 | 75 | "nullPointMode": "null", | ||
346 | 76 | "options": { | ||
347 | 77 | "alertThreshold": true | ||
348 | 78 | }, | ||
349 | 79 | "percentage": false, | ||
350 | 80 | "pluginVersion": "7.2.0", | ||
351 | 81 | "pointradius": 5, | ||
352 | 82 | "points": false, | ||
353 | 83 | "renderer": "flot", | ||
354 | 84 | "seriesOverrides": [], | ||
355 | 85 | "spaceLength": 10, | ||
356 | 86 | "stack": false, | ||
357 | 87 | "steppedLine": false, | ||
358 | 88 | "targets": [ | ||
359 | 89 | { | ||
360 | 90 | "expr": "system_load1{host=~\"$host\"}", | ||
361 | 91 | "format": "time_series", | ||
362 | 92 | "interval": "", | ||
363 | 93 | "intervalFactor": 2, | ||
364 | 94 | "legendFormat": "{{host}} 1min", | ||
365 | 95 | "refId": "A", | ||
366 | 96 | "step": 60 | ||
367 | 97 | }, | ||
368 | 98 | { | ||
369 | 99 | "expr": "system_load5{host=~\"$host\"}", | ||
370 | 100 | "format": "time_series", | ||
371 | 101 | "interval": "", | ||
372 | 102 | "intervalFactor": 2, | ||
373 | 103 | "legendFormat": "{{host}} 5min", | ||
374 | 104 | "refId": "B", | ||
375 | 105 | "step": 60 | ||
376 | 106 | }, | ||
377 | 107 | { | ||
378 | 108 | "expr": "system_load15{host=~\"$host\"}", | ||
379 | 109 | "format": "time_series", | ||
380 | 110 | "interval": "", | ||
381 | 111 | "intervalFactor": 2, | ||
382 | 112 | "legendFormat": "{{host}} 15min", | ||
383 | 113 | "refId": "C", | ||
384 | 114 | "step": 60 | ||
385 | 115 | } | ||
386 | 116 | ], | ||
387 | 117 | "thresholds": [], | ||
388 | 118 | "timeFrom": null, | ||
389 | 119 | "timeRegions": [], | ||
390 | 120 | "timeShift": null, | ||
391 | 121 | "title": "Load average", | ||
392 | 122 | "tooltip": { | ||
393 | 123 | "shared": true, | ||
394 | 124 | "sort": 0, | ||
395 | 125 | "value_type": "individual" | ||
396 | 126 | }, | ||
397 | 127 | "type": "graph", | ||
398 | 128 | "xaxis": { | ||
399 | 129 | "buckets": null, | ||
400 | 130 | "mode": "time", | ||
401 | 131 | "name": null, | ||
402 | 132 | "show": true, | ||
403 | 133 | "values": [] | ||
404 | 134 | }, | ||
405 | 135 | "yaxes": [ | ||
406 | 136 | { | ||
407 | 137 | "format": "short", | ||
408 | 138 | "label": null, | ||
409 | 139 | "logBase": 1, | ||
410 | 140 | "max": null, | ||
411 | 141 | "min": null, | ||
412 | 142 | "show": true | ||
413 | 143 | }, | ||
414 | 144 | { | ||
415 | 145 | "format": "short", | ||
416 | 146 | "label": null, | ||
417 | 147 | "logBase": 1, | ||
418 | 148 | "max": null, | ||
419 | 149 | "min": null, | ||
420 | 150 | "show": true | ||
421 | 151 | } | ||
422 | 152 | ], | ||
423 | 153 | "yaxis": { | ||
424 | 154 | "align": false, | ||
425 | 155 | "alignLevel": null | ||
426 | 156 | } | ||
427 | 157 | }, | ||
428 | 158 | { | ||
429 | 159 | "aliasColors": {}, | ||
430 | 160 | "bars": false, | ||
431 | 161 | "dashLength": 10, | ||
432 | 162 | "dashes": false, | ||
433 | 163 | "datasource": "prometheus", | ||
434 | 164 | "fieldConfig": { | ||
435 | 165 | "defaults": { | ||
436 | 166 | "custom": {}, | ||
437 | 167 | "links": [] | ||
438 | 168 | }, | ||
439 | 169 | "overrides": [] | ||
440 | 170 | }, | ||
441 | 171 | "fill": 1, | ||
442 | 172 | "fillGradient": 0, | ||
443 | 173 | "gridPos": { | ||
444 | 174 | "h": 18, | ||
445 | 175 | "w": 11, | ||
446 | 176 | "x": 12, | ||
447 | 177 | "y": 1 | ||
448 | 178 | }, | ||
449 | 179 | "hiddenSeries": false, | ||
450 | 180 | "id": 364, | ||
451 | 181 | "legend": { | ||
452 | 182 | "avg": false, | ||
453 | 183 | "current": false, | ||
454 | 184 | "max": false, | ||
455 | 185 | "min": false, | ||
456 | 186 | "show": true, | ||
457 | 187 | "total": false, | ||
458 | 188 | "values": false | ||
459 | 189 | }, | ||
460 | 190 | "lines": true, | ||
461 | 191 | "linewidth": 1, | ||
462 | 192 | "nullPointMode": "null", | ||
463 | 193 | "options": { | ||
464 | 194 | "alertThreshold": true | ||
465 | 195 | }, | ||
466 | 196 | "percentage": false, | ||
467 | 197 | "pluginVersion": "7.2.0", | ||
468 | 198 | "pointradius": 2, | ||
469 | 199 | "points": false, | ||
470 | 200 | "renderer": "flot", | ||
471 | 201 | "seriesOverrides": [], | ||
472 | 202 | "spaceLength": 10, | ||
473 | 203 | "stack": false, | ||
474 | 204 | "steppedLine": false, | ||
475 | 205 | "targets": [ | ||
476 | 206 | { | ||
477 | 207 | "expr": "mem_dirty{host=~\"$host\"}", | ||
478 | 208 | "instant": false, | ||
479 | 209 | "interval": "", | ||
480 | 210 | "legendFormat": "", | ||
481 | 211 | "refId": "A" | ||
482 | 212 | }, | ||
483 | 213 | { | ||
484 | 214 | "expr": "mem_shared{host=~\"$host\"}", | ||
485 | 215 | "interval": "", | ||
486 | 216 | "legendFormat": "", | ||
487 | 217 | "refId": "B" | ||
488 | 218 | }, | ||
489 | 219 | { | ||
490 | 220 | "expr": "mem_active{host=~\"$host\"}", | ||
491 | 221 | "interval": "", | ||
492 | 222 | "legendFormat": "", | ||
493 | 223 | "refId": "C" | ||
494 | 224 | }, | ||
495 | 225 | { | ||
496 | 226 | "expr": "mem_buffered{host=~\"$host\"}", | ||
497 | 227 | "interval": "", | ||
498 | 228 | "legendFormat": "", | ||
499 | 229 | "refId": "D" | ||
500 | 230 | }, | ||
501 | 231 | { | ||
502 | 232 | "expr": "mem_available{host=~\"$host\"}", | ||
503 | 233 | "interval": "", | ||
504 | 234 | "legendFormat": "", | ||
505 | 235 | "refId": "E" | ||
506 | 236 | }, | ||
507 | 237 | { | ||
508 | 238 | "expr": "mem_cached{host=~\"$host\"}", | ||
509 | 239 | "interval": "", | ||
510 | 240 | "legendFormat": "", | ||
511 | 241 | "refId": "F" | ||
512 | 242 | }, | ||
513 | 243 | { | ||
514 | 244 | "expr": "mem_vmalloc_used{host=~\"$host\"}", | ||
515 | 245 | "interval": "", | ||
516 | 246 | "legendFormat": "", | ||
517 | 247 | "refId": "H" | ||
518 | 248 | }, | ||
519 | 249 | { | ||
520 | 250 | "expr": "mem_total{host=~\"$host\"}", | ||
521 | 251 | "interval": "", | ||
522 | 252 | "legendFormat": "", | ||
523 | 253 | "refId": "I" | ||
524 | 254 | } | ||
525 | 255 | ], | ||
526 | 256 | "thresholds": [], | ||
527 | 257 | "timeFrom": null, | ||
528 | 258 | "timeRegions": [], | ||
529 | 259 | "timeShift": null, | ||
530 | 260 | "title": "Mem stats", | ||
531 | 261 | "tooltip": { | ||
532 | 262 | "shared": true, | ||
533 | 263 | "sort": 0, | ||
534 | 264 | "value_type": "individual" | ||
535 | 265 | }, | ||
536 | 266 | "type": "graph", | ||
537 | 267 | "xaxis": { | ||
538 | 268 | "buckets": null, | ||
539 | 269 | "mode": "time", | ||
540 | 270 | "name": null, | ||
541 | 271 | "show": true, | ||
542 | 272 | "values": [] | ||
543 | 273 | }, | ||
544 | 274 | "yaxes": [ | ||
545 | 275 | { | ||
546 | 276 | "format": "bytes", | ||
547 | 277 | "label": null, | ||
548 | 278 | "logBase": 1, | ||
549 | 279 | "max": null, | ||
550 | 280 | "min": null, | ||
551 | 281 | "show": true | ||
552 | 282 | }, | ||
553 | 283 | { | ||
554 | 284 | "format": "short", | ||
555 | 285 | "label": null, | ||
556 | 286 | "logBase": 1, | ||
557 | 287 | "max": null, | ||
558 | 288 | "min": null, | ||
559 | 289 | "show": true | ||
560 | 290 | } | ||
561 | 291 | ], | ||
562 | 292 | "yaxis": { | ||
563 | 293 | "align": false, | ||
564 | 294 | "alignLevel": null | ||
565 | 295 | } | ||
566 | 296 | }, | ||
567 | 297 | { | ||
568 | 298 | "aliasColors": {}, | ||
569 | 299 | "bars": false, | ||
570 | 300 | "dashLength": 10, | ||
571 | 301 | "dashes": false, | ||
572 | 302 | "datasource": "prometheus", | ||
573 | 303 | "description": "", | ||
574 | 304 | "fieldConfig": { | ||
575 | 305 | "defaults": { | ||
576 | 306 | "custom": {}, | ||
577 | 307 | "links": [] | ||
578 | 308 | }, | ||
579 | 309 | "overrides": [] | ||
580 | 310 | }, | ||
581 | 311 | "fill": 6, | ||
582 | 312 | "fillGradient": 0, | ||
583 | 313 | "gridPos": { | ||
584 | 314 | "h": 9, | ||
585 | 315 | "w": 12, | ||
586 | 316 | "x": 0, | ||
587 | 317 | "y": 10 | ||
588 | 318 | }, | ||
589 | 319 | "height": "", | ||
590 | 320 | "hiddenSeries": false, | ||
591 | 321 | "id": 4, | ||
592 | 322 | "legend": { | ||
593 | 323 | "alignAsTable": true, | ||
594 | 324 | "avg": false, | ||
595 | 325 | "current": true, | ||
596 | 326 | "max": true, | ||
597 | 327 | "min": true, | ||
598 | 328 | "show": true, | ||
599 | 329 | "total": false, | ||
600 | 330 | "values": true | ||
601 | 331 | }, | ||
602 | 332 | "lines": true, | ||
603 | 333 | "linewidth": 1, | ||
604 | 334 | "links": [], | ||
605 | 335 | "nullPointMode": "null", | ||
606 | 336 | "options": { | ||
607 | 337 | "alertThreshold": true | ||
608 | 338 | }, | ||
609 | 339 | "percentage": false, | ||
610 | 340 | "pluginVersion": "7.2.0", | ||
611 | 341 | "pointradius": 5, | ||
612 | 342 | "points": false, | ||
613 | 343 | "renderer": "flot", | ||
614 | 344 | "seriesOverrides": [], | ||
615 | 345 | "spaceLength": 10, | ||
616 | 346 | "stack": false, | ||
617 | 347 | "steppedLine": false, | ||
618 | 348 | "targets": [ | ||
619 | 349 | { | ||
620 | 350 | "expr": "mem_used{host=~\"$host\"}", | ||
621 | 351 | "format": "time_series", | ||
622 | 352 | "interval": "", | ||
623 | 353 | "intervalFactor": 2, | ||
624 | 354 | "legendFormat": "{{host}} Used", | ||
625 | 355 | "refId": "A", | ||
626 | 356 | "step": 60 | ||
627 | 357 | }, | ||
628 | 358 | { | ||
629 | 359 | "expr": "mem_buffered{host=~\"$host\"} + mem_cached{host=~\"$host\"}", | ||
630 | 360 | "format": "time_series", | ||
631 | 361 | "interval": "", | ||
632 | 362 | "intervalFactor": 2, | ||
633 | 363 | "legendFormat": "{{host}} Buffers+cache", | ||
634 | 364 | "refId": "B", | ||
635 | 365 | "step": 60 | ||
636 | 366 | }, | ||
637 | 367 | { | ||
638 | 368 | "expr": "mem_free{host=~\"$host\"}", | ||
639 | 369 | "format": "time_series", | ||
640 | 370 | "interval": "", | ||
641 | 371 | "intervalFactor": 2, | ||
642 | 372 | "legendFormat": "{{host}} Free", | ||
643 | 373 | "refId": "C", | ||
644 | 374 | "step": 60 | ||
645 | 375 | } | ||
646 | 376 | ], | ||
647 | 377 | "thresholds": [], | ||
648 | 378 | "timeFrom": null, | ||
649 | 379 | "timeRegions": [], | ||
650 | 380 | "timeShift": null, | ||
651 | 381 | "title": "Memory", | ||
652 | 382 | "tooltip": { | ||
653 | 383 | "shared": true, | ||
654 | 384 | "sort": 0, | ||
655 | 385 | "value_type": "individual" | ||
656 | 386 | }, | ||
657 | 387 | "type": "graph", | ||
658 | 388 | "xaxis": { | ||
659 | 389 | "buckets": null, | ||
660 | 390 | "mode": "time", | ||
661 | 391 | "name": null, | ||
662 | 392 | "show": true, | ||
663 | 393 | "values": [] | ||
664 | 394 | }, | ||
665 | 395 | "yaxes": [ | ||
666 | 396 | { | ||
667 | 397 | "format": "bytes", | ||
668 | 398 | "label": null, | ||
669 | 399 | "logBase": 1, | ||
670 | 400 | "max": null, | ||
671 | 401 | "min": "0", | ||
672 | 402 | "show": true | ||
673 | 403 | }, | ||
674 | 404 | { | ||
675 | 405 | "format": "short", | ||
676 | 406 | "label": null, | ||
677 | 407 | "logBase": 1, | ||
678 | 408 | "max": null, | ||
679 | 409 | "min": null, | ||
680 | 410 | "show": true | ||
681 | 411 | } | ||
682 | 412 | ], | ||
683 | 413 | "yaxis": { | ||
684 | 414 | "align": false, | ||
685 | 415 | "alignLevel": null | ||
686 | 416 | } | ||
687 | 417 | }, | ||
688 | 418 | { | ||
689 | 419 | "aliasColors": {}, | ||
690 | 420 | "bars": false, | ||
691 | 421 | "dashLength": 10, | ||
692 | 422 | "dashes": false, | ||
693 | 423 | "datasource": "prometheus", | ||
694 | 424 | "editable": true, | ||
695 | 425 | "error": false, | ||
696 | 426 | "fieldConfig": { | ||
697 | 427 | "defaults": { | ||
698 | 428 | "custom": {}, | ||
699 | 429 | "links": [] | ||
700 | 430 | }, | ||
701 | 431 | "overrides": [] | ||
702 | 432 | }, | ||
703 | 433 | "fill": 4, | ||
704 | 434 | "fillGradient": 0, | ||
705 | 435 | "grid": {}, | ||
706 | 436 | "gridPos": { | ||
707 | 437 | "h": 15, | ||
708 | 438 | "w": 24, | ||
709 | 439 | "x": 0, | ||
710 | 440 | "y": 19 | ||
711 | 441 | }, | ||
712 | 442 | "height": "310px", | ||
713 | 443 | "hiddenSeries": false, | ||
714 | 444 | "id": 5, | ||
715 | 445 | "legend": { | ||
716 | 446 | "alignAsTable": false, | ||
717 | 447 | "avg": false, | ||
718 | 448 | "current": true, | ||
719 | 449 | "max": false, | ||
720 | 450 | "min": false, | ||
721 | 451 | "show": true, | ||
722 | 452 | "sortDesc": true, | ||
723 | 453 | "total": false, | ||
724 | 454 | "values": true | ||
725 | 455 | }, | ||
726 | 456 | "lines": true, | ||
727 | 457 | "linewidth": 2, | ||
728 | 458 | "links": [], | ||
729 | 459 | "nullPointMode": "null", | ||
730 | 460 | "options": { | ||
731 | 461 | "alertThreshold": true | ||
732 | 462 | }, | ||
733 | 463 | "percentage": false, | ||
734 | 464 | "pluginVersion": "7.2.0", | ||
735 | 465 | "pointradius": 5, | ||
736 | 466 | "points": false, | ||
737 | 467 | "renderer": "flot", | ||
738 | 468 | "seriesOverrides": [], | ||
739 | 469 | "spaceLength": 10, | ||
740 | 470 | "stack": true, | ||
741 | 471 | "steppedLine": false, | ||
742 | 472 | "targets": [ | ||
743 | 473 | { | ||
744 | 474 | "expr": "cpu_usage_user{cpu=\"cpu-total\",host=~\"$host\"}", | ||
745 | 475 | "format": "time_series", | ||
746 | 476 | "interval": "", | ||
747 | 477 | "intervalFactor": 2, | ||
748 | 478 | "legendFormat": "{{host}} user", | ||
749 | 479 | "refId": "A", | ||
750 | 480 | "step": 30 | ||
751 | 481 | }, | ||
752 | 482 | { | ||
753 | 483 | "expr": "cpu_usage_system{cpu=\"cpu-total\", host=~\"$host\"}", | ||
754 | 484 | "format": "time_series", | ||
755 | 485 | "interval": "", | ||
756 | 486 | "intervalFactor": 2, | ||
757 | 487 | "legendFormat": "{{host}} system", | ||
758 | 488 | "refId": "G", | ||
759 | 489 | "step": 30 | ||
760 | 490 | }, | ||
761 | 491 | { | ||
762 | 492 | "expr": "cpu_usage_iowait{cpu=\"cpu-total\",host=~\"$host\"}", | ||
763 | 493 | "format": "time_series", | ||
764 | 494 | "interval": "", | ||
765 | 495 | "intervalFactor": 2, | ||
766 | 496 | "legendFormat": "{{host}} iowait", | ||
767 | 497 | "refId": "C", | ||
768 | 498 | "step": 30 | ||
769 | 499 | }, | ||
770 | 500 | { | ||
771 | 501 | "expr": "cpu_usage_nice{cpu=\"cpu-total\",host=~\"$host\"}", | ||
772 | 502 | "format": "time_series", | ||
773 | 503 | "interval": "", | ||
774 | 504 | "intervalFactor": 2, | ||
775 | 505 | "legendFormat": "{{host}} nice", | ||
776 | 506 | "refId": "D", | ||
777 | 507 | "step": 30 | ||
778 | 508 | }, | ||
779 | 509 | { | ||
780 | 510 | "expr": "cpu_usage_softirq{cpu=\"cpu-total\",host=~\"$host\"}", | ||
781 | 511 | "format": "time_series", | ||
782 | 512 | "interval": "", | ||
783 | 513 | "intervalFactor": 2, | ||
784 | 514 | "legendFormat": "{{host}} softirq", | ||
785 | 515 | "refId": "E", | ||
786 | 516 | "step": 30 | ||
787 | 517 | }, | ||
788 | 518 | { | ||
789 | 519 | "expr": "cpu_usage_irq{cpu=\"cpu-total\",host=~\"$host\"}", | ||
790 | 520 | "format": "time_series", | ||
791 | 521 | "interval": "", | ||
792 | 522 | "intervalFactor": 2, | ||
793 | 523 | "legendFormat": "{{host}} irq", | ||
794 | 524 | "refId": "F", | ||
795 | 525 | "step": 30 | ||
796 | 526 | }, | ||
797 | 527 | { | ||
798 | 528 | "expr": "cpu_usage_guest{cpu=\"cpu-total\", host=~\"$host\"}", | ||
799 | 529 | "format": "time_series", | ||
800 | 530 | "interval": "", | ||
801 | 531 | "intervalFactor": 2, | ||
802 | 532 | "legendFormat": "{{host}} guest", | ||
803 | 533 | "refId": "H", | ||
804 | 534 | "step": 30 | ||
805 | 535 | }, | ||
806 | 536 | { | ||
807 | 537 | "expr": "cpu_usage_guest_nice{cpu=\"cpu-total\", host=~\"$host\"}", | ||
808 | 538 | "format": "time_series", | ||
809 | 539 | "interval": "", | ||
810 | 540 | "intervalFactor": 2, | ||
811 | 541 | "legendFormat": "{{host}} guest_nice", | ||
812 | 542 | "refId": "I", | ||
813 | 543 | "step": 30 | ||
814 | 544 | }, | ||
815 | 545 | { | ||
816 | 546 | "expr": "cpu_usage_idle{cpu=\"cpu-total\", host=~\"$host\"}", | ||
817 | 547 | "format": "time_series", | ||
818 | 548 | "interval": "", | ||
819 | 549 | "intervalFactor": 2, | ||
820 | 550 | "legendFormat": "{{host}} idle", | ||
821 | 551 | "refId": "B", | ||
822 | 552 | "step": 30 | ||
823 | 553 | } | ||
824 | 554 | ], | ||
825 | 555 | "thresholds": [], | ||
826 | 556 | "timeFrom": null, | ||
827 | 557 | "timeRegions": [], | ||
828 | 558 | "timeShift": null, | ||
829 | 559 | "title": "CPU", | ||
830 | 560 | "tooltip": { | ||
831 | 561 | "msResolution": false, | ||
832 | 562 | "shared": true, | ||
833 | 563 | "sort": 0, | ||
834 | 564 | "value_type": "individual" | ||
835 | 565 | }, | ||
836 | 566 | "type": "graph", | ||
837 | 567 | "xaxis": { | ||
838 | 568 | "buckets": null, | ||
839 | 569 | "mode": "time", | ||
840 | 570 | "name": null, | ||
841 | 571 | "show": true, | ||
842 | 572 | "values": [] | ||
843 | 573 | }, | ||
844 | 574 | "yaxes": [ | ||
845 | 575 | { | ||
846 | 576 | "format": "percent", | ||
847 | 577 | "label": "", | ||
848 | 578 | "logBase": 1, | ||
849 | 579 | "max": null, | ||
850 | 580 | "min": 0, | ||
851 | 581 | "show": true | ||
852 | 582 | }, | ||
853 | 583 | { | ||
854 | 584 | "format": "short", | ||
855 | 585 | "label": null, | ||
856 | 586 | "logBase": 1, | ||
857 | 587 | "max": null, | ||
858 | 588 | "min": null, | ||
859 | 589 | "show": true | ||
860 | 590 | } | ||
861 | 591 | ], | ||
862 | 592 | "yaxis": { | ||
863 | 593 | "align": false, | ||
864 | 594 | "alignLevel": null | ||
865 | 595 | } | ||
866 | 596 | }, | ||
867 | 597 | { | ||
868 | 598 | "aliasColors": {}, | ||
869 | 599 | "bars": false, | ||
870 | 600 | "dashLength": 10, | ||
871 | 601 | "dashes": false, | ||
872 | 602 | "datasource": "prometheus", | ||
873 | 603 | "editable": true, | ||
874 | 604 | "error": false, | ||
875 | 605 | "fieldConfig": { | ||
876 | 606 | "defaults": { | ||
877 | 607 | "custom": {}, | ||
878 | 608 | "links": [] | ||
879 | 609 | }, | ||
880 | 610 | "overrides": [] | ||
881 | 611 | }, | ||
882 | 612 | "fill": 4, | ||
883 | 613 | "fillGradient": 0, | ||
884 | 614 | "grid": {}, | ||
885 | 615 | "gridPos": { | ||
886 | 616 | "h": 9, | ||
887 | 617 | "w": 12, | ||
888 | 618 | "x": 0, | ||
889 | 619 | "y": 34 | ||
890 | 620 | }, | ||
891 | 621 | "height": "310px", | ||
892 | 622 | "hiddenSeries": false, | ||
893 | 623 | "id": 338, | ||
894 | 624 | "legend": { | ||
895 | 625 | "alignAsTable": false, | ||
896 | 626 | "avg": false, | ||
897 | 627 | "current": true, | ||
898 | 628 | "max": false, | ||
899 | 629 | "min": false, | ||
900 | 630 | "show": true, | ||
901 | 631 | "sortDesc": true, | ||
902 | 632 | "total": false, | ||
903 | 633 | "values": true | ||
904 | 634 | }, | ||
905 | 635 | "lines": true, | ||
906 | 636 | "linewidth": 2, | ||
907 | 637 | "links": [], | ||
908 | 638 | "nullPointMode": "null", | ||
909 | 639 | "options": { | ||
910 | 640 | "alertThreshold": true | ||
911 | 641 | }, | ||
912 | 642 | "percentage": false, | ||
913 | 643 | "pluginVersion": "7.2.0", | ||
914 | 644 | "pointradius": 5, | ||
915 | 645 | "points": false, | ||
916 | 646 | "renderer": "flot", | ||
917 | 647 | "seriesOverrides": [], | ||
918 | 648 | "spaceLength": 10, | ||
919 | 649 | "stack": true, | ||
920 | 650 | "steppedLine": false, | ||
921 | 651 | "targets": [ | ||
922 | 652 | { | ||
923 | 653 | "expr": "cpu_usage_steal{cpu=\"cpu-total\",host=~\"$host\"}", | ||
924 | 654 | "format": "time_series", | ||
925 | 655 | "interval": "", | ||
926 | 656 | "intervalFactor": 2, | ||
927 | 657 | "legendFormat": "{{host}} steal", | ||
928 | 658 | "refId": "A", | ||
929 | 659 | "step": 30 | ||
930 | 660 | } | ||
931 | 661 | ], | ||
932 | 662 | "thresholds": [], | ||
933 | 663 | "timeFrom": null, | ||
934 | 664 | "timeRegions": [], | ||
935 | 665 | "timeShift": null, | ||
936 | 666 | "title": "CPU steal", | ||
937 | 667 | "tooltip": { | ||
938 | 668 | "msResolution": false, | ||
939 | 669 | "shared": true, | ||
940 | 670 | "sort": 0, | ||
941 | 671 | "value_type": "individual" | ||
942 | 672 | }, | ||
943 | 673 | "type": "graph", | ||
944 | 674 | "xaxis": { | ||
945 | 675 | "buckets": null, | ||
946 | 676 | "mode": "time", | ||
947 | 677 | "name": null, | ||
948 | 678 | "show": true, | ||
949 | 679 | "values": [] | ||
950 | 680 | }, | ||
951 | 681 | "yaxes": [ | ||
952 | 682 | { | ||
953 | 683 | "format": "percent", | ||
954 | 684 | "label": "", | ||
955 | 685 | "logBase": 1, | ||
956 | 686 | "max": null, | ||
957 | 687 | "min": 0, | ||
958 | 688 | "show": true | ||
959 | 689 | }, | ||
960 | 690 | { | ||
961 | 691 | "format": "short", | ||
962 | 692 | "label": null, | ||
963 | 693 | "logBase": 1, | ||
964 | 694 | "max": null, | ||
965 | 695 | "min": null, | ||
966 | 696 | "show": true | ||
967 | 697 | } | ||
968 | 698 | ], | ||
969 | 699 | "yaxis": { | ||
970 | 700 | "align": false, | ||
971 | 701 | "alignLevel": null | ||
972 | 702 | } | ||
973 | 703 | }, | ||
974 | 704 | { | ||
975 | 705 | "aliasColors": {}, | ||
976 | 706 | "bars": false, | ||
977 | 707 | "dashLength": 10, | ||
978 | 708 | "dashes": false, | ||
979 | 709 | "datasource": "prometheus", | ||
980 | 710 | "description": "", | ||
981 | 711 | "fieldConfig": { | ||
982 | 712 | "defaults": { | ||
983 | 713 | "custom": {}, | ||
984 | 714 | "links": [] | ||
985 | 715 | }, | ||
986 | 716 | "overrides": [] | ||
987 | 717 | }, | ||
988 | 718 | "fill": 1, | ||
989 | 719 | "fillGradient": 0, | ||
990 | 720 | "gridPos": { | ||
991 | 721 | "h": 9, | ||
992 | 722 | "w": 12, | ||
993 | 723 | "x": 12, | ||
994 | 724 | "y": 34 | ||
995 | 725 | }, | ||
996 | 726 | "hiddenSeries": false, | ||
997 | 727 | "id": 41, | ||
998 | 728 | "legend": { | ||
999 | 729 | "alignAsTable": false, | ||
1000 | 730 | "avg": false, | ||
1001 | 731 | "current": false, | ||
1002 | 732 | "max": false, | ||
1003 | 733 | "min": false, | ||
1004 | 734 | "show": true, | ||
1005 | 735 | "total": false, | ||
1006 | 736 | "values": false | ||
1007 | 737 | }, | ||
1008 | 738 | "lines": true, | ||
1009 | 739 | "linewidth": 1, | ||
1010 | 740 | "links": [], | ||
1011 | 741 | "nullPointMode": "null", | ||
1012 | 742 | "options": { | ||
1013 | 743 | "alertThreshold": true | ||
1014 | 744 | }, | ||
1015 | 745 | "percentage": false, | ||
1016 | 746 | "pluginVersion": "7.2.0", | ||
1017 | 747 | "pointradius": 5, | ||
1018 | 748 | "points": false, | ||
1019 | 749 | "renderer": "flot", | ||
1020 | 750 | "seriesOverrides": [], | ||
1021 | 751 | "spaceLength": 10, | ||
1022 | 752 | "stack": false, | ||
1023 | 753 | "steppedLine": false, | ||
1024 | 754 | "targets": [ | ||
1025 | 755 | { | ||
1026 | 756 | "expr": "swap_used_percent{host=~\"$host\"}", | ||
1027 | 757 | "format": "time_series", | ||
1028 | 758 | "interval": "", | ||
1029 | 759 | "intervalFactor": 2, | ||
1030 | 760 | "legendFormat": "{{host}}", | ||
1031 | 761 | "refId": "A", | ||
1032 | 762 | "step": 60 | ||
1033 | 763 | } | ||
1034 | 764 | ], | ||
1035 | 765 | "thresholds": [], | ||
1036 | 766 | "timeFrom": null, | ||
1037 | 767 | "timeRegions": [], | ||
1038 | 768 | "timeShift": null, | ||
1039 | 769 | "title": "Swap used %", | ||
1040 | 770 | "tooltip": { | ||
1041 | 771 | "shared": true, | ||
1042 | 772 | "sort": 0, | ||
1043 | 773 | "value_type": "individual" | ||
1044 | 774 | }, | ||
1045 | 775 | "type": "graph", | ||
1046 | 776 | "xaxis": { | ||
1047 | 777 | "buckets": null, | ||
1048 | 778 | "mode": "time", | ||
1049 | 779 | "name": null, | ||
1050 | 780 | "show": true, | ||
1051 | 781 | "values": [] | ||
1052 | 782 | }, | ||
1053 | 783 | "yaxes": [ | ||
1054 | 784 | { | ||
1055 | 785 | "decimals": null, | ||
1056 | 786 | "format": "percent", | ||
1057 | 787 | "label": null, | ||
1058 | 788 | "logBase": 1, | ||
1059 | 789 | "max": "100", | ||
1060 | 790 | "min": "0", | ||
1061 | 791 | "show": true | ||
1062 | 792 | }, | ||
1063 | 793 | { | ||
1064 | 794 | "format": "short", | ||
1065 | 795 | "label": null, | ||
1066 | 796 | "logBase": 1, | ||
1067 | 797 | "max": null, | ||
1068 | 798 | "min": null, | ||
1069 | 799 | "show": true | ||
1070 | 800 | } | ||
1071 | 801 | ], | ||
1072 | 802 | "yaxis": { | ||
1073 | 803 | "align": false, | ||
1074 | 804 | "alignLevel": null | ||
1075 | 805 | } | ||
1076 | 806 | }, | ||
1077 | 807 | { | ||
1078 | 808 | "aliasColors": {}, | ||
1079 | 809 | "bars": false, | ||
1080 | 810 | "dashLength": 10, | ||
1081 | 811 | "dashes": false, | ||
1082 | 812 | "datasource": "prometheus", | ||
1083 | 813 | "description": "", | ||
1084 | 814 | "fieldConfig": { | ||
1085 | 815 | "defaults": { | ||
1086 | 816 | "custom": {}, | ||
1087 | 817 | "links": [] | ||
1088 | 818 | }, | ||
1089 | 819 | "overrides": [] | ||
1090 | 820 | }, | ||
1091 | 821 | "fill": 1, | ||
1092 | 822 | "fillGradient": 0, | ||
1093 | 823 | "gridPos": { | ||
1094 | 824 | "h": 9, | ||
1095 | 825 | "w": 12, | ||
1096 | 826 | "x": 0, | ||
1097 | 827 | "y": 43 | ||
1098 | 828 | }, | ||
1099 | 829 | "hiddenSeries": false, | ||
1100 | 830 | "id": 15, | ||
1101 | 831 | "legend": { | ||
1102 | 832 | "alignAsTable": false, | ||
1103 | 833 | "avg": false, | ||
1104 | 834 | "current": false, | ||
1105 | 835 | "max": false, | ||
1106 | 836 | "min": false, | ||
1107 | 837 | "show": true, | ||
1108 | 838 | "total": false, | ||
1109 | 839 | "values": false | ||
1110 | 840 | }, | ||
1111 | 841 | "lines": true, | ||
1112 | 842 | "linewidth": 1, | ||
1113 | 843 | "links": [], | ||
1114 | 844 | "nullPointMode": "null", | ||
1115 | 845 | "options": { | ||
1116 | 846 | "alertThreshold": true | ||
1117 | 847 | }, | ||
1118 | 848 | "percentage": false, | ||
1119 | 849 | "pluginVersion": "7.2.0", | ||
1120 | 850 | "pointradius": 5, | ||
1121 | 851 | "points": false, | ||
1122 | 852 | "renderer": "flot", | ||
1123 | 853 | "seriesOverrides": [], | ||
1124 | 854 | "spaceLength": 10, | ||
1125 | 855 | "stack": false, | ||
1126 | 856 | "steppedLine": false, | ||
1127 | 857 | "targets": [ | ||
1128 | 858 | { | ||
1129 | 859 | "expr": "rate(swap_in{host=~\"$host\"}[2m])", | ||
1130 | 860 | "format": "time_series", | ||
1131 | 861 | "interval": "", | ||
1132 | 862 | "intervalFactor": 2, | ||
1133 | 863 | "legendFormat": "{{host}} In", | ||
1134 | 864 | "refId": "A", | ||
1135 | 865 | "step": 60 | ||
1136 | 866 | }, | ||
1137 | 867 | { | ||
1138 | 868 | "expr": "rate(swap_out{host=~\"$host\"}[2m])", | ||
1139 | 869 | "format": "time_series", | ||
1140 | 870 | "interval": "", | ||
1141 | 871 | "intervalFactor": 2, | ||
1142 | 872 | "legendFormat": "{{host}} Out", | ||
1143 | 873 | "refId": "B", | ||
1144 | 874 | "step": 60 | ||
1145 | 875 | } | ||
1146 | 876 | ], | ||
1147 | 877 | "thresholds": [], | ||
1148 | 878 | "timeFrom": null, | ||
1149 | 879 | "timeRegions": [], | ||
1150 | 880 | "timeShift": null, | ||
1151 | 881 | "title": "Swap in/out throuput", | ||
1152 | 882 | "tooltip": { | ||
1153 | 883 | "shared": true, | ||
1154 | 884 | "sort": 0, | ||
1155 | 885 | "value_type": "individual" | ||
1156 | 886 | }, | ||
1157 | 887 | "type": "graph", | ||
1158 | 888 | "xaxis": { | ||
1159 | 889 | "buckets": null, | ||
1160 | 890 | "mode": "time", | ||
1161 | 891 | "name": null, | ||
1162 | 892 | "show": true, | ||
1163 | 893 | "values": [] | ||
1164 | 894 | }, | ||
1165 | 895 | "yaxes": [ | ||
1166 | 896 | { | ||
1167 | 897 | "format": "Bps", | ||
1168 | 898 | "label": null, | ||
1169 | 899 | "logBase": 1, | ||
1170 | 900 | "max": null, | ||
1171 | 901 | "min": "0", | ||
1172 | 902 | "show": true | ||
1173 | 903 | }, | ||
1174 | 904 | { | ||
1175 | 905 | "format": "short", | ||
1176 | 906 | "label": null, | ||
1177 | 907 | "logBase": 1, | ||
1178 | 908 | "max": null, | ||
1179 | 909 | "min": null, | ||
1180 | 910 | "show": true | ||
1181 | 911 | } | ||
1182 | 912 | ], | ||
1183 | 913 | "yaxis": { | ||
1184 | 914 | "align": false, | ||
1185 | 915 | "alignLevel": null | ||
1186 | 916 | } | ||
1187 | 917 | }, | ||
1188 | 918 | { | ||
1189 | 919 | "collapsed": false, | ||
1190 | 920 | "datasource": "prometheus", | ||
1191 | 921 | "gridPos": { | ||
1192 | 922 | "h": 1, | ||
1193 | 923 | "w": 24, | ||
1194 | 924 | "x": 0, | ||
1195 | 925 | "y": 52 | ||
1196 | 926 | }, | ||
1197 | 927 | "id": 288, | ||
1198 | 928 | "panels": [], | ||
1199 | 929 | "repeat": null, | ||
1200 | 930 | "title": "Network", | ||
1201 | 931 | "type": "row" | ||
1202 | 932 | }, | ||
1203 | 933 | { | ||
1204 | 934 | "collapsed": false, | ||
1205 | 935 | "datasource": "prometheus", | ||
1206 | 936 | "gridPos": { | ||
1207 | 937 | "h": 1, | ||
1208 | 938 | "w": 24, | ||
1209 | 939 | "x": 0, | ||
1210 | 940 | "y": 53 | ||
1211 | 941 | }, | ||
1212 | 942 | "id": 289, | ||
1213 | 943 | "panels": [], | ||
1214 | 944 | "repeat": null, | ||
1215 | 945 | "title": "Disk performance", | ||
1216 | 946 | "type": "row" | ||
1217 | 947 | }, | ||
1218 | 948 | { | ||
1219 | 949 | "aliasColors": {}, | ||
1220 | 950 | "bars": false, | ||
1221 | 951 | "dashLength": 10, | ||
1222 | 952 | "dashes": false, | ||
1223 | 953 | "datasource": "prometheus", | ||
1224 | 954 | "editable": true, | ||
1225 | 955 | "error": false, | ||
1226 | 956 | "fieldConfig": { | ||
1227 | 957 | "defaults": { | ||
1228 | 958 | "custom": {}, | ||
1229 | 959 | "links": [] | ||
1230 | 960 | }, | ||
1231 | 961 | "overrides": [] | ||
1232 | 962 | }, | ||
1233 | 963 | "fill": 0, | ||
1234 | 964 | "fillGradient": 0, | ||
1235 | 965 | "grid": {}, | ||
1236 | 966 | "gridPos": { | ||
1237 | 967 | "h": 9, | ||
1238 | 968 | "w": 12, | ||
1239 | 969 | "x": 0, | ||
1240 | 970 | "y": 54 | ||
1241 | 971 | }, | ||
1242 | 972 | "hiddenSeries": false, | ||
1243 | 973 | "id": 9, | ||
1244 | 974 | "legend": { | ||
1245 | 975 | "alignAsTable": true, | ||
1246 | 976 | "avg": false, | ||
1247 | 977 | "current": true, | ||
1248 | 978 | "max": true, | ||
1249 | 979 | "min": true, | ||
1250 | 980 | "show": true, | ||
1251 | 981 | "total": false, | ||
1252 | 982 | "values": true | ||
1253 | 983 | }, | ||
1254 | 984 | "lines": true, | ||
1255 | 985 | "linewidth": 2, | ||
1256 | 986 | "links": [], | ||
1257 | 987 | "nullPointMode": "null", | ||
1258 | 988 | "options": { | ||
1259 | 989 | "alertThreshold": true | ||
1260 | 990 | }, | ||
1261 | 991 | "percentage": false, | ||
1262 | 992 | "pluginVersion": "7.2.0", | ||
1263 | 993 | "pointradius": 5, | ||
1264 | 994 | "points": false, | ||
1265 | 995 | "renderer": "flot", | ||
1266 | 996 | "seriesOverrides": [], | ||
1267 | 997 | "spaceLength": 10, | ||
1268 | 998 | "stack": false, | ||
1269 | 999 | "steppedLine": false, | ||
1270 | 1000 | "targets": [ | ||
1271 | 1001 | { | ||
1272 | 1002 | "expr": "irate(diskio_reads{name=~\"nvme.*|sd.*|xv.*|vd.*|dasd.*|bcache.*\",name!~\"nvme.*p[0-9]+$|.*sd.*[0-9]$|xv.*[0-9]$|vd.*[0-9]$|dasd.*[0-9]$\",host=~\"$host\"}[2m])", | ||
1273 | 1003 | "format": "time_series", | ||
1274 | 1004 | "interval": "", | ||
1275 | 1005 | "intervalFactor": 2, | ||
1276 | 1006 | "legendFormat": "{{host}} {{name}}", | ||
1277 | 1007 | "refId": "B", | ||
1278 | 1008 | "step": 60 | ||
1279 | 1009 | } | ||
1280 | 1010 | ], | ||
1281 | 1011 | "thresholds": [], | ||
1282 | 1012 | "timeFrom": null, | ||
1283 | 1013 | "timeRegions": [], | ||
1284 | 1014 | "timeShift": null, | ||
1285 | 1015 | "title": "IOPS Read", | ||
1286 | 1016 | "tooltip": { | ||
1287 | 1017 | "msResolution": true, | ||
1288 | 1018 | "shared": true, | ||
1289 | 1019 | "sort": 0, | ||
1290 | 1020 | "value_type": "cumulative" | ||
1291 | 1021 | }, | ||
1292 | 1022 | "type": "graph", | ||
1293 | 1023 | "xaxis": { | ||
1294 | 1024 | "buckets": null, | ||
1295 | 1025 | "mode": "time", | ||
1296 | 1026 | "name": null, | ||
1297 | 1027 | "show": true, | ||
1298 | 1028 | "values": [] | ||
1299 | 1029 | }, | ||
1300 | 1030 | "yaxes": [ | ||
1301 | 1031 | { | ||
1302 | 1032 | "format": "iops", | ||
1303 | 1033 | "label": null, | ||
1304 | 1034 | "logBase": 1, | ||
1305 | 1035 | "max": null, | ||
1306 | 1036 | "min": "0", | ||
1307 | 1037 | "show": true | ||
1308 | 1038 | }, | ||
1309 | 1039 | { | ||
1310 | 1040 | "format": "short", | ||
1311 | 1041 | "label": null, | ||
1312 | 1042 | "logBase": 1, | ||
1313 | 1043 | "max": null, | ||
1314 | 1044 | "min": null, | ||
1315 | 1045 | "show": true | ||
1316 | 1046 | } | ||
1317 | 1047 | ], | ||
1318 | 1048 | "yaxis": { | ||
1319 | 1049 | "align": false, | ||
1320 | 1050 | "alignLevel": null | ||
1321 | 1051 | } | ||
1322 | 1052 | }, | ||
1323 | 1053 | { | ||
1324 | 1054 | "aliasColors": {}, | ||
1325 | 1055 | "bars": false, | ||
1326 | 1056 | "dashLength": 10, | ||
1327 | 1057 | "dashes": false, | ||
1328 | 1058 | "datasource": "prometheus", | ||
1329 | 1059 | "editable": true, | ||
1330 | 1060 | "error": false, | ||
1331 | 1061 | "fieldConfig": { | ||
1332 | 1062 | "defaults": { | ||
1333 | 1063 | "custom": {}, | ||
1334 | 1064 | "links": [] | ||
1335 | 1065 | }, | ||
1336 | 1066 | "overrides": [] | ||
1337 | 1067 | }, | ||
1338 | 1068 | "fill": 0, | ||
1339 | 1069 | "fillGradient": 0, | ||
1340 | 1070 | "grid": {}, | ||
1341 | 1071 | "gridPos": { | ||
1342 | 1072 | "h": 9, | ||
1343 | 1073 | "w": 12, | ||
1344 | 1074 | "x": 12, | ||
1345 | 1075 | "y": 54 | ||
1346 | 1076 | }, | ||
1347 | 1077 | "hiddenSeries": false, | ||
1348 | 1078 | "id": 10, | ||
1349 | 1079 | "legend": { | ||
1350 | 1080 | "alignAsTable": true, | ||
1351 | 1081 | "avg": false, | ||
1352 | 1082 | "current": true, | ||
1353 | 1083 | "max": true, | ||
1354 | 1084 | "min": true, | ||
1355 | 1085 | "show": true, | ||
1356 | 1086 | "total": false, | ||
1357 | 1087 | "values": true | ||
1358 | 1088 | }, | ||
1359 | 1089 | "lines": true, | ||
1360 | 1090 | "linewidth": 2, | ||
1361 | 1091 | "links": [], | ||
1362 | 1092 | "nullPointMode": "null", | ||
1363 | 1093 | "options": { | ||
1364 | 1094 | "alertThreshold": true | ||
1365 | 1095 | }, | ||
1366 | 1096 | "percentage": false, | ||
1367 | 1097 | "pluginVersion": "7.2.0", | ||
1368 | 1098 | "pointradius": 5, | ||
1369 | 1099 | "points": false, | ||
1370 | 1100 | "renderer": "flot", | ||
1371 | 1101 | "seriesOverrides": [], | ||
1372 | 1102 | "spaceLength": 10, | ||
1373 | 1103 | "stack": false, | ||
1374 | 1104 | "steppedLine": false, | ||
1375 | 1105 | "targets": [ | ||
1376 | 1106 | { | ||
1377 | 1107 | "expr": "irate(diskio_writes{name=~\"nvme.*|sd.*|xv.*|vd.*|dasd.*|bcache.*\",name!~\"nvme.*p[0-9]+$|.*sd.*[0-9]$|xv.*[0-9]$|vd.*[0-9]$|dasd.*[0-9]$\",host=~\"$host\"}[2m])", | ||
1378 | 1108 | "format": "time_series", | ||
1379 | 1109 | "interval": "", | ||
1380 | 1110 | "intervalFactor": 2, | ||
1381 | 1111 | "legendFormat": "{{host}} {{name}}", | ||
1382 | 1112 | "refId": "B", | ||
1383 | 1113 | "step": 60 | ||
1384 | 1114 | } | ||
1385 | 1115 | ], | ||
1386 | 1116 | "thresholds": [], | ||
1387 | 1117 | "timeFrom": null, | ||
1388 | 1118 | "timeRegions": [], | ||
1389 | 1119 | "timeShift": null, | ||
1390 | 1120 | "title": "IOPS Write", | ||
1391 | 1121 | "tooltip": { | ||
1392 | 1122 | "msResolution": true, | ||
1393 | 1123 | "shared": true, | ||
1394 | 1124 | "sort": 0, | ||
1395 | 1125 | "value_type": "cumulative" | ||
1396 | 1126 | }, | ||
1397 | 1127 | "type": "graph", | ||
1398 | 1128 | "xaxis": { | ||
1399 | 1129 | "buckets": null, | ||
1400 | 1130 | "mode": "time", | ||
1401 | 1131 | "name": null, | ||
1402 | 1132 | "show": true, | ||
1403 | 1133 | "values": [] | ||
1404 | 1134 | }, | ||
1405 | 1135 | "yaxes": [ | ||
1406 | 1136 | { | ||
1407 | 1137 | "format": "iops", | ||
1408 | 1138 | "label": null, | ||
1409 | 1139 | "logBase": 1, | ||
1410 | 1140 | "max": null, | ||
1411 | 1141 | "min": "0", | ||
1412 | 1142 | "show": true | ||
1413 | 1143 | }, | ||
1414 | 1144 | { | ||
1415 | 1145 | "format": "short", | ||
1416 | 1146 | "label": null, | ||
1417 | 1147 | "logBase": 1, | ||
1418 | 1148 | "max": null, | ||
1419 | 1149 | "min": null, | ||
1420 | 1150 | "show": true | ||
1421 | 1151 | } | ||
1422 | 1152 | ], | ||
1423 | 1153 | "yaxis": { | ||
1424 | 1154 | "align": false, | ||
1425 | 1155 | "alignLevel": null | ||
1426 | 1156 | } | ||
1427 | 1157 | }, | ||
1428 | 1158 | { | ||
1429 | 1159 | "aliasColors": {}, | ||
1430 | 1160 | "bars": false, | ||
1431 | 1161 | "dashLength": 10, | ||
1432 | 1162 | "dashes": false, | ||
1433 | 1163 | "datasource": "prometheus", | ||
1434 | 1164 | "editable": true, | ||
1435 | 1165 | "error": false, | ||
1436 | 1166 | "fieldConfig": { | ||
1437 | 1167 | "defaults": { | ||
1438 | 1168 | "custom": {}, | ||
1439 | 1169 | "links": [] | ||
1440 | 1170 | }, | ||
1441 | 1171 | "overrides": [] | ||
1442 | 1172 | }, | ||
1443 | 1173 | "fill": 0, | ||
1444 | 1174 | "fillGradient": 0, | ||
1445 | 1175 | "grid": {}, | ||
1446 | 1176 | "gridPos": { | ||
1447 | 1177 | "h": 9, | ||
1448 | 1178 | "w": 12, | ||
1449 | 1179 | "x": 0, | ||
1450 | 1180 | "y": 63 | ||
1451 | 1181 | }, | ||
1452 | 1182 | "hiddenSeries": false, | ||
1453 | 1183 | "id": 11, | ||
1454 | 1184 | "legend": { | ||
1455 | 1185 | "alignAsTable": true, | ||
1456 | 1186 | "avg": false, | ||
1457 | 1187 | "current": true, | ||
1458 | 1188 | "max": true, | ||
1459 | 1189 | "min": true, | ||
1460 | 1190 | "show": true, | ||
1461 | 1191 | "total": false, | ||
1462 | 1192 | "values": true | ||
1463 | 1193 | }, | ||
1464 | 1194 | "lines": true, | ||
1465 | 1195 | "linewidth": 2, | ||
1466 | 1196 | "links": [], | ||
1467 | 1197 | "nullPointMode": "null", | ||
1468 | 1198 | "options": { | ||
1469 | 1199 | "alertThreshold": true | ||
1470 | 1200 | }, | ||
1471 | 1201 | "percentage": false, | ||
1472 | 1202 | "pluginVersion": "7.2.0", | ||
1473 | 1203 | "pointradius": 5, | ||
1474 | 1204 | "points": false, | ||
1475 | 1205 | "renderer": "flot", | ||
1476 | 1206 | "seriesOverrides": [], | ||
1477 | 1207 | "spaceLength": 10, | ||
1478 | 1208 | "stack": false, | ||
1479 | 1209 | "steppedLine": false, | ||
1480 | 1210 | "targets": [ | ||
1481 | 1211 | { | ||
1482 | 1212 | "expr": "irate(diskio_read_bytes{name=~\"nvme.*|sd.*|xv.*|vd.*|dasd.*|bcache.*|md0\",name!~\"nvme.*p[0-9]+$|.*sd.*[0-9]$|xv.*[0-9]$|vd.*[0-9]$|dasd.*[0-9]$\",host=~\"$host\"}[2m])", | ||
1483 | 1213 | "format": "time_series", | ||
1484 | 1214 | "interval": "", | ||
1485 | 1215 | "intervalFactor": 2, | ||
1486 | 1216 | "legendFormat": "{{host}} {{name}}", | ||
1487 | 1217 | "refId": "B", | ||
1488 | 1218 | "step": 60 | ||
1489 | 1219 | } | ||
1490 | 1220 | ], | ||
1491 | 1221 | "thresholds": [], | ||
1492 | 1222 | "timeFrom": null, | ||
1493 | 1223 | "timeRegions": [], | ||
1494 | 1224 | "timeShift": null, | ||
1495 | 1225 | "title": "Disk Read", | ||
1496 | 1226 | "tooltip": { | ||
1497 | 1227 | "msResolution": true, | ||
1498 | 1228 | "shared": true, | ||
1499 | 1229 | "sort": 0, | ||
1500 | 1230 | "value_type": "cumulative" | ||
1501 | 1231 | }, | ||
1502 | 1232 | "type": "graph", | ||
1503 | 1233 | "xaxis": { | ||
1504 | 1234 | "buckets": null, | ||
1505 | 1235 | "mode": "time", | ||
1506 | 1236 | "name": null, | ||
1507 | 1237 | "show": true, | ||
1508 | 1238 | "values": [] | ||
1509 | 1239 | }, | ||
1510 | 1240 | "yaxes": [ | ||
1511 | 1241 | { | ||
1512 | 1242 | "format": "Bps", | ||
1513 | 1243 | "label": null, | ||
1514 | 1244 | "logBase": 1, | ||
1515 | 1245 | "max": null, | ||
1516 | 1246 | "min": "0", | ||
1517 | 1247 | "show": true | ||
1518 | 1248 | }, | ||
1519 | 1249 | { | ||
1520 | 1250 | "format": "short", | ||
1521 | 1251 | "label": null, | ||
1522 | 1252 | "logBase": 1, | ||
1523 | 1253 | "max": null, | ||
1524 | 1254 | "min": null, | ||
1525 | 1255 | "show": true | ||
1526 | 1256 | } | ||
1527 | 1257 | ], | ||
1528 | 1258 | "yaxis": { | ||
1529 | 1259 | "align": false, | ||
1530 | 1260 | "alignLevel": null | ||
1531 | 1261 | } | ||
1532 | 1262 | }, | ||
1533 | 1263 | { | ||
1534 | 1264 | "aliasColors": {}, | ||
1535 | 1265 | "bars": false, | ||
1536 | 1266 | "dashLength": 10, | ||
1537 | 1267 | "dashes": false, | ||
1538 | 1268 | "datasource": "prometheus", | ||
1539 | 1269 | "editable": true, | ||
1540 | 1270 | "error": false, | ||
1541 | 1271 | "fieldConfig": { | ||
1542 | 1272 | "defaults": { | ||
1543 | 1273 | "custom": {}, | ||
1544 | 1274 | "links": [] | ||
1545 | 1275 | }, | ||
1546 | 1276 | "overrides": [] | ||
1547 | 1277 | }, | ||
1548 | 1278 | "fill": 0, | ||
1549 | 1279 | "fillGradient": 0, | ||
1550 | 1280 | "grid": {}, | ||
1551 | 1281 | "gridPos": { | ||
1552 | 1282 | "h": 9, | ||
1553 | 1283 | "w": 12, | ||
1554 | 1284 | "x": 12, | ||
1555 | 1285 | "y": 63 | ||
1556 | 1286 | }, | ||
1557 | 1287 | "hiddenSeries": false, | ||
1558 | 1288 | "id": 12, | ||
1559 | 1289 | "legend": { | ||
1560 | 1290 | "alignAsTable": true, | ||
1561 | 1291 | "avg": false, | ||
1562 | 1292 | "current": true, | ||
1563 | 1293 | "max": true, | ||
1564 | 1294 | "min": true, | ||
1565 | 1295 | "show": true, | ||
1566 | 1296 | "total": false, | ||
1567 | 1297 | "values": true | ||
1568 | 1298 | }, | ||
1569 | 1299 | "lines": true, | ||
1570 | 1300 | "linewidth": 2, | ||
1571 | 1301 | "links": [], | ||
1572 | 1302 | "nullPointMode": "null", | ||
1573 | 1303 | "options": { | ||
1574 | 1304 | "alertThreshold": true | ||
1575 | 1305 | }, | ||
1576 | 1306 | "percentage": false, | ||
1577 | 1307 | "pluginVersion": "7.2.0", | ||
1578 | 1308 | "pointradius": 5, | ||
1579 | 1309 | "points": false, | ||
1580 | 1310 | "renderer": "flot", | ||
1581 | 1311 | "seriesOverrides": [], | ||
1582 | 1312 | "spaceLength": 10, | ||
1583 | 1313 | "stack": false, | ||
1584 | 1314 | "steppedLine": false, | ||
1585 | 1315 | "targets": [ | ||
1586 | 1316 | { | ||
1587 | 1317 | "expr": "irate(diskio_write_bytes{name=~\"nvme.*|sd.*|xv.*|vd.*|dasd.*|bcache.*|md0\",name!~\"nvme.*p[0-9]+$|.*sd.*[0-9]$|xv.*[0-9]$|vd.*[0-9]$|dasd.*[0-9]$\",host=~\"$host\"}[2m])", | ||
1588 | 1318 | "format": "time_series", | ||
1589 | 1319 | "interval": "", | ||
1590 | 1320 | "intervalFactor": 2, | ||
1591 | 1321 | "legendFormat": "{{host}} {{name}}", | ||
1592 | 1322 | "refId": "B", | ||
1593 | 1323 | "step": 60 | ||
1594 | 1324 | } | ||
1595 | 1325 | ], | ||
1596 | 1326 | "thresholds": [], | ||
1597 | 1327 | "timeFrom": null, | ||
1598 | 1328 | "timeRegions": [], | ||
1599 | 1329 | "timeShift": null, | ||
1600 | 1330 | "title": "Disk write", | ||
1601 | 1331 | "tooltip": { | ||
1602 | 1332 | "msResolution": true, | ||
1603 | 1333 | "shared": true, | ||
1604 | 1334 | "sort": 0, | ||
1605 | 1335 | "value_type": "cumulative" | ||
1606 | 1336 | }, | ||
1607 | 1337 | "type": "graph", | ||
1608 | 1338 | "xaxis": { | ||
1609 | 1339 | "buckets": null, | ||
1610 | 1340 | "mode": "time", | ||
1611 | 1341 | "name": null, | ||
1612 | 1342 | "show": true, | ||
1613 | 1343 | "values": [] | ||
1614 | 1344 | }, | ||
1615 | 1345 | "yaxes": [ | ||
1616 | 1346 | { | ||
1617 | 1347 | "format": "Bps", | ||
1618 | 1348 | "label": null, | ||
1619 | 1349 | "logBase": 1, | ||
1620 | 1350 | "max": null, | ||
1621 | 1351 | "min": "0", | ||
1622 | 1352 | "show": true | ||
1623 | 1353 | }, | ||
1624 | 1354 | { | ||
1625 | 1355 | "format": "short", | ||
1626 | 1356 | "label": null, | ||
1627 | 1357 | "logBase": 1, | ||
1628 | 1358 | "max": null, | ||
1629 | 1359 | "min": null, | ||
1630 | 1360 | "show": true | ||
1631 | 1361 | } | ||
1632 | 1362 | ], | ||
1633 | 1363 | "yaxis": { | ||
1634 | 1364 | "align": false, | ||
1635 | 1365 | "alignLevel": null | ||
1636 | 1366 | } | ||
1637 | 1367 | }, | ||
1638 | 1368 | { | ||
1639 | 1369 | "aliasColors": {}, | ||
1640 | 1370 | "bars": false, | ||
1641 | 1371 | "dashLength": 10, | ||
1642 | 1372 | "dashes": false, | ||
1643 | 1373 | "datasource": "prometheus", | ||
1644 | 1374 | "editable": true, | ||
1645 | 1375 | "error": false, | ||
1646 | 1376 | "fieldConfig": { | ||
1647 | 1377 | "defaults": { | ||
1648 | 1378 | "custom": {}, | ||
1649 | 1379 | "links": [] | ||
1650 | 1380 | }, | ||
1651 | 1381 | "overrides": [] | ||
1652 | 1382 | }, | ||
1653 | 1383 | "fill": 0, | ||
1654 | 1384 | "fillGradient": 0, | ||
1655 | 1385 | "grid": {}, | ||
1656 | 1386 | "gridPos": { | ||
1657 | 1387 | "h": 9, | ||
1658 | 1388 | "w": 24, | ||
1659 | 1389 | "x": 0, | ||
1660 | 1390 | "y": 72 | ||
1661 | 1391 | }, | ||
1662 | 1392 | "hiddenSeries": false, | ||
1663 | 1393 | "id": 39, | ||
1664 | 1394 | "legend": { | ||
1665 | 1395 | "alignAsTable": true, | ||
1666 | 1396 | "avg": false, | ||
1667 | 1397 | "current": true, | ||
1668 | 1398 | "max": true, | ||
1669 | 1399 | "min": true, | ||
1670 | 1400 | "show": true, | ||
1671 | 1401 | "total": false, | ||
1672 | 1402 | "values": true | ||
1673 | 1403 | }, | ||
1674 | 1404 | "lines": true, | ||
1675 | 1405 | "linewidth": 2, | ||
1676 | 1406 | "links": [], | ||
1677 | 1407 | "nullPointMode": "null", | ||
1678 | 1408 | "options": { | ||
1679 | 1409 | "alertThreshold": true | ||
1680 | 1410 | }, | ||
1681 | 1411 | "percentage": false, | ||
1682 | 1412 | "pluginVersion": "7.2.0", | ||
1683 | 1413 | "pointradius": 5, | ||
1684 | 1414 | "points": false, | ||
1685 | 1415 | "renderer": "flot", | ||
1686 | 1416 | "seriesOverrides": [], | ||
1687 | 1417 | "spaceLength": 10, | ||
1688 | 1418 | "stack": false, | ||
1689 | 1419 | "steppedLine": false, | ||
1690 | 1420 | "targets": [ | ||
1691 | 1421 | { | ||
1692 | 1422 | "expr": "irate(diskio_io_time{name=~\"nvme.*|sd.*|xv.*|vd.*|dasd.*|bcache.*|md0\",name!~\"nvme.*p[0-9]+$|.*sd.*[0-9]$|xv.*[0-9]$|vd.*[0-9]$|dasd.*[0-9]$\",host=~\"$host\"}[2m])", | ||
1693 | 1423 | "format": "time_series", | ||
1694 | 1424 | "interval": "", | ||
1695 | 1425 | "intervalFactor": 2, | ||
1696 | 1426 | "legendFormat": "{{host}} {{name}}", | ||
1697 | 1427 | "refId": "B", | ||
1698 | 1428 | "step": 2 | ||
1699 | 1429 | } | ||
1700 | 1430 | ], | ||
1701 | 1431 | "thresholds": [], | ||
1702 | 1432 | "timeFrom": null, | ||
1703 | 1433 | "timeRegions": [], | ||
1704 | 1434 | "timeShift": null, | ||
1705 | 1435 | "title": "IO wait", | ||
1706 | 1436 | "tooltip": { | ||
1707 | 1437 | "msResolution": true, | ||
1708 | 1438 | "shared": true, | ||
1709 | 1439 | "sort": 0, | ||
1710 | 1440 | "value_type": "individual" | ||
1711 | 1441 | }, | ||
1712 | 1442 | "type": "graph", | ||
1713 | 1443 | "xaxis": { | ||
1714 | 1444 | "buckets": null, | ||
1715 | 1445 | "mode": "time", | ||
1716 | 1446 | "name": null, | ||
1717 | 1447 | "show": true, | ||
1718 | 1448 | "values": [] | ||
1719 | 1449 | }, | ||
1720 | 1450 | "yaxes": [ | ||
1721 | 1451 | { | ||
1722 | 1452 | "format": "ms", | ||
1723 | 1453 | "label": null, | ||
1724 | 1454 | "logBase": 1, | ||
1725 | 1455 | "max": null, | ||
1726 | 1456 | "min": "0", | ||
1727 | 1457 | "show": true | ||
1728 | 1458 | }, | ||
1729 | 1459 | { | ||
1730 | 1460 | "format": "short", | ||
1731 | 1461 | "label": null, | ||
1732 | 1462 | "logBase": 1, | ||
1733 | 1463 | "max": null, | ||
1734 | 1464 | "min": null, | ||
1735 | 1465 | "show": true | ||
1736 | 1466 | } | ||
1737 | 1467 | ], | ||
1738 | 1468 | "yaxis": { | ||
1739 | 1469 | "align": false, | ||
1740 | 1470 | "alignLevel": null | ||
1741 | 1471 | } | ||
1742 | 1472 | }, | ||
1743 | 1473 | { | ||
1744 | 1474 | "collapsed": false, | ||
1745 | 1475 | "datasource": "prometheus", | ||
1746 | 1476 | "gridPos": { | ||
1747 | 1477 | "h": 1, | ||
1748 | 1478 | "w": 24, | ||
1749 | 1479 | "x": 0, | ||
1750 | 1480 | "y": 81 | ||
1751 | 1481 | }, | ||
1752 | 1482 | "id": 290, | ||
1753 | 1483 | "panels": [], | ||
1754 | 1484 | "repeat": null, | ||
1755 | 1485 | "title": "Disk space", | ||
1756 | 1486 | "type": "row" | ||
1757 | 1487 | }, | ||
1758 | 1488 | { | ||
1759 | 1489 | "aliasColors": {}, | ||
1760 | 1490 | "bars": false, | ||
1761 | 1491 | "dashLength": 10, | ||
1762 | 1492 | "dashes": false, | ||
1763 | 1493 | "datasource": "prometheus", | ||
1764 | 1494 | "editable": true, | ||
1765 | 1495 | "error": false, | ||
1766 | 1496 | "fieldConfig": { | ||
1767 | 1497 | "defaults": { | ||
1768 | 1498 | "custom": {}, | ||
1769 | 1499 | "links": [] | ||
1770 | 1500 | }, | ||
1771 | 1501 | "overrides": [] | ||
1772 | 1502 | }, | ||
1773 | 1503 | "fill": 6, | ||
1774 | 1504 | "fillGradient": 0, | ||
1775 | 1505 | "grid": {}, | ||
1776 | 1506 | "gridPos": { | ||
1777 | 1507 | "h": 7, | ||
1778 | 1508 | "w": 8, | ||
1779 | 1509 | "x": 0, | ||
1780 | 1510 | "y": 82 | ||
1781 | 1511 | }, | ||
1782 | 1512 | "hiddenSeries": false, | ||
1783 | 1513 | "id": 16, | ||
1784 | 1514 | "legend": { | ||
1785 | 1515 | "alignAsTable": false, | ||
1786 | 1516 | "avg": false, | ||
1787 | 1517 | "current": true, | ||
1788 | 1518 | "max": false, | ||
1789 | 1519 | "min": false, | ||
1790 | 1520 | "show": true, | ||
1791 | 1521 | "total": false, | ||
1792 | 1522 | "values": true | ||
1793 | 1523 | }, | ||
1794 | 1524 | "lines": true, | ||
1795 | 1525 | "linewidth": 0, | ||
1796 | 1526 | "links": [], | ||
1797 | 1527 | "nullPointMode": "null", | ||
1798 | 1528 | "options": { | ||
1799 | 1529 | "alertThreshold": true | ||
1800 | 1530 | }, | ||
1801 | 1531 | "percentage": false, | ||
1802 | 1532 | "pluginVersion": "7.2.0", | ||
1803 | 1533 | "pointradius": 5, | ||
1804 | 1534 | "points": false, | ||
1805 | 1535 | "renderer": "flot", | ||
1806 | 1536 | "repeat": "mountpoint", | ||
1807 | 1537 | "seriesOverrides": [], | ||
1808 | 1538 | "spaceLength": 10, | ||
1809 | 1539 | "stack": true, | ||
1810 | 1540 | "steppedLine": false, | ||
1811 | 1541 | "targets": [ | ||
1812 | 1542 | { | ||
1813 | 1543 | "expr": "disk_free{host=~\"$host\"}", | ||
1814 | 1544 | "format": "time_series", | ||
1815 | 1545 | "interval": "", | ||
1816 | 1546 | "intervalFactor": 2, | ||
1817 | 1547 | "legendFormat": "{{host}} \"{{path}}\" Free", | ||
1818 | 1548 | "refId": "B", | ||
1819 | 1549 | "step": 2 | ||
1820 | 1550 | }, | ||
1821 | 1551 | { | ||
1822 | 1552 | "expr": "disk_used{host=~\"$host\"}", | ||
1823 | 1553 | "format": "time_series", | ||
1824 | 1554 | "interval": "", | ||
1825 | 1555 | "intervalFactor": 2, | ||
1826 | 1556 | "legendFormat": "{{host}} \"{{path}}\" Used", | ||
1827 | 1557 | "refId": "A", | ||
1828 | 1558 | "step": 2 | ||
1829 | 1559 | } | ||
1830 | 1560 | ], | ||
1831 | 1561 | "thresholds": [], | ||
1832 | 1562 | "timeFrom": null, | ||
1833 | 1563 | "timeRegions": [], | ||
1834 | 1564 | "timeShift": null, | ||
1835 | 1565 | "title": "Disk space (stacked)", | ||
1836 | 1566 | "tooltip": { | ||
1837 | 1567 | "msResolution": true, | ||
1838 | 1568 | "shared": true, | ||
1839 | 1569 | "sort": 0, | ||
1840 | 1570 | "value_type": "individual" | ||
1841 | 1571 | }, | ||
1842 | 1572 | "type": "graph", | ||
1843 | 1573 | "xaxis": { | ||
1844 | 1574 | "buckets": null, | ||
1845 | 1575 | "mode": "time", | ||
1846 | 1576 | "name": null, | ||
1847 | 1577 | "show": true, | ||
1848 | 1578 | "values": [] | ||
1849 | 1579 | }, | ||
1850 | 1580 | "yaxes": [ | ||
1851 | 1581 | { | ||
1852 | 1582 | "format": "decbytes", | ||
1853 | 1583 | "label": null, | ||
1854 | 1584 | "logBase": 1, | ||
1855 | 1585 | "max": null, | ||
1856 | 1586 | "min": "0", | ||
1857 | 1587 | "show": true | ||
1858 | 1588 | }, | ||
1859 | 1589 | { | ||
1860 | 1590 | "format": "short", | ||
1861 | 1591 | "label": null, | ||
1862 | 1592 | "logBase": 1, | ||
1863 | 1593 | "max": null, | ||
1864 | 1594 | "min": null, | ||
1865 | 1595 | "show": true | ||
1866 | 1596 | } | ||
1867 | 1597 | ], | ||
1868 | 1598 | "yaxis": { | ||
1869 | 1599 | "align": false, | ||
1870 | 1600 | "alignLevel": null | ||
1871 | 1601 | } | ||
1872 | 1602 | }, | ||
1873 | 1603 | { | ||
1874 | 1604 | "aliasColors": {}, | ||
1875 | 1605 | "bars": false, | ||
1876 | 1606 | "dashLength": 10, | ||
1877 | 1607 | "dashes": false, | ||
1878 | 1608 | "datasource": "prometheus", | ||
1879 | 1609 | "editable": true, | ||
1880 | 1610 | "error": false, | ||
1881 | 1611 | "fieldConfig": { | ||
1882 | 1612 | "defaults": { | ||
1883 | 1613 | "custom": {}, | ||
1884 | 1614 | "links": [] | ||
1885 | 1615 | }, | ||
1886 | 1616 | "overrides": [] | ||
1887 | 1617 | }, | ||
1888 | 1618 | "fill": 0, | ||
1889 | 1619 | "fillGradient": 0, | ||
1890 | 1620 | "grid": {}, | ||
1891 | 1621 | "gridPos": { | ||
1892 | 1622 | "h": 7, | ||
1893 | 1623 | "w": 8, | ||
1894 | 1624 | "x": 8, | ||
1895 | 1625 | "y": 82 | ||
1896 | 1626 | }, | ||
1897 | 1627 | "hiddenSeries": false, | ||
1898 | 1628 | "id": 40, | ||
1899 | 1629 | "legend": { | ||
1900 | 1630 | "alignAsTable": false, | ||
1901 | 1631 | "avg": false, | ||
1902 | 1632 | "current": true, | ||
1903 | 1633 | "max": false, | ||
1904 | 1634 | "min": false, | ||
1905 | 1635 | "show": true, | ||
1906 | 1636 | "total": false, | ||
1907 | 1637 | "values": true | ||
1908 | 1638 | }, | ||
1909 | 1639 | "lines": true, | ||
1910 | 1640 | "linewidth": 2, | ||
1911 | 1641 | "links": [], | ||
1912 | 1642 | "nullPointMode": "null", | ||
1913 | 1643 | "options": { | ||
1914 | 1644 | "alertThreshold": true | ||
1915 | 1645 | }, | ||
1916 | 1646 | "percentage": false, | ||
1917 | 1647 | "pluginVersion": "7.2.0", | ||
1918 | 1648 | "pointradius": 5, | ||
1919 | 1649 | "points": false, | ||
1920 | 1650 | "renderer": "flot", | ||
1921 | 1651 | "repeat": "mountpoint", | ||
1922 | 1652 | "seriesOverrides": [], | ||
1923 | 1653 | "spaceLength": 10, | ||
1924 | 1654 | "stack": false, | ||
1925 | 1655 | "steppedLine": false, | ||
1926 | 1656 | "targets": [ | ||
1927 | 1657 | { | ||
1928 | 1658 | "expr": "disk_used{host=~\"$host\"} / disk_total{host=~\"$host\"} * 100", | ||
1929 | 1659 | "format": "time_series", | ||
1930 | 1660 | "interval": "", | ||
1931 | 1661 | "intervalFactor": 2, | ||
1932 | 1662 | "legendFormat": "{{host}} \"{{path}}\"", | ||
1933 | 1663 | "refId": "B", | ||
1934 | 1664 | "step": 2 | ||
1935 | 1665 | } | ||
1936 | 1666 | ], | ||
1937 | 1667 | "thresholds": [], | ||
1938 | 1668 | "timeFrom": null, | ||
1939 | 1669 | "timeRegions": [], | ||
1940 | 1670 | "timeShift": null, | ||
1941 | 1671 | "title": "Disk space % used", | ||
1942 | 1672 | "tooltip": { | ||
1943 | 1673 | "msResolution": true, | ||
1944 | 1674 | "shared": true, | ||
1945 | 1675 | "sort": 0, | ||
1946 | 1676 | "value_type": "individual" | ||
1947 | 1677 | }, | ||
1948 | 1678 | "type": "graph", | ||
1949 | 1679 | "xaxis": { | ||
1950 | 1680 | "buckets": null, | ||
1951 | 1681 | "mode": "time", | ||
1952 | 1682 | "name": null, | ||
1953 | 1683 | "show": true, | ||
1954 | 1684 | "values": [] | ||
1955 | 1685 | }, | ||
1956 | 1686 | "yaxes": [ | ||
1957 | 1687 | { | ||
1958 | 1688 | "format": "percent", | ||
1959 | 1689 | "label": null, | ||
1960 | 1690 | "logBase": 1, | ||
1961 | 1691 | "max": null, | ||
1962 | 1692 | "min": "0", | ||
1963 | 1693 | "show": true | ||
1964 | 1694 | }, | ||
1965 | 1695 | { | ||
1966 | 1696 | "format": "short", | ||
1967 | 1697 | "label": null, | ||
1968 | 1698 | "logBase": 1, | ||
1969 | 1699 | "max": null, | ||
1970 | 1700 | "min": null, | ||
1971 | 1701 | "show": true | ||
1972 | 1702 | } | ||
1973 | 1703 | ], | ||
1974 | 1704 | "yaxis": { | ||
1975 | 1705 | "align": false, | ||
1976 | 1706 | "alignLevel": null | ||
1977 | 1707 | } | ||
1978 | 1708 | }, | ||
1979 | 1709 | { | ||
1980 | 1710 | "aliasColors": {}, | ||
1981 | 1711 | "bars": false, | ||
1982 | 1712 | "dashLength": 10, | ||
1983 | 1713 | "dashes": false, | ||
1984 | 1714 | "datasource": "prometheus", | ||
1985 | 1715 | "editable": true, | ||
1986 | 1716 | "error": false, | ||
1987 | 1717 | "fieldConfig": { | ||
1988 | 1718 | "defaults": { | ||
1989 | 1719 | "custom": {}, | ||
1990 | 1720 | "links": [] | ||
1991 | 1721 | }, | ||
1992 | 1722 | "overrides": [] | ||
1993 | 1723 | }, | ||
1994 | 1724 | "fill": 0, | ||
1995 | 1725 | "fillGradient": 0, | ||
1996 | 1726 | "grid": {}, | ||
1997 | 1727 | "gridPos": { | ||
1998 | 1728 | "h": 7, | ||
1999 | 1729 | "w": 8, | ||
2000 | 1730 | "x": 16, | ||
2001 | 1731 | "y": 82 | ||
2002 | 1732 | }, | ||
2003 | 1733 | "hiddenSeries": false, | ||
2004 | 1734 | "id": 17, | ||
2005 | 1735 | "legend": { | ||
2006 | 1736 | "alignAsTable": false, | ||
2007 | 1737 | "avg": false, | ||
2008 | 1738 | "current": true, | ||
2009 | 1739 | "max": false, | ||
2010 | 1740 | "min": false, | ||
2011 | 1741 | "show": true, | ||
2012 | 1742 | "total": false, | ||
2013 | 1743 | "values": true | ||
2014 | 1744 | }, | ||
2015 | 1745 | "lines": true, | ||
2016 | 1746 | "linewidth": 2, | ||
2017 | 1747 | "links": [], | ||
2018 | 1748 | "nullPointMode": "null", | ||
2019 | 1749 | "options": { | ||
2020 | 1750 | "alertThreshold": true | ||
2021 | 1751 | }, | ||
2022 | 1752 | "percentage": false, | ||
2023 | 1753 | "pluginVersion": "7.2.0", | ||
2024 | 1754 | "pointradius": 5, | ||
2025 | 1755 | "points": false, | ||
2026 | 1756 | "renderer": "flot", | ||
2027 | 1757 | "repeat": "mountpoint", | ||
2028 | 1758 | "seriesOverrides": [], | ||
2029 | 1759 | "spaceLength": 10, | ||
2030 | 1760 | "stack": false, | ||
2031 | 1761 | "steppedLine": false, | ||
2032 | 1762 | "targets": [ | ||
2033 | 1763 | { | ||
2034 | 1764 | "expr": "disk_inodes_used{host=~\"$host\"} / disk_inodes_total{host=~\"$host\"} * 100", | ||
2035 | 1765 | "format": "time_series", | ||
2036 | 1766 | "interval": "", | ||
2037 | 1767 | "intervalFactor": 2, | ||
2038 | 1768 | "legendFormat": "{{host}} \"{{path}}\"", | ||
2039 | 1769 | "refId": "A", | ||
2040 | 1770 | "step": 2 | ||
2041 | 1771 | } | ||
2042 | 1772 | ], | ||
2043 | 1773 | "thresholds": [], | ||
2044 | 1774 | "timeFrom": null, | ||
2045 | 1775 | "timeRegions": [], | ||
2046 | 1776 | "timeShift": null, | ||
2047 | 1777 | "title": "Inodes % used", | ||
2048 | 1778 | "tooltip": { | ||
2049 | 1779 | "msResolution": true, | ||
2050 | 1780 | "shared": true, | ||
2051 | 1781 | "sort": 0, | ||
2052 | 1782 | "value_type": "cumulative" | ||
2053 | 1783 | }, | ||
2054 | 1784 | "type": "graph", | ||
2055 | 1785 | "xaxis": { | ||
2056 | 1786 | "buckets": null, | ||
2057 | 1787 | "mode": "time", | ||
2058 | 1788 | "name": null, | ||
2059 | 1789 | "show": true, | ||
2060 | 1790 | "values": [] | ||
2061 | 1791 | }, | ||
2062 | 1792 | "yaxes": [ | ||
2063 | 1793 | { | ||
2064 | 1794 | "format": "percent", | ||
2065 | 1795 | "label": null, | ||
2066 | 1796 | "logBase": 1, | ||
2067 | 1797 | "max": "100", | ||
2068 | 1798 | "min": "0", | ||
2069 | 1799 | "show": true | ||
2070 | 1800 | }, | ||
2071 | 1801 | { | ||
2072 | 1802 | "format": "short", | ||
2073 | 1803 | "label": null, | ||
2074 | 1804 | "logBase": 1, | ||
2075 | 1805 | "max": null, | ||
2076 | 1806 | "min": null, | ||
2077 | 1807 | "show": false | ||
2078 | 1808 | } | ||
2079 | 1809 | ], | ||
2080 | 1810 | "yaxis": { | ||
2081 | 1811 | "align": false, | ||
2082 | 1812 | "alignLevel": null | ||
2083 | 1813 | } | ||
2084 | 1814 | }, | ||
2085 | 1815 | { | ||
2086 | 1816 | "collapsed": false, | ||
2087 | 1817 | "datasource": "prometheus", | ||
2088 | 1818 | "gridPos": { | ||
2089 | 1819 | "h": 1, | ||
2090 | 1820 | "w": 24, | ||
2091 | 1821 | "x": 0, | ||
2092 | 1822 | "y": 89 | ||
2093 | 1823 | }, | ||
2094 | 1824 | "id": 354, | ||
2095 | 1825 | "panels": [], | ||
2096 | 1826 | "title": "Kernel", | ||
2097 | 1827 | "type": "row" | ||
2098 | 1828 | }, | ||
2099 | 1829 | { | ||
2100 | 1830 | "aliasColors": {}, | ||
2101 | 1831 | "bars": false, | ||
2102 | 1832 | "dashLength": 10, | ||
2103 | 1833 | "dashes": false, | ||
2104 | 1834 | "datasource": "prometheus", | ||
2105 | 1835 | "fieldConfig": { | ||
2106 | 1836 | "defaults": { | ||
2107 | 1837 | "custom": {}, | ||
2108 | 1838 | "links": [] | ||
2109 | 1839 | }, | ||
2110 | 1840 | "overrides": [] | ||
2111 | 1841 | }, | ||
2112 | 1842 | "fill": 1, | ||
2113 | 1843 | "fillGradient": 0, | ||
2114 | 1844 | "gridPos": { | ||
2115 | 1845 | "h": 8, | ||
2116 | 1846 | "w": 12, | ||
2117 | 1847 | "x": 0, | ||
2118 | 1848 | "y": 90 | ||
2119 | 1849 | }, | ||
2120 | 1850 | "hiddenSeries": false, | ||
2121 | 1851 | "id": 362, | ||
2122 | 1852 | "legend": { | ||
2123 | 1853 | "avg": false, | ||
2124 | 1854 | "current": false, | ||
2125 | 1855 | "max": false, | ||
2126 | 1856 | "min": false, | ||
2127 | 1857 | "show": true, | ||
2128 | 1858 | "total": false, | ||
2129 | 1859 | "values": false | ||
2130 | 1860 | }, | ||
2131 | 1861 | "lines": true, | ||
2132 | 1862 | "linewidth": 1, | ||
2133 | 1863 | "nullPointMode": "null", | ||
2134 | 1864 | "options": { | ||
2135 | 1865 | "alertThreshold": true | ||
2136 | 1866 | }, | ||
2137 | 1867 | "percentage": false, | ||
2138 | 1868 | "pluginVersion": "7.2.0", | ||
2139 | 1869 | "pointradius": 2, | ||
2140 | 1870 | "points": false, | ||
2141 | 1871 | "renderer": "flot", | ||
2142 | 1872 | "seriesOverrides": [], | ||
2143 | 1873 | "spaceLength": 10, | ||
2144 | 1874 | "stack": false, | ||
2145 | 1875 | "steppedLine": false, | ||
2146 | 1876 | "targets": [ | ||
2147 | 1877 | { | ||
2148 | 1878 | "expr": "rate(kernel_interrupts{host=~\"$host\"}[1m])", | ||
2149 | 1879 | "interval": "", | ||
2150 | 1880 | "legendFormat": "", | ||
2151 | 1881 | "refId": "A" | ||
2152 | 1882 | } | ||
2153 | 1883 | ], | ||
2154 | 1884 | "thresholds": [], | ||
2155 | 1885 | "timeFrom": null, | ||
2156 | 1886 | "timeRegions": [], | ||
2157 | 1887 | "timeShift": null, | ||
2158 | 1888 | "title": "Interrupts", | ||
2159 | 1889 | "tooltip": { | ||
2160 | 1890 | "shared": true, | ||
2161 | 1891 | "sort": 0, | ||
2162 | 1892 | "value_type": "individual" | ||
2163 | 1893 | }, | ||
2164 | 1894 | "type": "graph", | ||
2165 | 1895 | "xaxis": { | ||
2166 | 1896 | "buckets": null, | ||
2167 | 1897 | "mode": "time", | ||
2168 | 1898 | "name": null, | ||
2169 | 1899 | "show": true, | ||
2170 | 1900 | "values": [] | ||
2171 | 1901 | }, | ||
2172 | 1902 | "yaxes": [ | ||
2173 | 1903 | { | ||
2174 | 1904 | "format": "short", | ||
2175 | 1905 | "label": null, | ||
2176 | 1906 | "logBase": 1, | ||
2177 | 1907 | "max": null, | ||
2178 | 1908 | "min": null, | ||
2179 | 1909 | "show": true | ||
2180 | 1910 | }, | ||
2181 | 1911 | { | ||
2182 | 1912 | "format": "short", | ||
2183 | 1913 | "label": null, | ||
2184 | 1914 | "logBase": 1, | ||
2185 | 1915 | "max": null, | ||
2186 | 1916 | "min": null, | ||
2187 | 1917 | "show": true | ||
2188 | 1918 | } | ||
2189 | 1919 | ], | ||
2190 | 1920 | "yaxis": { | ||
2191 | 1921 | "align": false, | ||
2192 | 1922 | "alignLevel": null | ||
2193 | 1923 | } | ||
2194 | 1924 | }, | ||
2195 | 1925 | { | ||
2196 | 1926 | "aliasColors": {}, | ||
2197 | 1927 | "bars": false, | ||
2198 | 1928 | "dashLength": 10, | ||
2199 | 1929 | "dashes": false, | ||
2200 | 1930 | "datasource": "prometheus", | ||
2201 | 1931 | "fieldConfig": { | ||
2202 | 1932 | "defaults": { | ||
2203 | 1933 | "custom": {}, | ||
2204 | 1934 | "links": [] | ||
2205 | 1935 | }, | ||
2206 | 1936 | "overrides": [] | ||
2207 | 1937 | }, | ||
2208 | 1938 | "fill": 1, | ||
2209 | 1939 | "fillGradient": 0, | ||
2210 | 1940 | "gridPos": { | ||
2211 | 1941 | "h": 8, | ||
2212 | 1942 | "w": 12, | ||
2213 | 1943 | "x": 12, | ||
2214 | 1944 | "y": 90 | ||
2215 | 1945 | }, | ||
2216 | 1946 | "hiddenSeries": false, | ||
2217 | 1947 | "id": 360, | ||
2218 | 1948 | "legend": { | ||
2219 | 1949 | "avg": false, | ||
2220 | 1950 | "current": false, | ||
2221 | 1951 | "max": false, | ||
2222 | 1952 | "min": false, | ||
2223 | 1953 | "show": true, | ||
2224 | 1954 | "total": false, | ||
2225 | 1955 | "values": false | ||
2226 | 1956 | }, | ||
2227 | 1957 | "lines": true, | ||
2228 | 1958 | "linewidth": 1, | ||
2229 | 1959 | "nullPointMode": "null", | ||
2230 | 1960 | "options": { | ||
2231 | 1961 | "alertThreshold": true | ||
2232 | 1962 | }, | ||
2233 | 1963 | "percentage": false, | ||
2234 | 1964 | "pluginVersion": "7.2.0", | ||
2235 | 1965 | "pointradius": 2, | ||
2236 | 1966 | "points": false, | ||
2237 | 1967 | "renderer": "flot", | ||
2238 | 1968 | "seriesOverrides": [], | ||
2239 | 1969 | "spaceLength": 10, | ||
2240 | 1970 | "stack": false, | ||
2241 | 1971 | "steppedLine": false, | ||
2242 | 1972 | "targets": [ | ||
2243 | 1973 | { | ||
2244 | 1974 | "expr": "rate(kernel_processes_forked{host=~\"$host\"}[1m])", | ||
2245 | 1975 | "interval": "", | ||
2246 | 1976 | "legendFormat": "", | ||
2247 | 1977 | "refId": "A" | ||
2248 | 1978 | } | ||
2249 | 1979 | ], | ||
2250 | 1980 | "thresholds": [], | ||
2251 | 1981 | "timeFrom": null, | ||
2252 | 1982 | "timeRegions": [], | ||
2253 | 1983 | "timeShift": null, | ||
2254 | 1984 | "title": "Forks", | ||
2255 | 1985 | "tooltip": { | ||
2256 | 1986 | "shared": true, | ||
2257 | 1987 | "sort": 0, | ||
2258 | 1988 | "value_type": "individual" | ||
2259 | 1989 | }, | ||
2260 | 1990 | "type": "graph", | ||
2261 | 1991 | "xaxis": { | ||
2262 | 1992 | "buckets": null, | ||
2263 | 1993 | "mode": "time", | ||
2264 | 1994 | "name": null, | ||
2265 | 1995 | "show": true, | ||
2266 | 1996 | "values": [] | ||
2267 | 1997 | }, | ||
2268 | 1998 | "yaxes": [ | ||
2269 | 1999 | { | ||
2270 | 2000 | "format": "short", | ||
2271 | 2001 | "label": null, | ||
2272 | 2002 | "logBase": 1, | ||
2273 | 2003 | "max": null, | ||
2274 | 2004 | "min": null, | ||
2275 | 2005 | "show": true | ||
2276 | 2006 | }, | ||
2277 | 2007 | { | ||
2278 | 2008 | "format": "short", | ||
2279 | 2009 | "label": null, | ||
2280 | 2010 | "logBase": 1, | ||
2281 | 2011 | "max": null, | ||
2282 | 2012 | "min": null, | ||
2283 | 2013 | "show": true | ||
2284 | 2014 | } | ||
2285 | 2015 | ], | ||
2286 | 2016 | "yaxis": { | ||
2287 | 2017 | "align": false, | ||
2288 | 2018 | "alignLevel": null | ||
2289 | 2019 | } | ||
2290 | 2020 | }, | ||
2291 | 2021 | { | ||
2292 | 2022 | "aliasColors": {}, | ||
2293 | 2023 | "bars": false, | ||
2294 | 2024 | "dashLength": 10, | ||
2295 | 2025 | "dashes": false, | ||
2296 | 2026 | "datasource": "prometheus", | ||
2297 | 2027 | "fieldConfig": { | ||
2298 | 2028 | "defaults": { | ||
2299 | 2029 | "custom": {}, | ||
2300 | 2030 | "links": [] | ||
2301 | 2031 | }, | ||
2302 | 2032 | "overrides": [] | ||
2303 | 2033 | }, | ||
2304 | 2034 | "fill": 1, | ||
2305 | 2035 | "fillGradient": 0, | ||
2306 | 2036 | "gridPos": { | ||
2307 | 2037 | "h": 8, | ||
2308 | 2038 | "w": 12, | ||
2309 | 2039 | "x": 0, | ||
2310 | 2040 | "y": 98 | ||
2311 | 2041 | }, | ||
2312 | 2042 | "hiddenSeries": false, | ||
2313 | 2043 | "id": 358, | ||
2314 | 2044 | "legend": { | ||
2315 | 2045 | "avg": false, | ||
2316 | 2046 | "current": false, | ||
2317 | 2047 | "max": false, | ||
2318 | 2048 | "min": false, | ||
2319 | 2049 | "show": true, | ||
2320 | 2050 | "total": false, | ||
2321 | 2051 | "values": false | ||
2322 | 2052 | }, | ||
2323 | 2053 | "lines": true, | ||
2324 | 2054 | "linewidth": 1, | ||
2325 | 2055 | "nullPointMode": "null", | ||
2326 | 2056 | "options": { | ||
2327 | 2057 | "alertThreshold": true | ||
2328 | 2058 | }, | ||
2329 | 2059 | "percentage": false, | ||
2330 | 2060 | "pluginVersion": "7.2.0", | ||
2331 | 2061 | "pointradius": 2, | ||
2332 | 2062 | "points": false, | ||
2333 | 2063 | "renderer": "flot", | ||
2334 | 2064 | "seriesOverrides": [], | ||
2335 | 2065 | "spaceLength": 10, | ||
2336 | 2066 | "stack": false, | ||
2337 | 2067 | "steppedLine": false, | ||
2338 | 2068 | "targets": [ | ||
2339 | 2069 | { | ||
2340 | 2070 | "expr": "kernel_entropy_avail{host=~\"$host\"}", | ||
2341 | 2071 | "interval": "", | ||
2342 | 2072 | "legendFormat": "", | ||
2343 | 2073 | "refId": "A" | ||
2344 | 2074 | } | ||
2345 | 2075 | ], | ||
2346 | 2076 | "thresholds": [], | ||
2347 | 2077 | "timeFrom": null, | ||
2348 | 2078 | "timeRegions": [], | ||
2349 | 2079 | "timeShift": null, | ||
2350 | 2080 | "title": "Available entropy", | ||
2351 | 2081 | "tooltip": { | ||
2352 | 2082 | "shared": true, | ||
2353 | 2083 | "sort": 0, | ||
2354 | 2084 | "value_type": "individual" | ||
2355 | 2085 | }, | ||
2356 | 2086 | "type": "graph", | ||
2357 | 2087 | "xaxis": { | ||
2358 | 2088 | "buckets": null, | ||
2359 | 2089 | "mode": "time", | ||
2360 | 2090 | "name": null, | ||
2361 | 2091 | "show": true, | ||
2362 | 2092 | "values": [] | ||
2363 | 2093 | }, | ||
2364 | 2094 | "yaxes": [ | ||
2365 | 2095 | { | ||
2366 | 2096 | "format": "short", | ||
2367 | 2097 | "label": null, | ||
2368 | 2098 | "logBase": 1, | ||
2369 | 2099 | "max": null, | ||
2370 | 2100 | "min": null, | ||
2371 | 2101 | "show": true | ||
2372 | 2102 | }, | ||
2373 | 2103 | { | ||
2374 | 2104 | "format": "short", | ||
2375 | 2105 | "label": null, | ||
2376 | 2106 | "logBase": 1, | ||
2377 | 2107 | "max": null, | ||
2378 | 2108 | "min": null, | ||
2379 | 2109 | "show": true | ||
2380 | 2110 | } | ||
2381 | 2111 | ], | ||
2382 | 2112 | "yaxis": { | ||
2383 | 2113 | "align": false, | ||
2384 | 2114 | "alignLevel": null | ||
2385 | 2115 | } | ||
2386 | 2116 | }, | ||
2387 | 2117 | { | ||
2388 | 2118 | "aliasColors": {}, | ||
2389 | 2119 | "bars": false, | ||
2390 | 2120 | "dashLength": 10, | ||
2391 | 2121 | "dashes": false, | ||
2392 | 2122 | "datasource": "prometheus", | ||
2393 | 2123 | "fieldConfig": { | ||
2394 | 2124 | "defaults": { | ||
2395 | 2125 | "custom": {}, | ||
2396 | 2126 | "links": [] | ||
2397 | 2127 | }, | ||
2398 | 2128 | "overrides": [] | ||
2399 | 2129 | }, | ||
2400 | 2130 | "fill": 1, | ||
2401 | 2131 | "fillGradient": 0, | ||
2402 | 2132 | "gridPos": { | ||
2403 | 2133 | "h": 8, | ||
2404 | 2134 | "w": 12, | ||
2405 | 2135 | "x": 12, | ||
2406 | 2136 | "y": 98 | ||
2407 | 2137 | }, | ||
2408 | 2138 | "hiddenSeries": false, | ||
2409 | 2139 | "id": 356, | ||
2410 | 2140 | "legend": { | ||
2411 | 2141 | "avg": false, | ||
2412 | 2142 | "current": false, | ||
2413 | 2143 | "max": false, | ||
2414 | 2144 | "min": false, | ||
2415 | 2145 | "show": true, | ||
2416 | 2146 | "total": false, | ||
2417 | 2147 | "values": false | ||
2418 | 2148 | }, | ||
2419 | 2149 | "lines": true, | ||
2420 | 2150 | "linewidth": 1, | ||
2421 | 2151 | "nullPointMode": "null", | ||
2422 | 2152 | "options": { | ||
2423 | 2153 | "alertThreshold": true | ||
2424 | 2154 | }, | ||
2425 | 2155 | "percentage": false, | ||
2426 | 2156 | "pluginVersion": "7.2.0", | ||
2427 | 2157 | "pointradius": 2, | ||
2428 | 2158 | "points": false, | ||
2429 | 2159 | "renderer": "flot", | ||
2430 | 2160 | "seriesOverrides": [], | ||
2431 | 2161 | "spaceLength": 10, | ||
2432 | 2162 | "stack": false, | ||
2433 | 2163 | "steppedLine": false, | ||
2434 | 2164 | "targets": [ | ||
2435 | 2165 | { | ||
2436 | 2166 | "expr": "rate(kernel_context_switches{host=~\"$host\"}[1m])", | ||
2437 | 2167 | "interval": "", | ||
2438 | 2168 | "legendFormat": "", | ||
2439 | 2169 | "refId": "A" | ||
2440 | 2170 | } | ||
2441 | 2171 | ], | ||
2442 | 2172 | "thresholds": [], | ||
2443 | 2173 | "timeFrom": null, | ||
2444 | 2174 | "timeRegions": [], | ||
2445 | 2175 | "timeShift": null, | ||
2446 | 2176 | "title": "Kernel context switches", | ||
2447 | 2177 | "tooltip": { | ||
2448 | 2178 | "shared": true, | ||
2449 | 2179 | "sort": 0, | ||
2450 | 2180 | "value_type": "individual" | ||
2451 | 2181 | }, | ||
2452 | 2182 | "type": "graph", | ||
2453 | 2183 | "xaxis": { | ||
2454 | 2184 | "buckets": null, | ||
2455 | 2185 | "mode": "time", | ||
2456 | 2186 | "name": null, | ||
2457 | 2187 | "show": true, | ||
2458 | 2188 | "values": [] | ||
2459 | 2189 | }, | ||
2460 | 2190 | "yaxes": [ | ||
2461 | 2191 | { | ||
2462 | 2192 | "format": "short", | ||
2463 | 2193 | "label": null, | ||
2464 | 2194 | "logBase": 1, | ||
2465 | 2195 | "max": null, | ||
2466 | 2196 | "min": null, | ||
2467 | 2197 | "show": true | ||
2468 | 2198 | }, | ||
2469 | 2199 | { | ||
2470 | 2200 | "format": "short", | ||
2471 | 2201 | "label": null, | ||
2472 | 2202 | "logBase": 1, | ||
2473 | 2203 | "max": null, | ||
2474 | 2204 | "min": null, | ||
2475 | 2205 | "show": true | ||
2476 | 2206 | } | ||
2477 | 2207 | ], | ||
2478 | 2208 | "yaxis": { | ||
2479 | 2209 | "align": false, | ||
2480 | 2210 | "alignLevel": null | ||
2481 | 2211 | } | ||
2482 | 2212 | } | ||
2483 | 2213 | ], | ||
2484 | 2214 | "refresh": false, | ||
2485 | 2215 | "schemaVersion": 26, | ||
2486 | 2216 | "style": "dark", | ||
2487 | 2217 | "tags": [ | ||
2488 | 2218 | "telegraf" | ||
2489 | 2219 | ], | ||
2490 | 2220 | "templating": { | ||
2491 | 2221 | "list": [ | ||
2492 | 2222 | { | ||
2493 | 2223 | "allValue": ".*", | ||
2494 | 2224 | "current": { | ||
2495 | 2225 | "selected": false, | ||
2496 | 2226 | "text": "All", | ||
2497 | 2227 | "value": "$__all" | ||
2498 | 2228 | }, | ||
2499 | 2229 | "datasource": "prometheus", | ||
2500 | 2230 | "definition": "", | ||
2501 | 2231 | "hide": 0, | ||
2502 | 2232 | "includeAll": true, | ||
2503 | 2233 | "label": "host", | ||
2504 | 2234 | "multi": true, | ||
2505 | 2235 | "name": "host", | ||
2506 | 2236 | "options": [], | ||
2507 | 2237 | "query": "", | ||
2508 | 2238 | "refresh": 1, | ||
2509 | 2239 | "regex": ".*host=\"([^\"]+)\".*$", | ||
2510 | 2240 | "skipUrlSync": false, | ||
2511 | 2241 | "sort": 1, | ||
2512 | 2242 | "tagValuesQuery": "", | ||
2513 | 2243 | "tags": [], | ||
2514 | 2244 | "tagsQuery": "", | ||
2515 | 2245 | "type": "query", | ||
2516 | 2246 | "useTags": false | ||
2517 | 2247 | } | ||
2518 | 2248 | ] | ||
2519 | 2249 | }, | ||
2520 | 2250 | "time": { | ||
2521 | 2251 | "from": "now-24h", | ||
2522 | 2252 | "to": "now" | ||
2523 | 2253 | }, | ||
2524 | 2254 | "timepicker": { | ||
2525 | 2255 | "refresh_intervals": [ | ||
2526 | 2256 | "15s", | ||
2527 | 2257 | "30s", | ||
2528 | 2258 | "1m", | ||
2529 | 2259 | "5m", | ||
2530 | 2260 | "15m", | ||
2531 | 2261 | "30m", | ||
2532 | 2262 | "1h", | ||
2533 | 2263 | "2h", | ||
2534 | 2264 | "1d" | ||
2535 | 2265 | ], | ||
2536 | 2266 | "time_options": [ | ||
2537 | 2267 | "5m", | ||
2538 | 2268 | "15m", | ||
2539 | 2269 | "1h", | ||
2540 | 2270 | "6h", | ||
2541 | 2271 | "12h", | ||
2542 | 2272 | "24h", | ||
2543 | 2273 | "2d", | ||
2544 | 2274 | "7d", | ||
2545 | 2275 | "30d" | ||
2546 | 2276 | ] | ||
2547 | 2277 | }, | ||
2548 | 2278 | "timezone": "utc", | ||
2549 | 2279 | "title": "System stats per host", | ||
2550 | 2280 | "uid": "000000044", | ||
2551 | 2281 | "version": 1 | ||
2552 | 2282 | } | ||
2553 | diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml | |||
2554 | 0 | new file mode 100644 | 2283 | new file mode 100644 |
2555 | index 0000000..206ed81 | |||
2556 | --- /dev/null | |||
2557 | +++ b/examples/docker-compose.yml | |||
2558 | @@ -0,0 +1,11 @@ | |||
2559 | 1 | version: '2' | ||
2560 | 2 | |||
2561 | 3 | services: | ||
2562 | 4 | grafana: | ||
2563 | 5 | image: squeakywheel/grafana:edge | ||
2564 | 6 | ports: | ||
2565 | 7 | - 3000:3000 | ||
2566 | 8 | volumes: | ||
2567 | 9 | - ./config/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml | ||
2568 | 10 | - ./config/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml | ||
2569 | 11 | - ./config/system-stats-dashboard.json:/etc/grafana/provisioning/dashboards/system-stats-dashboard.json | ||
2570 | diff --git a/examples/grafana-deployment.yml b/examples/grafana-deployment.yml | |||
2571 | 0 | new file mode 100644 | 12 | new file mode 100644 |
2572 | index 0000000..58f7097 | |||
2573 | --- /dev/null | |||
2574 | +++ b/examples/grafana-deployment.yml | |||
2575 | @@ -0,0 +1,58 @@ | |||
2576 | 1 | --- | ||
2577 | 2 | apiVersion: apps/v1 | ||
2578 | 3 | kind: Deployment | ||
2579 | 4 | metadata: | ||
2580 | 5 | name: grafana-deployment | ||
2581 | 6 | spec: | ||
2582 | 7 | replicas: 1 | ||
2583 | 8 | selector: | ||
2584 | 9 | matchLabels: | ||
2585 | 10 | app: grafana | ||
2586 | 11 | template: | ||
2587 | 12 | metadata: | ||
2588 | 13 | labels: | ||
2589 | 14 | app: grafana | ||
2590 | 15 | spec: | ||
2591 | 16 | containers: | ||
2592 | 17 | - name: grafana | ||
2593 | 18 | image: squeakywheel/grafana:edge | ||
2594 | 19 | volumeMounts: | ||
2595 | 20 | - name: grafana-config-volume | ||
2596 | 21 | mountPath: /etc/grafana/provisioning/datasources/datasource.yml | ||
2597 | 22 | subPath: datasource.yml | ||
2598 | 23 | - name: grafana-config-volume | ||
2599 | 24 | mountPath: /etc/grafana/provisioning/dashboards/dashboard.yml | ||
2600 | 25 | subPath: dashboard.yml | ||
2601 | 26 | - name: grafana-config-volume | ||
2602 | 27 | mountPath: /etc/grafana/provisioning/dashboards/system-stats-dashboard.json | ||
2603 | 28 | subPath: system-stats-dashboard.json | ||
2604 | 29 | ports: | ||
2605 | 30 | - containerPort: 3000 | ||
2606 | 31 | name: grafana | ||
2607 | 32 | protocol: TCP | ||
2608 | 33 | volumes: | ||
2609 | 34 | - name: grafana-config-volume | ||
2610 | 35 | configMap: | ||
2611 | 36 | name: grafana-config | ||
2612 | 37 | items: | ||
2613 | 38 | - key: grafana-datasource | ||
2614 | 39 | path: datasource.yml | ||
2615 | 40 | - key: grafana-dashboard-definition | ||
2616 | 41 | path: dashboard.yml | ||
2617 | 42 | - key: grafana-dashboard | ||
2618 | 43 | path: system-stats-dashboard.json | ||
2619 | 44 | --- | ||
2620 | 45 | apiVersion: v1 | ||
2621 | 46 | kind: Service | ||
2622 | 47 | metadata: | ||
2623 | 48 | name: grafana-service | ||
2624 | 49 | spec: | ||
2625 | 50 | type: NodePort | ||
2626 | 51 | selector: | ||
2627 | 52 | app: grafana | ||
2628 | 53 | ports: | ||
2629 | 54 | - protocol: TCP | ||
2630 | 55 | port: 3000 | ||
2631 | 56 | targetPort: 3000 | ||
2632 | 57 | nodePort: 30000 | ||
2633 | 58 | name: grafana |
Thanks for the MP, Lucas. I've found a few nits and small issues that need fixing. Feel free to approve & push it once you address them.