Adding OSM Monitoring dashboards to Grafana charm
[osm/devops.git] / installers / charm / grafana / files / mongodb_exporter_dashboard.yaml
1 # Copyright 2021 Canonical Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14 #
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: legal@canonical.com
17 #
18 # To get in touch with the maintainers, please contact:
19 # osm-charmers@lists.launchpad.net
20 ##
21
22 ---
23 annotations:
24   list:
25     - builtIn: 1
26       datasource: '-- Grafana --'
27       enable: true
28       hide: true
29       iconColor: 'rgba(0, 211, 255, 1)'
30       name: Annotations & Alerts
31       type: dashboard
32 description: MongoDB Prometheus Exporter Dashboard.
33 editable: true
34 gnetId: 2583
35 graphTooltip: 1
36 id: 9
37 iteration: 1577555358996
38 links: []
39 panels:
40   - collapsed: false
41     gridPos:
42       h: 1
43       w: 24
44       x: 0
45       'y': 0
46     id: 22
47     panels: []
48     repeat: env
49     title: Health
50     type: row
51   - cacheTimeout: null
52     colorBackground: false
53     colorValue: true
54     colors:
55       - 'rgba(245, 54, 54, 0.9)'
56       - 'rgba(237, 129, 40, 0.89)'
57       - 'rgba(50, 172, 45, 0.97)'
58     datasource: Prometheus
59     decimals: null
60     format: s
61     gauge:
62       maxValue: 100
63       minValue: 0
64       show: false
65       thresholdLabels: false
66       thresholdMarkers: true
67     gridPos:
68       h: 4
69       w: 12
70       x: 0
71       'y': 1
72     id: 10
73     interval: null
74     links: []
75     mappingType: 1
76     mappingTypes:
77       - name: value to text
78         value: 1
79       - name: range to text
80         value: 2
81     maxDataPoints: 100
82     nullPointMode: connected
83     nullText: null
84     options: {}
85     postfix: ''
86     postfixFontSize: 50%
87     prefix: ''
88     prefixFontSize: 50%
89     rangeMaps:
90       - from: 'null'
91         text: N/A
92         to: 'null'
93     sparkline:
94       fillColor: 'rgba(31, 118, 189, 0.18)'
95       full: false
96       lineColor: 'rgb(31, 120, 193)'
97       show: false
98     tableColumn: ''
99     targets:
100       - expr: 'mongodb_instance_uptime_seconds{instance=~"$instance"}'
101         format: time_series
102         intervalFactor: 2
103         legendFormat: ''
104         refId: A
105         step: 1800
106     thresholds: '0,360'
107     title: Uptime
108     type: singlestat
109     valueFontSize: 80%
110     valueMaps:
111       - op: '='
112         text: N/A
113         value: 'null'
114     valueName: current
115   - cacheTimeout: null
116     colorBackground: false
117     colorValue: false
118     colors:
119       - 'rgba(245, 54, 54, 0.9)'
120       - 'rgba(237, 129, 40, 0.89)'
121       - 'rgba(50, 172, 45, 0.97)'
122     datasource: Prometheus
123     format: none
124     gauge:
125       maxValue: 100
126       minValue: 0
127       show: false
128       thresholdLabels: false
129       thresholdMarkers: true
130     gridPos:
131       h: 4
132       w: 12
133       x: 12
134       'y': 1
135     id: 1
136     interval: null
137     links: []
138     mappingType: 1
139     mappingTypes:
140       - name: value to text
141         value: 1
142       - name: range to text
143         value: 2
144     maxDataPoints: 100
145     nullPointMode: connected
146     nullText: null
147     options: {}
148     postfix: ''
149     postfixFontSize: 50%
150     prefix: ''
151     prefixFontSize: 50%
152     rangeMaps:
153       - from: 'null'
154         text: N/A
155         to: 'null'
156     sparkline:
157       fillColor: 'rgba(31, 118, 189, 0.18)'
158       full: true
159       lineColor: 'rgb(31, 120, 193)'
160       show: true
161     tableColumn: ''
162     targets:
163       - expr: 'mongodb_connections{instance=~"$instance",state="current"}'
164         format: time_series
165         intervalFactor: 2
166         legendFormat: ''
167         metric: mongodb_connections
168         refId: A
169         step: 1800
170     thresholds: ''
171     title: Open Connections
172     type: singlestat
173     valueFontSize: 80%
174     valueMaps:
175       - op: '='
176         text: N/A
177         value: 'null'
178     valueName: avg
179   - collapsed: false
180     gridPos:
181       h: 1
182       w: 24
183       x: 0
184       'y': 5
185     id: 20
186     panels: []
187     repeat: env
188     title: Operations
189     type: row
190   - aliasColors: {}
191     bars: false
192     dashLength: 10
193     dashes: false
194     datasource: Prometheus
195     fill: 1
196     fillGradient: 0
197     gridPos:
198       h: 6
199       w: 10
200       x: 0
201       'y': 6
202     id: 7
203     legend:
204       avg: false
205       current: false
206       max: false
207       min: false
208       show: true
209       total: false
210       values: false
211     lines: true
212     linewidth: 1
213     links: []
214     nullPointMode: 'null'
215     options:
216       dataLinks: []
217     percentage: false
218     pointradius: 5
219     points: false
220     renderer: flot
221     seriesOverrides: []
222     spaceLength: 10
223     stack: false
224     steppedLine: false
225     targets:
226       - expr: >-
227           'rate(mongodb_op_counters_total{instance=~"$instance"}[$interval])'
228         format: time_series
229         interval: ''
230         intervalFactor: 2
231         legendFormat: '{{type}}'
232         refId: A
233         step: 240
234     thresholds: []
235     timeFrom: null
236     timeRegions: []
237     timeShift: null
238     title: Query Operations
239     tooltip:
240       shared: true
241       sort: 0
242       value_type: individual
243     type: graph
244     xaxis:
245       buckets: null
246       mode: time
247       name: null
248       show: true
249       values: []
250     yaxes:
251       - format: ops
252         label: null
253         logBase: 1
254         max: null
255         min: null
256         show: true
257       - format: short
258         label: null
259         logBase: 1
260         max: null
261         min: null
262         show: true
263     yaxis:
264       align: false
265       alignLevel: null
266   - aliasColors: {}
267     bars: false
268     dashLength: 10
269     dashes: false
270     datasource: Prometheus
271     fill: 1
272     fillGradient: 0
273     gridPos:
274       h: 6
275       w: 8
276       x: 10
277       'y': 6
278     id: 9
279     legend:
280       avg: false
281       current: false
282       max: false
283       min: false
284       show: true
285       total: false
286       values: false
287     lines: true
288     linewidth: 1
289     links: []
290     nullPointMode: 'null'
291     options:
292       dataLinks: []
293     percentage: false
294     pointradius: 5
295     points: false
296     renderer: flot
297     seriesOverrides:
298       - alias: returned
299         yaxis: 1
300     spaceLength: 10
301     stack: false
302     steppedLine: false
303     targets:
304       - expr: >-
305           rate(mongodb_mongod_metrics_document_total{instance=~"$instance"}[$interval])
306         format: time_series
307         interval: ''
308         intervalFactor: 2
309         legendFormat: '{{state}}'
310         refId: A
311         step: 240
312     thresholds: []
313     timeFrom: null
314     timeRegions: []
315     timeShift: null
316     title: Document Operations
317     tooltip:
318       shared: true
319       sort: 0
320       value_type: individual
321     type: graph
322     xaxis:
323       buckets: null
324       mode: time
325       name: null
326       show: true
327       values: []
328     yaxes:
329       - format: short
330         label: null
331         logBase: 1
332         max: null
333         min: null
334         show: true
335       - format: short
336         label: null
337         logBase: 1
338         max: null
339         min: null
340         show: true
341     yaxis:
342       align: false
343       alignLevel: null
344   - aliasColors: {}
345     bars: false
346     dashLength: 10
347     dashes: false
348     datasource: Prometheus
349     fill: 1
350     fillGradient: 0
351     gridPos:
352       h: 6
353       w: 6
354       x: 18
355       'y': 6
356     id: 8
357     legend:
358       avg: false
359       current: false
360       max: false
361       min: false
362       show: true
363       total: false
364       values: false
365     lines: true
366     linewidth: 1
367     links: []
368     nullPointMode: 'null'
369     options:
370       dataLinks: []
371     percentage: false
372     pointradius: 5
373     points: false
374     renderer: flot
375     seriesOverrides: []
376     spaceLength: 10
377     stack: false
378     steppedLine: false
379     targets:
380       - expr: >-
381           rate(mongodb_mongod_metrics_query_executor_total{instance=~"$instance"}[$interval])
382         format: time_series
383         interval: ''
384         intervalFactor: 2
385         legendFormat: '{{state}}'
386         refId: A
387         step: 600
388     thresholds: []
389     timeFrom: null
390     timeRegions: []
391     timeShift: null
392     title: Document Query Executor
393     tooltip:
394       shared: true
395       sort: 0
396       value_type: individual
397     type: graph
398     xaxis:
399       buckets: null
400       mode: time
401       name: null
402       show: true
403       values: []
404     yaxes:
405       - format: short
406         label: null
407         logBase: 1
408         max: null
409         min: null
410         show: true
411       - format: short
412         label: null
413         logBase: 1
414         max: null
415         min: null
416         show: true
417     yaxis:
418       align: false
419       alignLevel: null
420   - collapsed: false
421     gridPos:
422       h: 1
423       w: 24
424       x: 0
425       'y': 12
426     id: 23
427     panels: []
428     repeat: null
429     title: Resources
430     type: row
431   - aliasColors: {}
432     bars: false
433     dashLength: 10
434     dashes: false
435     datasource: Prometheus
436     fill: 1
437     fillGradient: 0
438     gridPos:
439       h: 6
440       w: 12
441       x: 0
442       'y': 13
443     id: 4
444     legend:
445       alignAsTable: false
446       avg: false
447       current: true
448       hideEmpty: false
449       hideZero: false
450       max: false
451       min: false
452       rightSide: false
453       show: true
454       total: false
455       values: true
456     lines: true
457     linewidth: 1
458     links: []
459     nullPointMode: 'null'
460     options:
461       dataLinks: []
462     percentage: false
463     pointradius: 5
464     points: false
465     renderer: flot
466     seriesOverrides: []
467     spaceLength: 10
468     stack: false
469     steppedLine: false
470     targets:
471       - expr: 'mongodb_memory{instance=~"$instance",type=~"resident|virtual"}'
472         format: time_series
473         interval: ''
474         intervalFactor: 2
475         legendFormat: '{{type}}'
476         refId: A
477         step: 240
478     thresholds: []
479     timeFrom: null
480     timeRegions: []
481     timeShift: null
482     title: Memory
483     tooltip:
484       shared: false
485       sort: 0
486       value_type: individual
487     type: graph
488     xaxis:
489       buckets: null
490       mode: time
491       name: null
492       show: true
493       values:
494         - total
495     yaxes:
496       - format: decmbytes
497         label: MB
498         logBase: 1
499         max: null
500         min: null
501         show: true
502       - format: short
503         label: null
504         logBase: 1
505         max: null
506         min: null
507         show: true
508     yaxis:
509       align: false
510       alignLevel: null
511   - aliasColors: {}
512     bars: false
513     dashLength: 10
514     dashes: false
515     datasource: Prometheus
516     fill: 1
517     fillGradient: 0
518     gridPos:
519       h: 6
520       w: 12
521       x: 12
522       'y': 13
523     id: 5
524     legend:
525       avg: false
526       current: false
527       max: false
528       min: false
529       show: true
530       total: false
531       values: false
532     lines: true
533     linewidth: 1
534     links: []
535     nullPointMode: 'null'
536     options:
537       dataLinks: []
538     percentage: false
539     pointradius: 5
540     points: false
541     renderer: flot
542     seriesOverrides: []
543     spaceLength: 10
544     stack: false
545     steppedLine: false
546     targets:
547       - expr: >-
548           'rate(mongodb_network_bytes_total{instance=~"$instance"}[$interval])'
549         format: time_series
550         interval: ''
551         intervalFactor: 2
552         legendFormat: '{{state}}'
553         metric: mongodb_metrics_operation_total
554         refId: A
555         step: 240
556     thresholds: []
557     timeFrom: null
558     timeRegions: []
559     timeShift: null
560     title: Network I/O
561     tooltip:
562       shared: true
563       sort: 0
564       value_type: individual
565     type: graph
566     xaxis:
567       buckets: null
568       mode: time
569       name: null
570       show: true
571       values: []
572     yaxes:
573       - format: decbytes
574         label: null
575         logBase: 1
576         max: null
577         min: null
578         show: true
579       - format: short
580         label: null
581         logBase: 1
582         max: null
583         min: null
584         show: true
585     yaxis:
586       align: false
587       alignLevel: null
588 refresh: 5s
589 schemaVersion: 19
590 style: dark
591 tags: []
592 templating:
593   list:
594     - allValue: null
595       current:
596         text: All
597         value: $__all
598       datasource: Prometheus
599       definition: ''
600       hide: 0
601       includeAll: true
602       label: instance
603       multi: true
604       name: instance
605       options: []
606       query: 'label_values(mongodb_connections, instance)'
607       refresh: 1
608       regex: ''
609       skipUrlSync: false
610       sort: 1
611       tagValuesQuery: /.*-(.*?)-.*/
612       tags: []
613       tagsQuery: 'label_values(mongodb_connections, instance)'
614       type: query
615       useTags: false
616     - auto: true
617       auto_count: 30
618       auto_min: 10s
619       current:
620         text: auto
621         value: $__auto_interval_interval
622       hide: 0
623       label: null
624       name: interval
625       options:
626         - selected: true
627           text: auto
628           value: $__auto_interval_interval
629         - selected: false
630           text: 1m
631           value: 1m
632         - selected: false
633           text: 10m
634           value: 10m
635         - selected: false
636           text: 30m
637           value: 30m
638         - selected: false
639           text: 1h
640           value: 1h
641         - selected: false
642           text: 6h
643           value: 6h
644         - selected: false
645           text: 12h
646           value: 12h
647         - selected: false
648           text: 1d
649           value: 1d
650         - selected: false
651           text: 7d
652           value: 7d
653         - selected: false
654           text: 14d
655           value: 14d
656         - selected: false
657           text: 30d
658           value: 30d
659       query: '1m,10m,30m,1h,6h,12h,1d,7d,14d,30d'
660       refresh: 2
661       skipUrlSync: false
662       type: interval
663 time:
664   from: now/d
665   to: now
666 timepicker:
667   refresh_intervals:
668     - 5s
669     - 10s
670     - 30s
671     - 1m
672     - 5m
673     - 15m
674     - 30m
675     - 1h
676     - 2h
677     - 1d
678   time_options:
679     - 5m
680     - 15m
681     - 1h
682     - 6h
683     - 12h
684     - 24h
685     - 2d
686     - 7d
687     - 30d
688 timezone: browser
689 title: MongoDB
690 uid: HEK4NbtZk
691 version: 2