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"
23 name: osm-monitoring-prometheus-mongodb-exporter-grafana
25 k8s-sidecar-target-directory: "/tmp/dashboards/Open Source MANO"
27 mongodb-exporter-dashboard.json: |-
33 "datasource": "-- Grafana --",
36 "iconColor": "rgba(0, 211, 255, 1)",
37 "name": "Annotations & Alerts",
42 "description": "MongoDB Prometheus Exporter Dashboard.",
47 "iteration": 1577555358996,
66 "colorBackground": false,
69 "rgba(245, 54, 54, 0.9)",
70 "rgba(237, 129, 40, 0.89)",
71 "rgba(50, 172, 45, 0.97)"
73 "datasource": "Prometheus",
80 "thresholdLabels": false,
81 "thresholdMarkers": true
95 "name": "value to text",
99 "name": "range to text",
103 "maxDataPoints": 100,
104 "nullPointMode": "connected",
108 "postfixFontSize": "50%",
110 "prefixFontSize": "50%",
119 "fillColor": "rgba(31, 118, 189, 0.18)",
121 "lineColor": "rgb(31, 120, 193)",
127 "expr": "mongodb_instance_uptime_seconds{instance=~\"$instance\"}",
128 "format": "time_series",
135 "thresholds": "0,360",
137 "type": "singlestat",
138 "valueFontSize": "80%",
146 "valueName": "current"
149 "cacheTimeout": null,
150 "colorBackground": false,
153 "rgba(245, 54, 54, 0.9)",
154 "rgba(237, 129, 40, 0.89)",
155 "rgba(50, 172, 45, 0.97)"
157 "datasource": "Prometheus",
163 "thresholdLabels": false,
164 "thresholdMarkers": true
178 "name": "value to text",
182 "name": "range to text",
186 "maxDataPoints": 100,
187 "nullPointMode": "connected",
191 "postfixFontSize": "50%",
193 "prefixFontSize": "50%",
202 "fillColor": "rgba(31, 118, 189, 0.18)",
204 "lineColor": "rgb(31, 120, 193)",
210 "expr": "mongodb_connections{instance=~\"$instance\",state=\"current\"}",
211 "format": "time_series",
214 "metric": "mongodb_connections",
220 "title": "Open Connections",
221 "type": "singlestat",
222 "valueFontSize": "80%",
243 "title": "Operations",
251 "datasource": "Prometheus",
273 "nullPointMode": "null",
281 "seriesOverrides": [],
284 "steppedLine": false,
287 "expr": "rate(mongodb_op_counters_total{instance=~\"$instance\"}[$interval])",
288 "format": "time_series",
291 "legendFormat": "{{type}}",
300 "title": "Query Operations",
304 "value_type": "individual"
342 "datasource": "Prometheus",
364 "nullPointMode": "null",
380 "steppedLine": false,
383 "expr": "rate(mongodb_mongod_metrics_document_total{instance=~\"$instance\"}[$interval])",
384 "format": "time_series",
387 "legendFormat": "{{state}}",
396 "title": "Document Operations",
400 "value_type": "individual"
438 "datasource": "Prometheus",
460 "nullPointMode": "null",
468 "seriesOverrides": [],
471 "steppedLine": false,
474 "expr": "rate(mongodb_mongod_metrics_query_executor_total{instance=~\"$instance\"}[$interval])",
475 "format": "time_series",
478 "legendFormat": "{{state}}",
487 "title": "Document Query Executor",
491 "value_type": "individual"
535 "title": "Resources",
543 "datasource": "Prometheus",
554 "alignAsTable": false,
569 "nullPointMode": "null",
577 "seriesOverrides": [],
580 "steppedLine": false,
583 "expr": "mongodb_memory{instance=~\"$instance\",type=~\"resident|virtual\"}",
584 "format": "time_series",
587 "legendFormat": "{{type}}",
600 "value_type": "individual"
614 "format": "decmbytes",
640 "datasource": "Prometheus",
662 "nullPointMode": "null",
670 "seriesOverrides": [],
673 "steppedLine": false,
676 "expr": "rate(mongodb_network_bytes_total{instance=~\"$instance\"}[$interval])",
677 "format": "time_series",
680 "legendFormat": "{{state}}",
681 "metric": "mongodb_metrics_operation_total",
690 "title": "Network I/O",
694 "value_type": "individual"
706 "format": "decbytes",
740 "datasource": "Prometheus",
748 "query": "label_values(mongodb_connections, instance)",
751 "skipUrlSync": false,
753 "tagValuesQuery": "/.*-(.*?)-.*/",
755 "tagsQuery": "label_values(mongodb_connections, instance)",
765 "value": "$__auto_interval_interval"
774 "value": "$__auto_interval_interval"
827 "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
829 "skipUrlSync": false,
839 "refresh_intervals": [
863 "timezone": "browser",