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/Open Source MANO"
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.",
48 "iteration": 1577555358996,
67 "colorBackground": false,
70 "rgba(245, 54, 54, 0.9)",
71 "rgba(237, 129, 40, 0.89)",
72 "rgba(50, 172, 45, 0.97)"
74 "datasource": "Prometheus",
81 "thresholdLabels": false,
82 "thresholdMarkers": true
96 "name": "value to text",
100 "name": "range to text",
104 "maxDataPoints": 100,
105 "nullPointMode": "connected",
109 "postfixFontSize": "50%",
111 "prefixFontSize": "50%",
120 "fillColor": "rgba(31, 118, 189, 0.18)",
122 "lineColor": "rgb(31, 120, 193)",
128 "expr": "mongodb_instance_uptime_seconds{instance=~\"$instance\"}",
129 "format": "time_series",
136 "thresholds": "0,360",
138 "type": "singlestat",
139 "valueFontSize": "80%",
147 "valueName": "current"
150 "cacheTimeout": null,
151 "colorBackground": false,
154 "rgba(245, 54, 54, 0.9)",
155 "rgba(237, 129, 40, 0.89)",
156 "rgba(50, 172, 45, 0.97)"
158 "datasource": "Prometheus",
164 "thresholdLabels": false,
165 "thresholdMarkers": true
179 "name": "value to text",
183 "name": "range to text",
187 "maxDataPoints": 100,
188 "nullPointMode": "connected",
192 "postfixFontSize": "50%",
194 "prefixFontSize": "50%",
203 "fillColor": "rgba(31, 118, 189, 0.18)",
205 "lineColor": "rgb(31, 120, 193)",
211 "expr": "mongodb_connections{instance=~\"$instance\",state=\"current\"}",
212 "format": "time_series",
215 "metric": "mongodb_connections",
221 "title": "Open Connections",
222 "type": "singlestat",
223 "valueFontSize": "80%",
244 "title": "Operations",
252 "datasource": "Prometheus",
274 "nullPointMode": "null",
282 "seriesOverrides": [],
285 "steppedLine": false,
288 "expr": "rate(mongodb_op_counters_total{instance=~\"$instance\"}[$interval])",
289 "format": "time_series",
292 "legendFormat": "{{type}}",
301 "title": "Query Operations",
305 "value_type": "individual"
343 "datasource": "Prometheus",
365 "nullPointMode": "null",
381 "steppedLine": false,
384 "expr": "rate(mongodb_mongod_metrics_document_total{instance=~\"$instance\"}[$interval])",
385 "format": "time_series",
388 "legendFormat": "{{state}}",
397 "title": "Document Operations",
401 "value_type": "individual"
439 "datasource": "Prometheus",
461 "nullPointMode": "null",
469 "seriesOverrides": [],
472 "steppedLine": false,
475 "expr": "rate(mongodb_mongod_metrics_query_executor_total{instance=~\"$instance\"}[$interval])",
476 "format": "time_series",
479 "legendFormat": "{{state}}",
488 "title": "Document Query Executor",
492 "value_type": "individual"
536 "title": "Resources",
544 "datasource": "Prometheus",
555 "alignAsTable": false,
570 "nullPointMode": "null",
578 "seriesOverrides": [],
581 "steppedLine": false,
584 "expr": "mongodb_memory{instance=~\"$instance\",type=~\"resident|virtual\"}",
585 "format": "time_series",
588 "legendFormat": "{{type}}",
601 "value_type": "individual"
615 "format": "decmbytes",
641 "datasource": "Prometheus",
663 "nullPointMode": "null",
671 "seriesOverrides": [],
674 "steppedLine": false,
677 "expr": "rate(mongodb_network_bytes_total{instance=~\"$instance\"}[$interval])",
678 "format": "time_series",
681 "legendFormat": "{{state}}",
682 "metric": "mongodb_metrics_operation_total",
691 "title": "Network I/O",
695 "value_type": "individual"
707 "format": "decbytes",
741 "datasource": "Prometheus",
749 "query": "label_values(mongodb_connections, instance)",
752 "skipUrlSync": false,
754 "tagValuesQuery": "/.*-(.*?)-.*/",
756 "tagsQuery": "label_values(mongodb_connections, instance)",
766 "value": "$__auto_interval_interval"
775 "value": "$__auto_interval_interval"
828 "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
830 "skipUrlSync": false,
840 "refresh_intervals": [
864 "timezone": "browser",