1 # Copyright 2019 Minsait - Indra S.A.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 # Author: Jose Manuel Palacios (jmpalacios@minsait.com)
15 # Author: Jose Antonio Martinez (jamartinezv@minsait.com)
21 app: prometheus-mongodb-exporter-grafana
22 grafana_dashboard: "1"
24 name: osm-monitoring-prometheus-mongodb-exporter-grafana
26 k8s-sidecar-target-directory: "/tmp/dashboards/OSM Third Party Modules"
28 mongodb-exporter-dashboard.json: |-
34 "datasource": "-- Grafana --",
37 "iconColor": "rgba(0, 211, 255, 1)",
38 "name": "Annotations & Alerts",
43 "description": "MongoDB Prometheus Exporter Dashboard. \r\nWorks well with https://github.com/dcu/mongodb_exporter\r\n\r\nIf you have the node_exporter running on the mongo instance, you will also get some useful alert panels related to disk io and cpu.",
48 "iteration": 1569257185850,
62 "title": "Query Metrics for $env",
70 "datasource": "Prometheus",
92 "nullPointMode": "null",
100 "seriesOverrides": [],
103 "steppedLine": false,
106 "expr": "rate(mongodb_op_counters_total{instance=~\"$env\"}[$interval])",
107 "format": "time_series",
110 "legendFormat": "{{type}}",
119 "title": "Query Operations",
123 "value_type": "individual"
161 "datasource": "Prometheus",
183 "nullPointMode": "null",
199 "steppedLine": false,
202 "expr": "rate(mongodb_mongod_metrics_document_total{instance=~\"$env\"}[$interval])",
203 "format": "time_series",
206 "legendFormat": "{{state}}",
215 "title": "Document Operations",
219 "value_type": "individual"
257 "datasource": "Prometheus",
279 "nullPointMode": "null",
287 "seriesOverrides": [],
290 "steppedLine": false,
293 "expr": "rate(mongodb_mongod_metrics_query_executor_total{instance=~\"$env\"}[$interval])",
294 "format": "time_series",
297 "legendFormat": "{{state}}",
306 "title": "Document Query Executor",
310 "value_type": "individual"
354 "title": "Health metrics for $env",
358 "cacheTimeout": null,
359 "colorBackground": false,
362 "rgba(245, 54, 54, 0.9)",
363 "rgba(237, 129, 40, 0.89)",
364 "rgba(50, 172, 45, 0.97)"
366 "datasource": "Prometheus",
373 "thresholdLabels": false,
374 "thresholdMarkers": true
388 "name": "value to text",
392 "name": "range to text",
396 "maxDataPoints": 100,
397 "nullPointMode": "connected",
401 "postfixFontSize": "50%",
403 "prefixFontSize": "50%",
412 "fillColor": "rgba(31, 118, 189, 0.18)",
414 "lineColor": "rgb(31, 120, 193)",
420 "expr": "mongodb_instance_uptime_seconds{instance=~\"$env\"}",
421 "format": "time_series",
428 "thresholds": "0,360",
430 "type": "singlestat",
431 "valueFontSize": "80%",
439 "valueName": "current"
442 "cacheTimeout": null,
443 "colorBackground": false,
446 "rgba(245, 54, 54, 0.9)",
447 "rgba(237, 129, 40, 0.89)",
448 "rgba(50, 172, 45, 0.97)"
450 "datasource": "Prometheus",
457 "thresholdLabels": false,
458 "thresholdMarkers": true
472 "name": "value to text",
476 "name": "range to text",
480 "maxDataPoints": 100,
481 "nullPointMode": "connected",
485 "postfixFontSize": "50%",
487 "prefixFontSize": "50%",
496 "fillColor": "rgba(31, 118, 189, 0.18)",
498 "lineColor": "rgb(31, 120, 193)",
504 "expr": "mongodb_connections{instance=~\"$env\",state=\"available\"}",
505 "format": "time_series",
508 "metric": "mongodb_connections",
514 "title": "Available Connections",
515 "type": "singlestat",
516 "valueFontSize": "80%",
527 "cacheTimeout": null,
528 "colorBackground": false,
531 "rgba(245, 54, 54, 0.9)",
532 "rgba(237, 129, 40, 0.89)",
533 "rgba(50, 172, 45, 0.97)"
535 "datasource": "Prometheus",
541 "thresholdLabels": false,
542 "thresholdMarkers": true
556 "name": "value to text",
560 "name": "range to text",
564 "maxDataPoints": 100,
565 "nullPointMode": "connected",
569 "postfixFontSize": "50%",
571 "prefixFontSize": "50%",
580 "fillColor": "rgba(31, 118, 189, 0.18)",
582 "lineColor": "rgb(31, 120, 193)",
588 "expr": "mongodb_connections{instance=~\"$env\",state=\"current\"}",
589 "format": "time_series",
592 "metric": "mongodb_connections",
598 "title": "Open Connections",
599 "type": "singlestat",
600 "valueFontSize": "80%",
621 "title": "Resource Metrics",
629 "datasource": "Prometheus",
640 "alignAsTable": false,
655 "nullPointMode": "null",
663 "seriesOverrides": [],
666 "steppedLine": false,
669 "expr": "mongodb_memory{instance=~\"$env\",type=~\"resident|virtual\"}",
670 "format": "time_series",
673 "legendFormat": "{{type}}",
686 "value_type": "individual"
700 "format": "decmbytes",
726 "datasource": "Prometheus",
748 "nullPointMode": "null",
756 "seriesOverrides": [],
759 "steppedLine": false,
762 "expr": "rate(mongodb_network_bytes_total{instance=~\"$env\"}[$interval])",
763 "format": "time_series",
766 "legendFormat": "{{state}}",
767 "metric": "mongodb_metrics_operation_total",
776 "title": "Network I/O",
780 "value_type": "individual"
792 "format": "decbytes",
828 "datasource": "Prometheus",
836 "query": "label_values(mongodb_connections, instance)",
839 "skipUrlSync": false,
841 "tagValuesQuery": "/.*-(.*?)-.*/",
843 "tagsQuery": "label_values(mongodb_connections, instance)",
853 "value": "$__auto_interval_interval"
862 "value": "$__auto_interval_interval"
915 "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
917 "skipUrlSync": false,
927 "refresh_intervals": [
951 "timezone": "browser",