Infra: Switch csit-shim to fdiotools
[csit.git] / fdio.infra.terraform / 1n_nmd / grafana / conf / blackbox_exporter_icmp.json
1 {
2   "__inputs": [
3     {
4       "name": "DS_PROMETHEUS",
5       "label": "localhost",
6       "description": "",
7       "type": "datasource",
8       "pluginId": "prometheus",
9       "pluginName": "Prometheus"
10     }
11   ],
12   "__requires": [
13     {
14       "type": "grafana",
15       "id": "grafana",
16       "name": "Grafana",
17       "version": "6.5.2"
18     },
19     {
20       "type": "panel",
21       "id": "graph",
22       "name": "Graph",
23       "version": ""
24     },
25     {
26       "type": "panel",
27       "id": "heatmap",
28       "name": "Heatmap",
29       "version": ""
30     },
31     {
32       "type": "datasource",
33       "id": "prometheus",
34       "name": "Prometheus",
35       "version": "1.0.0"
36     }
37   ],
38   "annotations": {
39     "list": [
40       {
41         "builtIn": 1,
42         "datasource": "-- Grafana --",
43         "enable": true,
44         "hide": true,
45         "iconColor": "rgba(0, 211, 255, 1)",
46         "name": "Annotations & Alerts",
47         "type": "dashboard"
48       }
49     ]
50   },
51   "editable": true,
52   "gnetId": 12412,
53   "graphTooltip": 0,
54   "id": null,
55   "iteration": 1591284149575,
56   "links": [],
57   "panels": [
58     {
59       "cards": {
60         "cardPadding": null,
61         "cardRound": null
62       },
63       "color": {
64         "cardColor": "#b4ff00",
65         "colorScale": "sqrt",
66         "colorScheme": "interpolateRdYlGn",
67         "exponent": 0.5,
68         "mode": "spectrum"
69       },
70       "dataFormat": "tsbuckets",
71       "datasource": "${DS_PROMETHEUS}",
72       "gridPos": {
73         "h": 8,
74         "w": 24,
75         "x": 0,
76         "y": 0
77       },
78       "heatmap": {},
79       "hideZeroBuckets": false,
80       "highlightCards": true,
81       "id": 7,
82       "legend": {
83         "show": true
84       },
85       "options": {},
86       "reverseYBuckets": true,
87       "targets": [
88         {
89           "expr": "sum(probe_icmp_duration_seconds{phase=\"rtt\"}) by (instance)",
90           "legendFormat": "{{instance}}",
91           "refId": "A"
92         }
93       ],
94       "timeFrom": null,
95       "timeShift": null,
96       "title": "ICMP RTT",
97       "tooltip": {
98         "show": true,
99         "showHistogram": true
100       },
101       "type": "heatmap",
102       "xAxis": {
103         "show": true
104       },
105       "xBucketNumber": null,
106       "xBucketSize": null,
107       "yAxis": {
108         "decimals": null,
109         "format": "s",
110         "logBase": 1,
111         "max": null,
112         "min": null,
113         "show": true,
114         "splitFactor": null
115       },
116       "yBucketBound": "middle",
117       "yBucketNumber": null,
118       "yBucketSize": null
119     },
120     {
121       "cards": {
122         "cardPadding": null,
123         "cardRound": null
124       },
125       "color": {
126         "cardColor": "#b4ff00",
127         "colorScale": "sqrt",
128         "colorScheme": "interpolateRdYlGn",
129         "exponent": 0.5,
130         "mode": "spectrum"
131       },
132       "dataFormat": "tsbuckets",
133       "datasource": "${DS_PROMETHEUS}",
134       "gridPos": {
135         "h": 8,
136         "w": 24,
137         "x": 0,
138         "y": 8
139       },
140       "heatmap": {},
141       "hideZeroBuckets": false,
142       "highlightCards": true,
143       "id": 8,
144       "legend": {
145         "show": true
146       },
147       "options": {},
148       "reverseYBuckets": true,
149       "targets": [
150         {
151           "expr": "1-avg_over_time(probe_success{instance=~\"$instance\"}[$__interval])",
152           "format": "time_series",
153           "hide": false,
154           "legendFormat": "{{instance}}",
155           "refId": "A"
156         }
157       ],
158       "timeFrom": null,
159       "timeShift": null,
160       "title": "ICMP packet loss",
161       "tooltip": {
162         "show": true,
163         "showHistogram": true
164       },
165       "type": "heatmap",
166       "xAxis": {
167         "show": true
168       },
169       "xBucketNumber": null,
170       "xBucketSize": null,
171       "yAxis": {
172         "decimals": null,
173         "format": "percentunit",
174         "logBase": 1,
175         "max": null,
176         "min": null,
177         "show": true,
178         "splitFactor": null
179       },
180       "yBucketBound": "middle",
181       "yBucketNumber": null,
182       "yBucketSize": null
183     },
184     {
185       "aliasColors": {},
186       "bars": false,
187       "dashLength": 10,
188       "dashes": false,
189       "datasource": "${DS_PROMETHEUS}",
190       "decimals": null,
191       "description": "This uses the blackbox exporter, which does not expose packet loss, for example. It could be improved with https://github.com/SuperQ/smokeping_prober because it also keeps track of lost samples (https://github.com/SuperQ/smokeping_prober/issues/24). Unfortunately, that still won't make graphs as nice as smokeping, because each probe only keeps one sample, instead of doing multiple like smokeping does (https://github.com/SuperQ/smokeping_prober/issues/36).",
192       "fill": 0,
193       "fillGradient": 0,
194       "gridPos": {
195         "h": 7,
196         "w": 24,
197         "x": 0,
198         "y": 16
199       },
200       "hiddenSeries": false,
201       "id": 2,
202       "legend": {
203         "alignAsTable": true,
204         "avg": true,
205         "current": true,
206         "hideEmpty": false,
207         "hideZero": false,
208         "max": true,
209         "min": true,
210         "rightSide": false,
211         "show": true,
212         "total": false,
213         "values": true
214       },
215       "lines": true,
216       "linewidth": 1,
217       "maxPerRow": 2,
218       "nullPointMode": "connected",
219       "options": {
220         "dataLinks": []
221       },
222       "percentage": false,
223       "pointradius": 0.5,
224       "points": false,
225       "renderer": "flot",
226       "repeat": "instance",
227       "repeatDirection": "v",
228       "seriesOverrides": [
229         {
230           "alias": "packet loss",
231           "color": "#C4162A",
232           "lines": false,
233           "pointradius": 1,
234           "points": true,
235           "yaxis": 2
236         }
237       ],
238       "spaceLength": 10,
239       "stack": false,
240       "steppedLine": true,
241       "targets": [
242         {
243           "expr": "sum(probe_icmp_duration_seconds{phase=\"rtt\",instance=~\"$instance\"}) by (instance) > 0",
244           "instant": false,
245           "legendFormat": "RTT",
246           "refId": "A"
247         },
248         {
249           "expr": "1-avg_over_time(probe_success{instance=~\"$instance\"}[$__interval])",
250           "format": "time_series",
251           "legendFormat": "packet loss",
252           "refId": "B"
253         }
254       ],
255       "thresholds": [],
256       "timeFrom": null,
257       "timeRegions": [],
258       "timeShift": null,
259       "title": "ICMP round trip time ($instance)",
260       "tooltip": {
261         "shared": true,
262         "sort": 1,
263         "value_type": "individual"
264       },
265       "type": "graph",
266       "xaxis": {
267         "buckets": null,
268         "mode": "time",
269         "name": null,
270         "show": true,
271         "values": []
272       },
273       "yaxes": [
274         {
275           "decimals": null,
276           "format": "dtdurations",
277           "label": "RTT",
278           "logBase": 1,
279           "max": null,
280           "min": "0",
281           "show": true
282         },
283         {
284           "format": "percentunit",
285           "label": "packet loss",
286           "logBase": 1,
287           "max": "1",
288           "min": "0.0001",
289           "show": true
290         }
291       ],
292       "yaxis": {
293         "align": false,
294         "alignLevel": null
295       }
296     }
297   ],
298   "refresh": false,
299   "schemaVersion": 21,
300   "style": "dark",
301   "tags": [],
302   "templating": {
303     "list": [
304       {
305         "current": {
306           "selected": false,
307           "text": "default",
308           "value": "default"
309         },
310         "hide": 0,
311         "includeAll": false,
312         "label": "datasource",
313         "multi": false,
314         "name": "DS_PROMETHEUS",
315         "options": [],
316         "query": "prometheus",
317         "refresh": 1,
318         "regex": "",
319         "skipUrlSync": false,
320         "type": "datasource"
321       },
322       {
323         "allValue": null,
324         "current": {},
325         "datasource": "${DS_PROMETHEUS}",
326         "definition": "label_values(probe_success, instance)",
327         "hide": 0,
328         "includeAll": true,
329         "label": null,
330         "multi": true,
331         "name": "instance",
332         "options": [],
333         "query": "label_values(probe_success, instance)",
334         "refresh": 2,
335         "regex": "",
336         "skipUrlSync": false,
337         "sort": 0,
338         "tagValuesQuery": "",
339         "tags": [],
340         "tagsQuery": "",
341         "type": "query",
342         "useTags": false
343       }
344     ]
345   },
346   "time": {
347     "from": "now-4h",
348     "to": "now"
349   },
350   "timepicker": {
351     "refresh_intervals": [
352       "5s",
353       "10s",
354       "30s",
355       "1m",
356       "5m",
357       "15m",
358       "30m",
359       "1h",
360       "2h",
361       "1d"
362     ]
363   },
364   "timezone": "",
365   "title": "ICMP exporter",
366   "version": 1,
367   "description": "Graph ICMP metrics from the blackbox exporter, Smokeping-style"
368 }