1 # Copyright 2021 Canonical Ltd.
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
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, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: legal@canonical.com
18 # To get in touch with the maintainers, please contact:
19 # osm-charmers@lists.launchpad.net
26 datasource: '-- Grafana --'
29 iconColor: 'rgba(0, 211, 255, 1)'
30 name: Annotations & Alerts
32 description: MongoDB Prometheus Exporter Dashboard.
37 iteration: 1577555358996
52 colorBackground: false
55 - 'rgba(245, 54, 54, 0.9)'
56 - 'rgba(237, 129, 40, 0.89)'
57 - 'rgba(50, 172, 45, 0.97)'
58 datasource: Prometheus
65 thresholdLabels: false
66 thresholdMarkers: true
82 nullPointMode: connected
94 fillColor: 'rgba(31, 118, 189, 0.18)'
96 lineColor: 'rgb(31, 120, 193)'
100 - expr: 'mongodb_instance_uptime_seconds{instance=~"$instance"}'
116 colorBackground: false
119 - 'rgba(245, 54, 54, 0.9)'
120 - 'rgba(237, 129, 40, 0.89)'
121 - 'rgba(50, 172, 45, 0.97)'
122 datasource: Prometheus
128 thresholdLabels: false
129 thresholdMarkers: true
140 - name: value to text
142 - name: range to text
145 nullPointMode: connected
157 fillColor: 'rgba(31, 118, 189, 0.18)'
159 lineColor: 'rgb(31, 120, 193)'
163 - expr: 'mongodb_connections{instance=~"$instance",state="current"}'
167 metric: mongodb_connections
171 title: Open Connections
194 datasource: Prometheus
214 nullPointMode: 'null'
227 'rate(mongodb_op_counters_total{instance=~"$instance"}[$interval])'
231 legendFormat: '{{type}}'
238 title: Query Operations
242 value_type: individual
270 datasource: Prometheus
290 nullPointMode: 'null'
305 rate(mongodb_mongod_metrics_document_total{instance=~"$instance"}[$interval])
309 legendFormat: '{{state}}'
316 title: Document Operations
320 value_type: individual
348 datasource: Prometheus
368 nullPointMode: 'null'
381 rate(mongodb_mongod_metrics_query_executor_total{instance=~"$instance"}[$interval])
385 legendFormat: '{{state}}'
392 title: Document Query Executor
396 value_type: individual
435 datasource: Prometheus
459 nullPointMode: 'null'
471 - expr: 'mongodb_memory{instance=~"$instance",type=~"resident|virtual"}'
475 legendFormat: '{{type}}'
486 value_type: individual
515 datasource: Prometheus
535 nullPointMode: 'null'
548 'rate(mongodb_network_bytes_total{instance=~"$instance"}[$interval])'
552 legendFormat: '{{state}}'
553 metric: mongodb_metrics_operation_total
564 value_type: individual
598 datasource: Prometheus
606 query: 'label_values(mongodb_connections, instance)'
611 tagValuesQuery: /.*-(.*?)-.*/
613 tagsQuery: 'label_values(mongodb_connections, instance)'
621 value: $__auto_interval_interval
628 value: $__auto_interval_interval
659 query: '1m,10m,30m,1h,6h,12h,1d,7d,14d,30d'