Add script for loading prometheus snapshots, improve grafana
[dcaegen2/collectors/hv-ves.git] / tools / performance / cloud / grafana / dashboards / latencies.json
1 {
2   "annotations": {
3     "list": [
4       {
5         "builtIn": 1,
6         "datasource": "-- Grafana --",
7         "enable": true,
8         "hide": true,
9         "iconColor": "rgba(0, 211, 255, 1)",
10         "name": "Annotations & Alerts",
11         "type": "dashboard"
12       }
13     ]
14   },
15   "editable": true,
16   "gnetId": null,
17   "graphTooltip": 0,
18   "id": 6,
19   "links": [],
20   "panels": [
21     {
22       "aliasColors": {},
23       "bars": false,
24       "dashLength": 10,
25       "dashes": false,
26       "datasource": null,
27       "fill": 0,
28       "fillGradient": 0,
29       "gridPos": {
30         "h": 11,
31         "w": 12,
32         "x": 0,
33         "y": 0
34       },
35       "hiddenSeries": false,
36       "id": 2,
37       "legend": {
38         "avg": false,
39         "current": false,
40         "hideEmpty": true,
41         "hideZero": true,
42         "max": false,
43         "min": false,
44         "show": true,
45         "total": false,
46         "values": false
47       },
48       "lines": true,
49       "linewidth": 1,
50       "nullPointMode": "null",
51       "options": {
52         "dataLinks": []
53       },
54       "percentage": false,
55       "pointradius": 2,
56       "points": false,
57       "renderer": "flot",
58       "seriesOverrides": [],
59       "spaceLength": 10,
60       "stack": false,
61       "steppedLine": false,
62       "targets": [
63         {
64           "expr": "rate(hvves_messages_latency_seconds_sum[1h])/rate(hvves_messages_latency_seconds_count[1h]) - rate(hvves_messages_processing_time_seconds_sum[1h])/rate(hvves_messages_processing_time_seconds_count[1h])",
65           "interval": "",
66           "legendFormat": "average",
67           "refId": "A"
68         }
69       ],
70       "thresholds": [],
71       "timeFrom": "20m",
72       "timeRegions": [],
73       "timeShift": null,
74       "title": "Producer to HV-VES input latency",
75       "tooltip": {
76         "shared": true,
77         "sort": 0,
78         "value_type": "individual"
79       },
80       "type": "graph",
81       "xaxis": {
82         "buckets": null,
83         "mode": "time",
84         "name": null,
85         "show": true,
86         "values": []
87       },
88       "yaxes": [
89         {
90           "format": "s",
91           "label": null,
92           "logBase": 1,
93           "max": null,
94           "min": "0",
95           "show": true
96         },
97         {
98           "format": "short",
99           "label": null,
100           "logBase": 1,
101           "max": null,
102           "min": null,
103           "show": true
104         }
105       ],
106       "yaxis": {
107         "align": false,
108         "alignLevel": null
109       }
110     },
111     {
112       "aliasColors": {},
113       "bars": false,
114       "dashLength": 10,
115       "dashes": false,
116       "datasource": null,
117       "fill": 0,
118       "fillGradient": 0,
119       "gridPos": {
120         "h": 11,
121         "w": 12,
122         "x": 12,
123         "y": 0
124       },
125       "hiddenSeries": false,
126       "id": 7,
127       "legend": {
128         "avg": false,
129         "current": false,
130         "hideEmpty": true,
131         "hideZero": true,
132         "max": false,
133         "min": false,
134         "show": true,
135         "total": false,
136         "values": false
137       },
138       "lines": true,
139       "linewidth": 1,
140       "nullPointMode": "null",
141       "options": {
142         "dataLinks": []
143       },
144       "percentage": false,
145       "pointradius": 2,
146       "points": false,
147       "renderer": "flot",
148       "seriesOverrides": [],
149       "spaceLength": 10,
150       "stack": false,
151       "steppedLine": false,
152       "targets": [
153         {
154           "expr": "rate(hvves_messages_latency_seconds_sum[1h])/rate(hvves_messages_latency_seconds_count[1h]) - rate(hvves_messages_processing_time_seconds_sum[1h])/rate(hvves_messages_processing_time_seconds_count[1h]) + rate(hvves_messages_processing_time_without_routing_seconds_sum[1h])/rate(hvves_messages_processing_time_without_routing_seconds_count[1h])",
155           "interval": "",
156           "legendFormat": "average",
157           "refId": "A"
158         }
159       ],
160       "thresholds": [],
161       "timeFrom": "20m",
162       "timeRegions": [],
163       "timeShift": null,
164       "title": "Producer to HV-VES output (without sending to Kafka) latency",
165       "tooltip": {
166         "shared": true,
167         "sort": 0,
168         "value_type": "individual"
169       },
170       "type": "graph",
171       "xaxis": {
172         "buckets": null,
173         "mode": "time",
174         "name": null,
175         "show": true,
176         "values": []
177       },
178       "yaxes": [
179         {
180           "format": "s",
181           "label": null,
182           "logBase": 1,
183           "max": null,
184           "min": "0",
185           "show": true
186         },
187         {
188           "format": "short",
189           "label": null,
190           "logBase": 1,
191           "max": null,
192           "min": null,
193           "show": true
194         }
195       ],
196       "yaxis": {
197         "align": false,
198         "alignLevel": null
199       }
200     },
201     {
202       "aliasColors": {},
203       "bars": false,
204       "dashLength": 10,
205       "dashes": false,
206       "datasource": null,
207       "fill": 0,
208       "fillGradient": 0,
209       "gridPos": {
210         "h": 12,
211         "w": 12,
212         "x": 0,
213         "y": 11
214       },
215       "hiddenSeries": false,
216       "id": 4,
217       "interval": "",
218       "legend": {
219         "alignAsTable": false,
220         "avg": false,
221         "current": false,
222         "hideEmpty": true,
223         "hideZero": true,
224         "max": false,
225         "min": false,
226         "show": true,
227         "total": false,
228         "values": false
229       },
230       "lines": true,
231       "linewidth": 1,
232       "links": [],
233       "nullPointMode": "null",
234       "options": {
235         "dataLinks": []
236       },
237       "percentage": false,
238       "pointradius": 5,
239       "points": false,
240       "renderer": "flot",
241       "seriesOverrides": [],
242       "spaceLength": 10,
243       "stack": false,
244       "steppedLine": false,
245       "targets": [
246         {
247           "expr": "rate(hvves_messages_latency_seconds_sum[1h])/rate(hvves_messages_latency_seconds_count[1h])",
248           "format": "time_series",
249           "hide": false,
250           "instant": false,
251           "intervalFactor": 1,
252           "legendFormat": "average",
253           "refId": "A"
254         },
255         {
256           "expr": "histogram_quantile(0.90, sum( rate(hvves_messages_latency_seconds_bucket[1h]) )by(le) )",
257           "legendFormat": "90th percentile",
258           "refId": "B"
259         },
260         {
261           "expr": "histogram_quantile(0.95, sum( rate(hvves_messages_latency_seconds_bucket[1h]) )by(le) )",
262           "legendFormat": "95th percentile",
263           "refId": "C"
264         },
265         {
266           "expr": "histogram_quantile(0.99, sum( rate(hvves_messages_latency_seconds_bucket[1h]) )by(le) )",
267           "legendFormat": "99th precentile",
268           "refId": "D"
269         }
270       ],
271       "thresholds": [],
272       "timeFrom": "20m",
273       "timeRegions": [],
274       "timeShift": null,
275       "title": "Producer to HV-VES output (with sending to Kafka) latency",
276       "tooltip": {
277         "shared": true,
278         "sort": 0,
279         "value_type": "individual"
280       },
281       "type": "graph",
282       "xaxis": {
283         "buckets": null,
284         "mode": "time",
285         "name": null,
286         "show": true,
287         "values": []
288       },
289       "yaxes": [
290         {
291           "decimals": 2,
292           "format": "s",
293           "label": null,
294           "logBase": 1,
295           "max": null,
296           "min": "0",
297           "show": true
298         },
299         {
300           "format": "short",
301           "label": null,
302           "logBase": 1,
303           "max": null,
304           "min": null,
305           "show": true
306         }
307       ],
308       "yaxis": {
309         "align": false,
310         "alignLevel": null
311       }
312     },
313     {
314       "aliasColors": {},
315       "bars": false,
316       "dashLength": 10,
317       "dashes": false,
318       "datasource": null,
319       "fill": 0,
320       "fillGradient": 0,
321       "gridPos": {
322         "h": 12,
323         "w": 12,
324         "x": 12,
325         "y": 11
326       },
327       "hiddenSeries": false,
328       "id": 6,
329       "legend": {
330         "avg": false,
331         "current": false,
332         "hideEmpty": true,
333         "hideZero": true,
334         "max": false,
335         "min": false,
336         "show": true,
337         "total": false,
338         "values": false
339       },
340       "lines": true,
341       "linewidth": 1,
342       "nullPointMode": "null",
343       "options": {
344         "dataLinks": []
345       },
346       "percentage": false,
347       "pointradius": 2,
348       "points": false,
349       "renderer": "flot",
350       "seriesOverrides": [],
351       "spaceLength": 10,
352       "stack": false,
353       "steppedLine": false,
354       "targets": [
355         {
356           "expr": "rate(hvves_messages_latency_seconds_sum[1h])/rate(hvves_messages_latency_seconds_count[1h]) - rate(hvves_messages_processing_time_seconds_sum[1h])/rate(hvves_messages_processing_time_seconds_count[1h])",
357           "interval": "",
358           "legendFormat": "Producer to HV-VES input",
359           "refId": "A"
360         },
361         {
362           "expr": "rate(hvves_messages_latency_seconds_sum[1h])/rate(hvves_messages_latency_seconds_count[1h]) - rate(hvves_messages_processing_time_seconds_sum[1h])/rate(hvves_messages_processing_time_seconds_count[1h]) + rate(hvves_messages_processing_time_without_routing_seconds_sum[1h])/rate(hvves_messages_processing_time_without_routing_seconds_count[1h])",
363           "interval": "",
364           "legendFormat": "Producer to HV-VES output (without sending to Kafka)",
365           "refId": "B"
366         },
367         {
368           "expr": "rate(hvves_messages_latency_seconds_sum[1h])/rate(hvves_messages_latency_seconds_count[1h])",
369           "interval": "",
370           "legendFormat": "Producer to HV-VES output (with sending to Kafka)",
371           "refId": "C"
372         }
373       ],
374       "thresholds": [],
375       "timeFrom": "20m",
376       "timeRegions": [],
377       "timeShift": null,
378       "title": "Latencies",
379       "tooltip": {
380         "shared": true,
381         "sort": 0,
382         "value_type": "individual"
383       },
384       "type": "graph",
385       "xaxis": {
386         "buckets": null,
387         "mode": "time",
388         "name": null,
389         "show": true,
390         "values": []
391       },
392       "yaxes": [
393         {
394           "format": "s",
395           "label": null,
396           "logBase": 1,
397           "max": null,
398           "min": "0",
399           "show": true
400         },
401         {
402           "format": "short",
403           "label": null,
404           "logBase": 1,
405           "max": null,
406           "min": null,
407           "show": true
408         }
409       ],
410       "yaxis": {
411         "align": false,
412         "alignLevel": null
413       }
414     }
415   ],
416   "refresh": "5s",
417   "schemaVersion": 22,
418   "style": "dark",
419   "tags": [],
420   "templating": {
421     "list": []
422   },
423   "time": {
424     "from": "now-1h",
425     "to": "now"
426   },
427   "timepicker": {
428     "refresh_intervals": [
429       "5s",
430       "10s",
431       "30s",
432       "1m",
433       "5m",
434       "15m",
435       "30m",
436       "1h",
437       "2h",
438       "1d"
439     ]
440   },
441   "timezone": "",
442   "title": "Latencies",
443   "uid": "k22_V1qZk",
444   "variables": {
445     "list": []
446   },
447   "version": 0
448 }