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,
74 "datasource": "Prometheus",
81 "expr": "mongodb_instance_uptime_seconds{instance=~\"$instance\"}",
82 "format": "time_series",
96 "color": "rgba(245, 54, 54, 0.9)"
100 "color": "rgba(237, 129, 40, 0.89)"
104 "color": "rgba(50, 172, 45, 0.97)"
134 "orientation": "horizontal",
137 "colorMode": "value",
139 "justifyMode": "auto"
141 "pluginVersion": "8.1.1"
152 "title": "Open Connections",
153 "datasource": "Prometheus",
154 "maxDataPoints": 100,
156 "cacheTimeout": null,
160 "expr": "mongodb_connections{instance=~\"$instance\",state=\"current\"}",
161 "format": "time_series",
164 "metric": "mongodb_connections",
198 "fixedColor": "rgb(31, 120, 193)"
211 "orientation": "horizontal",
216 "justifyMode": "auto"
218 "pluginVersion": "8.1.1"
231 "title": "Operations",
239 "datasource": "Prometheus",
261 "nullPointMode": "null",
269 "seriesOverrides": [],
272 "steppedLine": false,
275 "expr": "rate(mongodb_op_counters_total{instance=~\"$instance\"}[$__rate_interval])",
276 "format": "time_series",
279 "legendFormat": "{{type}}",
288 "title": "Query Operations",
292 "value_type": "individual"
330 "datasource": "Prometheus",
352 "nullPointMode": "null",
368 "steppedLine": false,
371 "expr": "rate(mongodb_mongod_metrics_document_total{instance=~\"$instance\"}[$__rate_interval])",
372 "format": "time_series",
375 "legendFormat": "{{state}}",
384 "title": "Document Operations",
388 "value_type": "individual"
426 "datasource": "Prometheus",
448 "nullPointMode": "null",
456 "seriesOverrides": [],
459 "steppedLine": false,
462 "expr": "rate(mongodb_mongod_metrics_query_executor_total{instance=~\"$instance\"}[$__rate_interval])",
463 "format": "time_series",
466 "legendFormat": "{{state}}",
475 "title": "Document Query Executor",
479 "value_type": "individual"
523 "title": "Resources",
531 "datasource": "Prometheus",
542 "alignAsTable": false,
557 "nullPointMode": "null",
565 "seriesOverrides": [],
568 "steppedLine": false,
571 "expr": "mongodb_memory{instance=~\"$instance\",type=~\"resident|virtual\"}",
572 "format": "time_series",
575 "legendFormat": "{{type}}",
588 "value_type": "individual"
602 "format": "decmbytes",
628 "datasource": "Prometheus",
650 "nullPointMode": "null",
658 "seriesOverrides": [],
661 "steppedLine": false,
664 "expr": "rate(mongodb_network_bytes_total{instance=~\"$instance\"}[$__rate_interval])",
665 "format": "time_series",
668 "legendFormat": "{{state}}",
669 "metric": "mongodb_metrics_operation_total",
678 "title": "Network I/O",
682 "value_type": "individual"
694 "format": "decbytes",
728 "datasource": "Prometheus",
736 "query": "label_values(mongodb_connections, instance)",
739 "skipUrlSync": false,
741 "tagValuesQuery": "/.*-(.*?)-.*/",
743 "tagsQuery": "label_values(mongodb_connections, instance)",
753 "value": "$__auto_interval_interval"
762 "value": "$__auto_interval_interval"
815 "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
817 "skipUrlSync": false,
827 "refresh_intervals": [
851 "timezone": "browser",