From 829f59ae3661e540c456ca40cd59b243862cbc79 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Thu, 29 Aug 2024 18:15:04 +0530
Subject: [PATCH] PMM-13258 Rename and move dashboards (#1622)
* PMM-13258 Rename and move dashboards
* PMM-13258 Change the folder for mongo dashboards
* PMM-13258 Update links
* PMM-13258 fix oplog filter
* PMM-13258 & PMM-13325 Fix structure and QA issues
* PMM-13325 Fix links
* PMM-13258 fix tags and top menu
---
.../MongoDB_Cluster_Summary_(Old).json | 4488 +++++++++++++++++
.../MongoDB_Cluster_Summary_(new).json | 3064 -----------
.../MongoDB_Instance_Summary_(new).json | 2648 ----------
...son => MongoDB_ReplSet_Summary_(Old).json} | 4432 ++++++++--------
.../MongoDB/MongoDB_Cluster_Summary.json | 4030 +++++----------
.../MongoDB_Collections_Overview.json | 2 +-
.../MongoDB/MongoDB_MMAPv1_Details.json | 1 -
.../MongoDB_Oplog_Details.json | 6 +-
.../MongoDB/MongoDB_ReplSet_Summary.json | 4422 ++++++++--------
.../components/Filters/Filters.constants.ts | 2 +-
10 files changed, 10237 insertions(+), 12858 deletions(-)
create mode 100644 dashboards/Experimental/MongoDB_Cluster_Summary_(Old).json
delete mode 100644 dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
delete mode 100644 dashboards/Experimental/MongoDB_Instance_Summary_(new).json
rename dashboards/Experimental/{MongoDB_ReplSet_Summary_(New).json => MongoDB_ReplSet_Summary_(Old).json} (52%)
rename dashboards/{Experimental => MongoDB}/MongoDB_Collections_Overview.json (99%)
rename dashboards/{Experimental => MongoDB}/MongoDB_Oplog_Details.json (99%)
diff --git a/dashboards/Experimental/MongoDB_Cluster_Summary_(Old).json b/dashboards/Experimental/MongoDB_Cluster_Summary_(Old).json
new file mode 100644
index 0000000000..932341762f
--- /dev/null
+++ b/dashboards/Experimental/MongoDB_Cluster_Summary_(Old).json
@@ -0,0 +1,4488 @@
+{
+ "annotations": {
+ "list": [
+ {
+ "builtIn": 1,
+ "datasource": "-- Grafana --",
+ "enable": true,
+ "hide": false,
+ "iconColor": "#e0752d",
+ "limit": 100,
+ "matchAny": true,
+ "name": "PMM Annotations",
+ "showIn": 0,
+ "tags": [
+ "pmm_annotation"
+ ],
+ "target": {
+ "limit": 100,
+ "matchAny": true,
+ "tags": [
+ "pmm_annotation"
+ ],
+ "type": "tags"
+ },
+ "type": "tags"
+ },
+ {
+ "builtIn": 1,
+ "datasource": "-- Grafana --",
+ "enable": true,
+ "hide": true,
+ "iconColor": "#6ed0e0",
+ "limit": 100,
+ "name": "Annotations & Alerts",
+ "showIn": 0,
+ "tags": [],
+ "target": {
+ "limit": 100,
+ "matchAny": false,
+ "tags": [],
+ "type": "dashboard"
+ },
+ "type": "dashboard"
+ }
+ ]
+ },
+ "editable": false,
+ "fiscalYearStartMonth": 0,
+ "graphTooltip": 1,
+ "id": null,
+ "iteration": 1656415942746,
+ "links": [
+ {
+ "icon": "doc",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "Home"
+ ],
+ "targetBlank": false,
+ "title": "Home",
+ "type": "link",
+ "url": "/graph/d/pmm-home/home-dashboard"
+ },
+ {
+ "icon": "dashboard",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "Query Analytics"
+ ],
+ "targetBlank": false,
+ "title": "Query Analytics",
+ "type": "link",
+ "url": "/graph/d/pmm-qan/pmm-query-analytics"
+ },
+ {
+ "icon": "bolt",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "Compare"
+ ],
+ "targetBlank": false,
+ "title": "Compare",
+ "type": "link",
+ "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare"
+ },
+ {
+ "asDropdown": true,
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "MongoDB"
+ ],
+ "targetBlank": false,
+ "title": "MongoDB",
+ "type": "dashboards"
+ },
+ {
+ "asDropdown": true,
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "MongoDB_HA"
+ ],
+ "targetBlank": false,
+ "title": "HA",
+ "type": "dashboards"
+ },
+ {
+ "asDropdown": true,
+ "includeVars": false,
+ "keepTime": true,
+ "tags": [
+ "Services"
+ ],
+ "targetBlank": false,
+ "title": "Services",
+ "type": "dashboards"
+ },
+ {
+ "asDropdown": true,
+ "includeVars": false,
+ "keepTime": true,
+ "tags": [
+ "PMM"
+ ],
+ "targetBlank": false,
+ "title": "PMM",
+ "type": "dashboards"
+ }
+ ],
+ "liveNow": false,
+ "panels": [
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "id": 1069,
+ "panels": [],
+ "title": "Overview",
+ "type": "row"
+ },
+ {
+ "description": "Sharding is a method for distributing data across multiple machines. MongoDB uses sharding to support deployments with very large data sets and high throughput operations.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
+ },
+ "decimals": 0,
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 4,
+ "x": 0,
+ "y": 1
+ },
+ "hideTimeOverride": true,
+ "id": 35,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "8.3.5",
+ "targets": [
+ {
+ "expr": "max(mongodb_mongos_sharding_databases_total{cluster=\"$cluster\", type=\"partitioned\"})",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Shards",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "timeFrom": "1m",
+ "title": "Sharded DBs",
+ "type": "stat"
+ },
+ {
+ "description": "A MongoDB sharded cluster deployment can contain collections that are either unsharded (the default when created) or sharded.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
+ },
+ "decimals": 0,
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 4,
+ "x": 4,
+ "y": 1
+ },
+ "hideTimeOverride": true,
+ "id": 39,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "8.3.5",
+ "targets": [
+ {
+ "expr": "max(mongodb_mongos_sharding_databases_total{cluster=\"$cluster\", type=\"unpartitioned\"})",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Shards",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "timeFrom": "1m",
+ "title": "Unsharded DBs",
+ "type": "stat"
+ },
+ {
+ "collapsed": false,
+ "default_title_for_rows": "DB Name",
+ "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
+ "gridPos": {
+ "h": 12,
+ "w": 8,
+ "x": 8,
+ "y": 1
+ },
+ "id": 1043,
+ "pluginVersion": "9.2.20",
+ "title": "Amount of Collections in Shards",
+ "type": "table",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "inspect": false,
+ "filterable": false
+ },
+ "mappings": [
+ {
+ "type": "value",
+ "options": {
+ "0": {
+ "color": "dark-blue",
+ "index": 0
+ }
+ }
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "green",
+ "value": 20
+ }
+ ]
+ },
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
+ "noValue": "-"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
+ },
+ {
+ "id": "color",
+ "value": {
+ "mode": "fixed",
+ "fixedColor": "dark-blue"
+ }
+ },
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false,
+ "reducer": [
+ "sum"
+ ],
+ "fields": ""
+ },
+ "frameIndex": 0,
+ "sortBy": [
+ {
+ "displayName": "DB Name\\Value",
+ "desc": false
+ }
+ ]
+ },
+ "transformations": [
+ {
+ "id": "groupingToMatrix",
+ "options": {
+ "columnField": "shard",
+ "rowField": "db",
+ "valueField": "Value"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {},
+ "renameByName": {
+ "db\\shard": "DB Name",
+ "rs1": ""
+ }
+ }
+ }
+ ],
+ "targets": [
+ {
+ "expr": "max by (db,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\",db!~\"admin|config\"})",
+ "editorMode": "code",
+ "range": false,
+ "exemplar": false,
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Collections",
+ "refId": "A"
+ },
+ {
+ "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}",
+ "editorMode": "code",
+ "range": false,
+ "exemplar": false,
+ "format": "table",
+ "hide": true,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Size",
+ "refId": "B"
+ }
+ ],
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ }
+ },
+ {
+ "default_title_for_rows": "DB Name",
+ "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
+ "gridPos": {
+ "h": 12,
+ "w": 8,
+ "x": 16,
+ "y": 1
+ },
+ "hide_headers": false,
+ "id": 1030,
+ "pluginVersion": "9.2.20",
+ "title": "Size of Collections in Shards",
+ "type": "table",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "inspect": false,
+ "filterable": false
+ },
+ "mappings": [
+ {
+ "type": "value",
+ "options": {
+ "0": {
+ "color": "dark-blue",
+ "index": 0,
+ "text": "0"
+ }
+ }
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "green",
+ "value": 20
+ }
+ ]
+ },
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
+ "noValue": "-",
+ "unit": "bytes"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
+ },
+ {
+ "id": "color",
+ "value": {
+ "mode": "fixed",
+ "fixedColor": "dark-blue"
+ }
+ },
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false,
+ "reducer": [
+ "sum"
+ ],
+ "fields": ""
+ },
+ "frameIndex": 0,
+ "sortBy": [
+ {
+ "displayName": "DB Name\\Value",
+ "desc": false
+ }
+ ]
+ },
+ "transformations": [
+ {
+ "id": "groupingToMatrix",
+ "options": {
+ "columnField": "shard",
+ "rowField": "db",
+ "valueField": "Value"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {},
+ "renameByName": {
+ "db\\shard": "DB Name",
+ "rs1": ""
+ }
+ }
+ }
+ ],
+ "targets": [
+ {
+ "expr": "max by (db,shard) (mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"})",
+ "editorMode": "code",
+ "range": false,
+ "exemplar": false,
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Collections",
+ "refId": "A"
+ }
+ ],
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ }
+ },
+ {
+ "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
+ },
+ "decimals": 0,
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 4,
+ "x": 0,
+ "y": 4
+ },
+ "hideTimeOverride": true,
+ "id": 36,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "8.3.5",
+ "targets": [
+ {
+ "expr": "max(mongodb_mongos_sharding_shards_total{cluster=\"$cluster\"})",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Shards",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "timeFrom": "1m",
+ "title": "Shards",
+ "type": "stat"
+ },
+ {
+ "description": "A chunk consists of a subset of sharded data.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
+ },
+ "decimals": 0,
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 4,
+ "x": 4,
+ "y": 4
+ },
+ "hideTimeOverride": true,
+ "id": 11,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "8.3.5",
+ "targets": [
+ {
+ "expr": "sum(mongodb_mongos_sharding_chunks_total{cluster=\"$cluster\"})",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Chunks",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "timeFrom": "1m",
+ "title": "Chunks",
+ "type": "stat"
+ },
+ {
+ "description": "When you run removeShard, MongoDB drains the shard by using the balancer to move the shard’s chunks to other shards in the cluster. Once the shard is drained, MongoDB removes the shard from the cluster.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
+ },
+ "decimals": 0,
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 4,
+ "x": 0,
+ "y": 7
+ },
+ "hideTimeOverride": true,
+ "id": 1028,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "8.3.5",
+ "targets": [
+ {
+ "expr": "max(mongodb_mongos_sharding_shards_draining_total{cluster=\"$cluster\"})",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Draining Total",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "timeFrom": "1m",
+ "title": "Draining Shards",
+ "type": "stat"
+ },
+ {
+ "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
+ },
+ "decimals": 0,
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 4,
+ "x": 4,
+ "y": 7
+ },
+ "hideTimeOverride": true,
+ "id": 10,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "8.3.5",
+ "targets": [
+ {
+ "expr": "max(mongodb_mongos_sharding_collections_total{cluster=\"$cluster\"})",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Shards",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "timeFrom": "1m",
+ "title": "Sharded Collections",
+ "type": "stat"
+ },
+ {
+ "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. ",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "text": "NO"
+ },
+ "1": {
+ "text": "YES"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "rgba(245, 54, 54, 0.9)",
+ "value": null
+ },
+ {
+ "color": "rgba(237, 129, 40, 0.89)",
+ "value": 0
+ },
+ {
+ "color": "rgba(50, 172, 45, 0.97)",
+ "value": 1
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 4,
+ "x": 0,
+ "y": 10
+ },
+ "hideTimeOverride": true,
+ "id": 5,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "8.3.5",
+ "targets": [
+ {
+ "expr": "max(mongodb_mongos_sharding_balancer_enabled{cluster=\"$cluster\"})",
+ "format": "time_series",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Cluster Balanced",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "timeFrom": "1m",
+ "title": "Balancer Enabled",
+ "type": "stat"
+ },
+ {
+ "description": "When the number of chunks on a given shard reaches specific migration thresholds, the balancer attempts to automatically migrate chunks between shards and reach an equal number of chunks per shard.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "text": "NO"
+ },
+ "1": {
+ "text": "YES"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "rgba(245, 54, 54, 0.9)",
+ "value": null
+ },
+ {
+ "color": "rgba(237, 129, 40, 0.89)",
+ "value": 0
+ },
+ {
+ "color": "rgba(50, 172, 45, 0.97)",
+ "value": 1
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 4,
+ "x": 4,
+ "y": 10
+ },
+ "hideTimeOverride": true,
+ "id": 4,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "8.3.5",
+ "targets": [
+ {
+ "expr": "min(mongodb_mongos_sharding_chunks_is_balancer_running{cluster=\"$cluster\"})",
+ "format": "time_series",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Cluster Balancer is Running",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "timeFrom": "1m",
+ "title": "Chunks Balancer is running",
+ "type": "stat"
+ },
+ {
+ "colors": [
+ "#299c46",
+ "rgba(237, 129, 40, 0.89)",
+ "#d44a3a",
+ "#4040a0"
+ ],
+ "description": "Config services store the metadata for a sharded cluster. The metadata reflects state and organization for all data and components within the sharded cluster. The metadata includes the list of chunks on every shard and the ranges that define the chunks.",
+ "gridPos": {
+ "h": 5,
+ "w": 12,
+ "x": 0,
+ "y": 13
+ },
+ "id": 1229,
+ "mappingType": 1,
+ "mappingTypes": [
+ {
+ "name": "value to text",
+ "value": 1
+ },
+ {
+ "name": "range to text",
+ "value": 2
+ }
+ ],
+ "nullPointMode": "connected",
+ "polystat": {
+ "animationSpeed": 2500,
+ "columnAutoSize": true,
+ "columns": "",
+ "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}",
+ "defaultClickThroughNewTab": true,
+ "defaultClickThroughSanitize": true,
+ "displayLimit": 100,
+ "ellipseCharacters": 18,
+ "ellipseEnabled": false,
+ "fontAutoColor": true,
+ "fontAutoScale": true,
+ "fontSize": 12,
+ "fontType": "Roboto",
+ "globalDecimals": 0,
+ "globalDisplayMode": "all",
+ "globalDisplayTextTriggeredEmpty": "OK",
+ "globalOperatorName": "current",
+ "globalUnitFormat": "ops",
+ "gradientEnabled": true,
+ "hexagonSortByDirection": 1,
+ "hexagonSortByField": "name",
+ "maxMetrics": 0,
+ "polygonBorderColor": "black",
+ "polygonBorderSize": 2,
+ "polygonGlobalFillColor": "#8F3BB8",
+ "radius": "",
+ "radiusAutoSize": true,
+ "regexPattern": "",
+ "rowAutoSize": true,
+ "rows": "",
+ "shape": "hexagon_pointed_top",
+ "tooltipDisplayMode": "all",
+ "tooltipDisplayTextTriggeredEmpty": "OK",
+ "tooltipEnabled": true,
+ "tooltipFontSize": 12,
+ "tooltipFontType": "Roboto",
+ "tooltipPrimarySortDirection": 2,
+ "tooltipPrimarySortField": "thresholdLevel",
+ "tooltipSecondarySortDirection": 2,
+ "tooltipSecondarySortField": "name",
+ "tooltipTimestampEnabled": true,
+ "valueEnabled": true
+ },
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "repeatDirection": "v",
+ "savedComposites": [],
+ "savedOverrides": [],
+ "targets": [
+ {
+ "expr": "sum by (service_name) (mongodb_connections{cluster=\"$cluster\", state=\"current\"} * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))",
+ "format": "time_series",
+ "hide": true,
+ "instant": false,
+ "interval": "$interval",
+ "legendFormat": "Config - {{service_name}} ",
+ "refId": "A"
+ },
+ {
+ "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))",
+ "interval": "$interval",
+ "legendFormat": "{{service_name}}",
+ "refId": "B"
+ }
+ ],
+ "title": "QPS of Config Services",
+ "type": "grafana-polystat-panel",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ]
+ },
+ {
+ "colors": [
+ "#299c46",
+ "rgba(237, 129, 40, 0.89)",
+ "#d44a3a",
+ "#4040a0"
+ ],
+ "description": "Mongos is a routing service for MongoDB shard configurations that processes queries from the application layer, and determines the location of this data in the sharded cluster, in order to complete these operations. From the perspective of the application, a mongos instance behaves identically to any other MongoDB instance.",
+ "gridPos": {
+ "h": 5,
+ "w": 12,
+ "x": 12,
+ "y": 13
+ },
+ "id": 1231,
+ "mappingType": 1,
+ "mappingTypes": [
+ {
+ "name": "value to text",
+ "value": 1
+ },
+ {
+ "name": "range to text",
+ "value": 2
+ }
+ ],
+ "nullPointMode": "connected",
+ "polystat": {
+ "animationSpeed": 2500,
+ "columnAutoSize": true,
+ "columns": "",
+ "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}",
+ "defaultClickThroughNewTab": true,
+ "defaultClickThroughSanitize": true,
+ "displayLimit": 100,
+ "ellipseCharacters": 18,
+ "ellipseEnabled": false,
+ "fontAutoColor": true,
+ "fontAutoScale": true,
+ "fontSize": 12,
+ "fontType": "Roboto",
+ "globalDecimals": 0,
+ "globalDisplayMode": "all",
+ "globalDisplayTextTriggeredEmpty": "OK",
+ "globalOperatorName": "current",
+ "globalUnitFormat": "ops",
+ "gradientEnabled": true,
+ "hexagonSortByDirection": 1,
+ "hexagonSortByField": "name",
+ "maxMetrics": 0,
+ "polygonBorderColor": "black",
+ "polygonBorderSize": 2,
+ "polygonGlobalFillColor": "#8AB8FF",
+ "radius": "",
+ "radiusAutoSize": true,
+ "regexPattern": "",
+ "rowAutoSize": true,
+ "rows": "",
+ "shape": "hexagon_pointed_top",
+ "tooltipDisplayMode": "all",
+ "tooltipDisplayTextTriggeredEmpty": "OK",
+ "tooltipEnabled": true,
+ "tooltipFontSize": 12,
+ "tooltipFontType": "Roboto",
+ "tooltipPrimarySortDirection": 2,
+ "tooltipPrimarySortField": "thresholdLevel",
+ "tooltipSecondarySortDirection": 2,
+ "tooltipSecondarySortField": "name",
+ "tooltipTimestampEnabled": true,
+ "valueEnabled": true
+ },
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "repeatDirection": "v",
+ "savedComposites": [],
+ "savedOverrides": [
+ {
+ "clickThrough": "",
+ "colors": [
+ "#299c46",
+ "#e5ac0e",
+ "#bf1b00",
+ "#ffffff"
+ ],
+ "decimals": "",
+ "enabled": true,
+ "label": "OVERRIDE 1",
+ "metricName": "",
+ "newTabEnabled": true,
+ "operatorName": "avg",
+ "prefix": "",
+ "sanitizeURLEnabled": false,
+ "suffix": "",
+ "thresholds": [],
+ "unitFormat": "short"
+ }
+ ],
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"})))",
+ "format": "time_series",
+ "instant": false,
+ "interval": "$interval",
+ "legendFormat": "{{service_name}} ",
+ "refId": "A"
+ }
+ ],
+ "title": "QPS of Mongos Service",
+ "type": "grafana-polystat-panel",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ]
+ },
+ {
+ "colors": [
+ "#299c46",
+ "rgba(237, 129, 40, 0.89)",
+ "#d44a3a",
+ "#4040a0"
+ ],
+ "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.",
+ "gridPos": {
+ "h": 5,
+ "w": 24,
+ "x": 0,
+ "y": 18
+ },
+ "id": 1227,
+ "mappingType": 1,
+ "mappingTypes": [
+ {
+ "name": "value to text",
+ "value": 1
+ },
+ {
+ "name": "range to text",
+ "value": 2
+ }
+ ],
+ "nullPointMode": "connected",
+ "polystat": {
+ "animationSpeed": 2500,
+ "columnAutoSize": true,
+ "columns": "",
+ "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}",
+ "defaultClickThroughNewTab": true,
+ "defaultClickThroughSanitize": true,
+ "displayLimit": 100,
+ "ellipseCharacters": 18,
+ "ellipseEnabled": false,
+ "fontAutoColor": true,
+ "fontAutoScale": true,
+ "fontSize": 12,
+ "fontType": "Roboto",
+ "globalDecimals": 0,
+ "globalDisplayMode": "all",
+ "globalDisplayTextTriggeredEmpty": "OK",
+ "globalOperatorName": "current",
+ "globalUnitFormat": "ops",
+ "gradientEnabled": true,
+ "hexagonSortByDirection": 1,
+ "hexagonSortByField": "name",
+ "maxMetrics": 0,
+ "polygonBorderColor": "black",
+ "polygonBorderSize": 2,
+ "polygonGlobalFillColor": "#0a50a1",
+ "radius": "",
+ "radiusAutoSize": true,
+ "regexPattern": "",
+ "rowAutoSize": true,
+ "rows": "",
+ "shape": "hexagon_pointed_top",
+ "tooltipDisplayMode": "all",
+ "tooltipDisplayTextTriggeredEmpty": "OK",
+ "tooltipEnabled": true,
+ "tooltipFontSize": 12,
+ "tooltipFontType": "Roboto",
+ "tooltipPrimarySortDirection": 2,
+ "tooltipPrimarySortField": "thresholdLevel",
+ "tooltipSecondarySortDirection": 2,
+ "tooltipSecondarySortField": "name",
+ "tooltipTimestampEnabled": true,
+ "valueEnabled": true
+ },
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "repeat": "shard",
+ "repeatDirection": "v",
+ "savedComposites": [],
+ "savedOverrides": [
+ {
+ "clickThrough": "",
+ "colors": [
+ "#299c46",
+ "#e5ac0e",
+ "#bf1b00",
+ "#ffffff"
+ ],
+ "decimals": "",
+ "enabled": true,
+ "label": "OVERRIDE 1",
+ "metricName": "",
+ "newTabEnabled": true,
+ "operatorName": "avg",
+ "prefix": "",
+ "sanitizeURLEnabled": false,
+ "suffix": "",
+ "thresholds": [],
+ "unitFormat": "short"
+ }
+ ],
+ "targets": [
+ {
+ "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set=~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set=~\"$shard\"}))",
+ "format": "time_series",
+ "instant": false,
+ "interval": "$interval",
+ "legendFormat": "{{service_name}} ",
+ "refId": "A"
+ }
+ ],
+ "title": "QPS of Services in Shard - $shard",
+ "type": "grafana-polystat-panel",
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "N/A",
+ "value": "null"
+ }
+ ]
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 23
+ },
+ "id": 1199,
+ "panels": [],
+ "title": "Chunks in Shards",
+ "type": "row"
+ },
+ {
+ "backgroundColor": "rgba(128,128,128,0.1)",
+ "colorMaps": [
+ {
+ "color": "#CCC",
+ "text": "N/A"
+ }
+ ],
+ "crosshairColor": "#8F070C",
+ "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. When the number of chunks on a given shard reaches specific migration thresholds, the balancer attempts to automatically migrate chunks between shards and reach an equal number of chunks per shard.",
+ "display": "timeline",
+ "expandFromQueryS": 0,
+ "extendLastValue": true,
+ "gridPos": {
+ "h": 4,
+ "w": 24,
+ "x": 0,
+ "y": 24
+ },
+ "highlightOnMouseover": true,
+ "id": 1215,
+ "legendSortBy": "-ms",
+ "lineColor": "rgba(0,0,0,0.1)",
+ "metricNameColor": "#000000",
+ "rangeMaps": [
+ {
+ "from": "null",
+ "text": "N/A",
+ "to": "null"
+ }
+ ],
+ "rowHeight": 50,
+ "showLegend": true,
+ "showLegendNames": true,
+ "showLegendPercent": true,
+ "showLegendValues": true,
+ "showTimeAxis": true,
+ "targets": [
+ {
+ "expr": "min(mongodb_mongos_sharding_chunks_is_balancer_running{cluster=\"$cluster\"})",
+ "interval": "$interval",
+ "legendFormat": "$cluster",
+ "refId": "A"
+ }
+ ],
+ "textSize": 24,
+ "textSizeTime": 12,
+ "timeOptions": [
+ {
+ "name": "Years",
+ "value": "years"
+ },
+ {
+ "name": "Months",
+ "value": "months"
+ },
+ {
+ "name": "Weeks",
+ "value": "weeks"
+ },
+ {
+ "name": "Days",
+ "value": "days"
+ },
+ {
+ "name": "Hours",
+ "value": "hours"
+ },
+ {
+ "name": "Minutes",
+ "value": "minutes"
+ },
+ {
+ "name": "Seconds",
+ "value": "seconds"
+ },
+ {
+ "name": "Milliseconds",
+ "value": "milliseconds"
+ }
+ ],
+ "timePrecision": {
+ "name": "Minutes",
+ "value": "minutes"
+ },
+ "timeTextColor": "#d8d9da",
+ "title": "Chunks Balancer is running",
+ "type": "natel-discrete-panel",
+ "units": "short",
+ "use12HourClock": false,
+ "useTimePrecision": false,
+ "valueMaps": [
+ {
+ "op": "=",
+ "text": "YES",
+ "value": "1"
+ },
+ {
+ "op": "=",
+ "text": "NO",
+ "value": "0"
+ }
+ ],
+ "valueTextColor": "#000000",
+ "writeAllValues": false,
+ "writeLastValue": true,
+ "writeMetricNames": false
+ },
+ {
+ "default_title_for_rows": "Shard Name",
+ "description": "A chunk consists of a subset of sharded data.",
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 28
+ },
+ "hide_headers": false,
+ "id": 1200,
+ "pluginVersion": "9.2.20",
+ "title": "Amount of Chunks in Shards",
+ "type": "table",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "inspect": false,
+ "filterable": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "green",
+ "value": 20
+ }
+ ]
+ },
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
+ "noValue": "-"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Chunks"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
+ },
+ {
+ "id": "color",
+ "value": {
+ "mode": "fixed",
+ "fixedColor": "dark-blue"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false,
+ "reducer": [
+ "sum"
+ ],
+ "fields": ""
+ }
+ },
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "Time": true
+ },
+ "indexByName": {},
+ "renameByName": {
+ "shard": "Shard Name",
+ "Value": "Chunks"
+ }
+ }
+ }
+ ],
+ "targets": [
+ {
+ "expr": "avg by (shard) (mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\",db!~\"admin|config\"})",
+ "editorMode": "code",
+ "range": false,
+ "exemplar": false,
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{shard}} | Chunks",
+ "refId": "A"
+ }
+ ],
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "The sharding operation creates the initial chunk(s) to cover the entire range of the shard key values. The number of chunks created depends on the configured chunk size. After the initial chunk creation, the balancer migrates these initial chunks across the shards as appropriate as well as manages the chunk distribution going forward.",
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB ReplSet Summary",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 16,
+ "x": 8,
+ "y": 28
+ },
+ "hiddenSeries": false,
+ "id": 1201,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "avg by (shard) (rate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[$interval]) or irate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "{{shard}}",
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Dynamic of Chunks",
+ "tooltip": {
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "cps",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": true,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.",
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 36
+ },
+ "hiddenSeries": false,
+ "id": 1212,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": false,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "{{event}}",
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Chunks Split Events",
+ "tooltip": {
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "short",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": true,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ",
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 36
+ },
+ "hiddenSeries": false,
+ "id": 1216,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": false,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "{{event}}",
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Chunks Move Events",
+ "tooltip": {
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "short",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 44
+ },
+ "id": 1045,
+ "panels": [],
+ "title": "Indexes in Shards",
+ "type": "row"
+ },
+ {
+ "default_title_for_rows": "DB Name",
+ "description": "Indexes are special data structures that store a small portion of the collection’s data set in an easy to traverse form. ",
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 45
+ },
+ "hide_headers": false,
+ "id": 1040,
+ "pluginVersion": "9.2.20",
+ "title": "Amount of Indexes in Shards",
+ "type": "table",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "inspect": false,
+ "filterable": false
+ },
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "dark-red",
+ "index": 0,
+ "text": "No data"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "green",
+ "value": 20
+ }
+ ]
+ },
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
+ "noValue": "-"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
+ },
+ {
+ "id": "color",
+ "value": {
+ "mode": "fixed",
+ "fixedColor": "dark-blue"
+ }
+ },
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false,
+ "reducer": [
+ "sum"
+ ],
+ "fields": ""
+ },
+ "frameIndex": 0,
+ "sortBy": [
+ {
+ "displayName": "DB Name\\Value",
+ "desc": false
+ }
+ ]
+ },
+ "transformations": [
+ {
+ "id": "groupingToMatrix",
+ "options": {
+ "columnField": "shard",
+ "rowField": "db",
+ "valueField": "Value"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {},
+ "renameByName": {
+ "db\\shard": "DB Name",
+ "rs1": ""
+ }
+ }
+ }
+ ],
+ "targets": [
+ {
+ "expr": "avg by (db,shard) (mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"})",
+ "editorMode": "code",
+ "range": false,
+ "exemplar": false,
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Collections",
+ "refId": "A"
+ },
+ {
+ "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}",
+ "editorMode": "code",
+ "range": false,
+ "exemplar": false,
+ "format": "table",
+ "hide": true,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Size",
+ "refId": "B"
+ }
+ ],
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 16,
+ "x": 8,
+ "y": 45
+ },
+ "hiddenSeries": false,
+ "id": 1042,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "avg by (db,shard) (rate(mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or irate(mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "{{shard}}-{{db}}",
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Dynamic of Indexes",
+ "tooltip": {
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "cps",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "default_title_for_rows": "DB Name",
+ "description": "The index stores the value of a specific field or set of fields, ordered by the value of the field. ",
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 53
+ },
+ "hide_headers": false,
+ "id": 1072,
+ "pluginVersion": "9.2.20",
+ "title": "Size of Indexes in Shards",
+ "type": "table",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "inspect": false,
+ "filterable": false
+ },
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "dark-red",
+ "index": 0,
+ "text": "No data"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "green",
+ "value": 20
+ }
+ ]
+ },
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
+ "noValue": "-",
+ "unit": "bytes"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
+ },
+ {
+ "id": "color",
+ "value": {
+ "mode": "fixed",
+ "fixedColor": "dark-blue"
+ }
+ },
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false,
+ "reducer": [
+ "sum"
+ ],
+ "fields": ""
+ },
+ "frameIndex": 0,
+ "sortBy": [
+ {
+ "displayName": "DB Name\\Value",
+ "desc": false
+ }
+ ]
+ },
+ "transformations": [
+ {
+ "id": "groupingToMatrix",
+ "options": {
+ "columnField": "shard",
+ "rowField": "db",
+ "valueField": "Value"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {},
+ "renameByName": {
+ "db\\shard": "DB Name",
+ "rs1": ""
+ }
+ }
+ }
+ ],
+ "targets": [
+ {
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "avg by (db,shard) (mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Collections",
+ "refId": "A"
+ }
+ ],
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 16,
+ "x": 8,
+ "y": 53
+ },
+ "hiddenSeries": false,
+ "id": 1073,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "avg by (db,shard) (rate(mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or rate(mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "{{shard}}-{{db}}",
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Dynamic of Indexes Size",
+ "tooltip": {
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "Bps",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 61
+ },
+ "id": 1071,
+ "panels": [
+ {
+ "default_title_for_rows": "DB Name",
+ "description": "Documents in MongoDB are objects stored in a format called BSON, a binary-encoded superset of JSON that supports additional data types.",
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 29
+ },
+ "hide_headers": false,
+ "id": 1066,
+ "pluginVersion": "9.2.20",
+ "title": "Amount of Objects in Shards",
+ "type": "table",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "inspect": false,
+ "filterable": false
+ },
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "dark-red",
+ "index": 0,
+ "text": "No data"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "green",
+ "value": 20
+ }
+ ]
+ },
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
+ "noValue": "-"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
+ },
+ {
+ "id": "color",
+ "value": {
+ "mode": "fixed",
+ "fixedColor": "dark-blue"
+ }
+ },
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false,
+ "reducer": [
+ "sum"
+ ],
+ "fields": ""
+ },
+ "frameIndex": 0,
+ "sortBy": [
+ {
+ "displayName": "DB Name\\Value",
+ "desc": false
+ }
+ ]
+ },
+ "transformations": [
+ {
+ "id": "groupingToMatrix",
+ "options": {
+ "columnField": "shard",
+ "rowField": "db",
+ "valueField": "Value"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {},
+ "renameByName": {
+ "db\\shard": "DB Name",
+ "rs1": ""
+ }
+ }
+ }
+ ],
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "exemplar": false,
+ "expr": "avg by (db,shard) (mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Collections",
+ "refId": "A"
+ }
+ ],
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 16,
+ "x": 8,
+ "y": 29
+ },
+ "hiddenSeries": false,
+ "id": 1067,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "7.5.6",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "avg by (db,shard) (increase(mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or increase(mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "{{shard}}-{{db}}",
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Dynamic of Objects",
+ "tooltip": {
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "short",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ }
+ ],
+ "title": "Objects in Shards",
+ "type": "row"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 62
+ },
+ "id": 81,
+ "panels": [],
+ "title": "Connections",
+ "type": "row"
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "description": "TCP connections (Incoming) in mongod processes.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB ReplSet Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 6,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 63
+ },
+ "hiddenSeries": false,
+ "id": 37,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "Total",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
+ }
+ ],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum by (set) (avg by (service_name,set) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{set}}",
+ "refId": "B",
+ "step": 300
+ },
+ {
+ "expr": "sum by () (avg by (service_name,set) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))",
+ "hide": false,
+ "interval": "$interval",
+ "legendFormat": "Total",
+ "refId": "A"
+ },
+ {
+ "expr": "sum by (shard) (avg by (service_name,shard) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"} / mongodb_mongos_db_collections_total{cluster=\"$cluster\"}))",
+ "format": "time_series",
+ "hide": true,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{shard}}",
+ "refId": "C",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Current Connections Per Shard",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "description": "Incoming connections to mongos nodes.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 63
+ },
+ "hiddenSeries": false,
+ "id": 7,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum by (state) (max_over_time(mongodb_connections{cluster=\"$cluster\"}[$interval]) or max_over_time(mongodb_connections{cluster=\"$cluster\"}[5m]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{state}}",
+ "refId": "J",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Total Connections",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "short",
+ "label": "",
+ "logBase": 2,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 71
+ },
+ "id": 50,
+ "panels": [],
+ "title": "Connections Details",
+ "type": "row"
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 6,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 72
+ },
+ "hiddenSeries": false,
+ "id": 1178,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxPerRow": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum by (service_name) (max_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"current\"}[$interval]) or \nmax_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"current\"}[5m]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{service_name}}",
+ "refId": "J",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Current Connections ",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 6,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 79
+ },
+ "hiddenSeries": false,
+ "id": 1177,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxPerRow": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum by (service_name) (max_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"available\"}[$interval]) or \nmax_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"available\"}[5m]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{service_name}}",
+ "refId": "J",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Available Connections",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 86
+ },
+ "id": 1149,
+ "panels": [],
+ "title": "Cursors",
+ "type": "row"
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 0,
+ "description": "The Cursor is a MongoDB Collection of the document which is returned upon the find method execution. ",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB ReplSet Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 6,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 87
+ },
+ "hiddenSeries": false,
+ "id": 25,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "Total",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
+ }
+ ],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{set}}",
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"})",
+ "interval": "$interval",
+ "legendFormat": "Total",
+ "refId": "B"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Cursors Per Shard",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "description": "The Cursor is a MongoDB Collection of the document which is returned upon the find method execution.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 87
+ },
+ "hiddenSeries": false,
+ "id": 31,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "exemplar": true,
+ "expr": "sum by () (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or \nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)",
+ "hide": false,
+ "interval": "$interval",
+ "legendFormat": "Cursors",
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Mongos Cursors",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 95
+ },
+ "id": 62,
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "",
+ "editable": true,
+ "error": false,
+ "fill": 6,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 49
+ },
+ "hiddenSeries": false,
+ "id": 1179,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "dataLinks": []
+ },
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "Total",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
+ }
+ ],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum by (service_name) (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or max_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)",
+ "hide": false,
+ "interval": "$interval",
+ "legendFormat": "{{service_name}}",
+ "refId": "A"
+ },
+ {
+ "expr": "sum by () (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or max_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)",
+ "interval": "$interval",
+ "legendFormat": "Total",
+ "refId": "B"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Mongos Cursors",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ }
+ ],
+ "title": "Cursors Details",
+ "type": "row"
+ },
+ {
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 96
+ },
+ "id": 1056,
+ "title": "Mongos Operations",
+ "type": "row"
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 0,
+ "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB ReplSet Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 6,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 97
+ },
+ "hiddenSeries": false,
+ "id": 30,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideEmpty": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {}
+ ],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum(sum(rate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[5m])) by (instance) * on (instance) \ngroup_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{set}}",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Operations Per Shard",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 97
+ },
+ "hiddenSeries": false,
+ "id": 46,
+ "interval": "",
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": true,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum by (type) (rate(mongodb_op_counters_total{cluster=~\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=~\"$cluster\", type!=\"command\"}[5m]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{type}}",
+ "refId": "J",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Total Mongos Operations",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 105
+ },
+ "id": 52,
+ "panels": [],
+ "title": "Operations Details",
+ "type": "row"
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 106
+ },
+ "hiddenSeries": false,
+ "id": 53,
+ "interval": "",
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": true,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "maxPerRow": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum by (type) (rate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\",service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\",service_name=~\"$service_name\"}[5m]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{type}}",
+ "refId": "J",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Operations $service_name",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 113
+ },
+ "id": 97,
+ "panels": [],
+ "title": "Other",
+ "type": "row"
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB ReplSet Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 114
+ },
+ "hiddenSeries": false,
+ "id": 14,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval]) > 0) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m]) > 0) by (service_name,set))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{set}}",
+ "refId": "B",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Replication Lag by Set",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "s",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "description": "Timespan 'window' between oldest and newest ops in the Oplog collection.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB ReplSet Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 114
+ },
+ "hiddenSeries": false,
+ "id": 27,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "max(max(mongodb_mongod_replset_oplog_head_timestamp{cluster=\"$cluster\"}-mongodb_mongod_replset_oplog_tail_timestamp{cluster=\"$cluster\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{set}}",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Oplog Range by Set",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "s",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": true,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "Count, over last 10 minutes, of all types of config db changelog events.",
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 122
+ },
+ "hiddenSeries": false,
+ "id": 1213,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": false,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*(shard|Shard).*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*(shard|Shard).*\"}[5m])",
+ "interval": "$interval",
+ "legendFormat": "{{event}}",
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Change Log Events",
+ "tooltip": {
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "short",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ }
+ ],
+ "refresh": "1m",
+ "schemaVersion": 34,
+ "style": "dark",
+ "tags": [
+ "Percona"
+ ],
+ "templating": {
+ "list": [
+ {
+ "allFormat": "glob",
+ "auto": true,
+ "auto_count": 200,
+ "auto_min": "1s",
+ "current": {
+ "selected": false,
+ "text": "auto",
+ "value": "$__auto_interval_interval"
+ },
+ "datasource": "Metrics",
+ "hide": 0,
+ "includeAll": false,
+ "label": "Interval",
+ "multi": false,
+ "multiFormat": "glob",
+ "name": "interval",
+ "options": [
+ {
+ "selected": true,
+ "text": "auto",
+ "value": "$__auto_interval_interval"
+ },
+ {
+ "selected": false,
+ "text": "1s",
+ "value": "1s"
+ },
+ {
+ "selected": false,
+ "text": "5s",
+ "value": "5s"
+ },
+ {
+ "selected": false,
+ "text": "1m",
+ "value": "1m"
+ },
+ {
+ "selected": false,
+ "text": "5m",
+ "value": "5m"
+ },
+ {
+ "selected": false,
+ "text": "1h",
+ "value": "1h"
+ },
+ {
+ "selected": false,
+ "text": "6h",
+ "value": "6h"
+ },
+ {
+ "selected": false,
+ "text": "1d",
+ "value": "1d"
+ }
+ ],
+ "query": "1s,5s,1m,5m,1h,6h,1d",
+ "refresh": 2,
+ "skipUrlSync": false,
+ "type": "interval"
+ },
+ {
+ "allFormat": "glob",
+ "current": {
+ "selected": false,
+ "text": "mongodb_cluster",
+ "value": "mongodb_cluster"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values(mongodb_up,cluster)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "Cluster",
+ "multi": false,
+ "multiFormat": "glob",
+ "name": "cluster",
+ "options": [],
+ "query": {
+ "query": "label_values(mongodb_up,cluster)",
+ "refId": "Metrics-cluster-Variable-Query"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values(mongodb_up{cluster=\"$cluster\"},service_name)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Service Name",
+ "multi": true,
+ "name": "service_name",
+ "options": [],
+ "query": {
+ "query": "label_values(mongodb_up{cluster=\"$cluster\"},service_name)",
+ "refId": "Metrics-service_name-Variable-Query"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Shard Name",
+ "multi": true,
+ "name": "shard",
+ "options": [],
+ "query": {
+ "query": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
+ "refId": "Metrics-shard-Variable-Query"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Node Name",
+ "multi": true,
+ "name": "node_name",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)",
+ "refId": "Metrics-node_name-Variable-Query"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Environment",
+ "multi": true,
+ "name": "environment",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
+ "refId": "Metrics-environment-Variable-Query"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Replication Set",
+ "multi": true,
+ "name": "replication_set",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
+ "refId": "Metrics-replication_set-Variable-Query"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Database",
+ "multi": true,
+ "name": "database",
+ "options": [],
+ "query": {
+ "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
+ "refId": "Metrics-database-Variable-Query"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Type",
+ "multi": true,
+ "name": "node_type",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
+ "refId": "Metrics-node_type-Variable-Query"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Type",
+ "multi": true,
+ "name": "service_type",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
+ "refId": "Metrics-service_type-Variable-Query"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Username",
+ "multi": true,
+ "name": "username",
+ "options": [],
+ "query": {
+ "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
+ "refId": "Metrics-username-Variable-Query"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {},
+ "hide": 2,
+ "includeAll": true,
+ "label": "Schema",
+ "multi": true,
+ "name": "schema",
+ "options": [],
+ "query": "",
+ "skipUrlSync": false,
+ "type": "custom"
+ }
+ ]
+ },
+ "time": {
+ "from": "now-12h",
+ "to": "now"
+ },
+ "timepicker": {
+ "hidden": false,
+ "now": true,
+ "refresh_intervals": [
+ "1s",
+ "5s",
+ "1m",
+ "5m",
+ "1h",
+ "6h",
+ "1d"
+ ],
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
+ },
+ "timezone": "",
+ "title": "MongoDB Cluster Summary (Old)",
+ "uid": "mongodb-cluster-summary_old",
+ "version": 1,
+ "weekStart": ""
+}
diff --git a/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json b/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
deleted file mode 100644
index ed37171916..0000000000
--- a/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
+++ /dev/null
@@ -1,3064 +0,0 @@
-{
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": false,
- "iconColor": "#e0752d",
- "limit": 100,
- "matchAny": true,
- "name": "PMM Annotations",
- "showIn": 0,
- "tags": [
- "pmm_annotation"
- ],
- "target": {
- "limit": 100,
- "matchAny": true,
- "tags": [
- "pmm_annotation"
- ],
- "type": "tags"
- },
- "type": "tags"
- },
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": true,
- "iconColor": "#6ed0e0",
- "limit": 100,
- "name": "Annotations & Alerts",
- "showIn": 0,
- "tags": [],
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- }
- ]
- },
- "editable": false,
- "fiscalYearStartMonth": 0,
- "graphTooltip": 1,
- "id": null,
- "links": [
- {
- "icon": "doc",
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "Home"
- ],
- "targetBlank": false,
- "title": "Home",
- "type": "link",
- "url": "/graph/d/pmm-home/home-dashboard"
- },
- {
- "icon": "dashboard",
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "Query Analytics"
- ],
- "targetBlank": false,
- "title": "Query Analytics",
- "type": "link",
- "url": "/graph/d/pmm-qan/pmm-query-analytics"
- },
- {
- "icon": "bolt",
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "Compare"
- ],
- "targetBlank": false,
- "title": "Compare",
- "type": "link",
- "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare"
- },
- {
- "asDropdown": true,
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "MongoDB"
- ],
- "targetBlank": false,
- "title": "MongoDB",
- "type": "dashboards"
- },
- {
- "asDropdown": true,
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "MongoDB_HA"
- ],
- "targetBlank": false,
- "title": "HA",
- "type": "dashboards"
- },
- {
- "asDropdown": true,
- "includeVars": false,
- "keepTime": true,
- "tags": [
- "Services"
- ],
- "targetBlank": false,
- "title": "Services",
- "type": "dashboards"
- },
- {
- "asDropdown": true,
- "includeVars": false,
- "keepTime": true,
- "tags": [
- "PMM"
- ],
- "targetBlank": false,
- "title": "PMM",
- "type": "dashboards"
- }
- ],
- "liveNow": false,
- "panels": [
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 1069,
- "panels": [],
- "title": "Overview",
- "type": "row"
- },
- {
- "description": "Queries per second of all shards + config server replica set",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "fixed"
- },
- "decimals": 0,
- "links": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?${cluster:queryparam}&${__field.labels.rs_nm}&${interval:queryparam}&${__url_time_range}"
- }
- ],
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "ops"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 5,
- "w": 24,
- "x": 0,
- "y": 1
- },
- "id": 1227,
- "options": {
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "sum by (rs_nm) (rate(mongodb_op_counters_total{environment=~\"$environment\",cluster=~\"$cluster\",type!=\"command\",rs_nm!~\"\"}[$interval]) or irate(mongodb_op_counters_total{environment=~\"$environment\",cluster=~\"$cluster\",type!=\"command\",rs_nm!~\"\"}[5s]))",
- "format": "time_series",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{rs_nm}} ",
- "range": false,
- "refId": "B"
- },
- {
- "editorMode": "code",
- "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"})))",
- "hide": true,
- "legendFormat": "mongos",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "QPS of Services in Shard",
- "type": "gauge"
- },
- {
- "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster\u2019s shards hold the entire data set for the cluster.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 2,
- "x": 0,
- "y": 6
- },
- "hideTimeOverride": true,
- "id": 36,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "max(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "Shards",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "1m",
- "title": "Shards",
- "type": "stat"
- },
- {
- "description": "Number of mongos routers registered as part of the cluster",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 2,
- "x": 2,
- "y": 6
- },
- "hideTimeOverride": true,
- "id": 1298,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "sum(group by (service_name)(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}))",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "__auto",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "1m",
- "title": "Mongos",
- "type": "stat"
- },
- {
- "description": "When you run removeShard, MongoDB drains the shard by using the balancer to move the shard\u2019s chunks to other shards in the cluster. Once the shard is drained, MongoDB removes the shard from the cluster.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 2,
- "x": 4,
- "y": 6
- },
- "hideTimeOverride": true,
- "id": 1028,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "max(mongodb_mongos_sharding_shards_draining_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "Draining Total",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "1m",
- "title": "Draining Shards",
- "type": "stat"
- },
- {
- "description": "Total number of user-created databases",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 2,
- "x": 6,
- "y": 6
- },
- "hideTimeOverride": true,
- "id": 35,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "sum(mongodb_mongos_sharding_databases_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "Shards",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "1m",
- "title": "DBs",
- "type": "stat"
- },
- {
- "description": "Number of collections that are sharded",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 3,
- "x": 8,
- "y": 6
- },
- "hideTimeOverride": true,
- "id": 10,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "max by (environment, cluster) (mongodb_ss_shardingStatistics_numShardedCollections{environment=~\"$environment\",cluster=~\"$cluster\"} or mongodb_mongos_sharding_collections_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "Shards",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "1m",
- "title": "Sharded Collections",
- "type": "stat"
- },
- {
- "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. ",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 0,
- "mappings": [
- {
- "options": {
- "0": {
- "text": "NO"
- },
- "1": {
- "text": "YES"
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 0
- },
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": 1
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 3,
- "x": 11,
- "y": 6
- },
- "hideTimeOverride": true,
- "id": 5,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "max(mongodb_mongos_sharding_balancer_enabled{environment=~\"$environment\",cluster=~\"$cluster\"})",
- "format": "time_series",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "Cluster Balanced",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "1m",
- "title": "Balancer Enabled",
- "type": "stat"
- },
- {
- "description": "A chunk consists of a subset of sharded data.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 7,
- "x": 14,
- "y": 6
- },
- "hideTimeOverride": true,
- "id": 11,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "sum(mongodb_mongos_sharding_chunks_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "Chunks",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "1m",
- "title": "Total amount of Chunks",
- "type": "stat"
- },
- {
- "description": "Time since the most recent election of any member of the cluster",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 1,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 2,
- "w": 3,
- "x": 21,
- "y": 6
- },
- "hideTimeOverride": false,
- "id": 1293,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "time() - max(mongodb_mongod_replset_member_election_date{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"})",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "",
- "metric": "",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Last Election",
- "type": "stat"
- },
- {
- "description": "Show the chunk distribution between all the shards involved",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "fixed"
- },
- "mappings": [],
- "max": 1,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "percentunit"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 8
- },
- "id": 1267,
- "options": {
- "displayMode": "gradient",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true
- },
- "pluginVersion": "9.2.20",
- "repeatDirection": "v",
- "targets": [
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "max by (shard) (last_over_time(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[1m])) / sum(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"})",
- "format": "time_series",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{shard}} ",
- "range": false,
- "refId": "A"
- }
- ],
- "title": "Chunks distribution",
- "type": "bargauge"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 15
- },
- "hiddenSeries": false,
- "id": 1269,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "/repl.*/",
- "yaxis": 2
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "sum by (environment, cluster, legacy_op_type) (rate(mongodb_ss_opcountersRepl{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\",legacy_op_type!~\"(command|query|getmore)\"}[$interval]))",
- "format": "time_series",
- "hide": true,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "repl_{{legacy_op_type}}",
- "range": true,
- "refId": "A",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "sum by (environment, cluster) (rate(mongodb_ss_metrics_ttl_deletedDocuments{environment=~\"$environment\", rs_nm=~\"$set\",service_name=~\"$service_name\",cluster=~\"$cluster\"}[$interval]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "ttl_delete",
- "range": true,
- "refId": "B",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "sum by (environment, cluster, legacy_op_type) (rate(mongodb_ss_opcounters{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\",service_name=~\"$service_name\",legacy_op_type!=\"command\"}[$interval]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{legacy_op_type}}",
- "range": true,
- "refId": "C",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Command Operations",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": "0",
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "description": "Show the 5 collections that are most frequently read.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "fixed"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "ops"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 15
- },
- "id": 1271,
- "links": [],
- "options": {
- "displayMode": "gradient",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true,
- "text": {}
- },
- "pluginVersion": "9.2.20",
- "repeatDirection": "v",
- "targets": [
- {
- "editorMode": "code",
- "expr": "topk (5,sum by (environment, cluster,database,collection) (irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]))",
- "hide": true,
- "legendFormat": "{{database}}.{{collection}}",
- "range": true,
- "refId": "B"
- },
- {
- "editorMode": "code",
- "expr": "topk (5,sum by (environment, cluster,database,collection) ((rate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]) or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5s]))",
- "hide": false,
- "interval": "",
- "legendFormat": "{{database}}.{{collection}}",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "Top Hottest Collections by Read",
- "transformations": [],
- "type": "bargauge"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Average latency of operations (classified by read, write, or (other) command)",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 23
- },
- "hiddenSeries": false,
- "id": 1297,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by (op_type) (rate(mongodb_ss_opLatencies_latency{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{environment=~\"$environment\", cluster=~\"$cluster\",service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[5m]) > 0))",
- "interval": "$interval",
- "legendFormat": "{{op_type}}",
- "range": true,
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Query execution times",
- "tooltip": {
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "\u00b5s",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "description": "Show the 5 collections that are most frequently written to.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "fixed"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "ops"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 23
- },
- "id": 1273,
- "options": {
- "displayMode": "gradient",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "topk (5,sum by (environment,cluster,database,collection) (irate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5m]))",
- "hide": true,
- "instant": false,
- "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0",
- "legendFormat": "{{database}}.{{collection}}",
- "range": true,
- "refId": "A"
- },
- {
- "editorMode": "code",
- "expr": "topk (5,sum by (environment,cluster,database,collection) ((rate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]) or irate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5m]))",
- "hide": false,
- "legendFormat": "{{database}}.{{collection}}",
- "range": true,
- "refId": "B"
- }
- ],
- "title": "Top Hottest Collections by Write",
- "type": "bargauge"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 0,
- "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB ReplSet Summary - ${__series.name}",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 31
- },
- "hiddenSeries": false,
- "id": 30,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideEmpty": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "sum(sum(rate(mongodb_op_counters_total{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", type!=\"command\"}[5m])) by (instance) * on (instance) \ngroup_right mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"} / mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"}) by (set)",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{set}}",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Operations Per Shard",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "displayMode": "auto",
- "inspect": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- }
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Time"
- },
- "properties": [
- {
- "id": "custom.hidden",
- "value": true
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "service_name"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Service Name"
- },
- {
- "id": "unit",
- "value": "short"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "links",
- "value": []
- },
- {
- "id": "custom.align"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "mongodb"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Version"
- },
- {
- "id": "unit",
- "value": "short"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align",
- "value": "auto"
- },
- {
- "id": "custom.width"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value"
- },
- "properties": [
- {
- "id": "custom.hidden",
- "value": true
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "service_name"
- },
- "properties": [
- {
- "id": "custom.width"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 31
- },
- "hideTimeOverride": true,
- "id": 1289,
- "links": [],
- "options": {
- "footer": {
- "enablePagination": true,
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true,
- "sortBy": []
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"}) or (avg by (service_name,mongodb) (mongodb_version_info)) * on (service_name) group_right (mongodb) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=~\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=~\"$cluster\"}))",
- "format": "table",
- "instant": true,
- "interval": "5m",
- "legendFormat": "{{mongodb}}",
- "refId": "B"
- }
- ],
- "timeFrom": "1m",
- "title": "MongoDB Versions",
- "transformations": [
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {
- "Time": 1,
- "Value": 3,
- "mongodb": 2,
- "service_name": 0
- },
- "renameByName": {}
- }
- }
- ],
- "type": "table"
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 39
- },
- "id": 1285,
- "panels": [],
- "title": "Node States",
- "type": "row"
- },
- {
- "description": "ReplSet statuses during the select time range.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "fillOpacity": 100,
- "lineWidth": 0,
- "spanNulls": true
- },
- "mappings": [
- {
- "options": {
- "0": {
- "index": 11,
- "text": "STARTUP"
- },
- "1": {
- "color": "rgb(107, 152, 102)",
- "index": 4,
- "text": "PRIMARY"
- },
- "10": {
- "index": 5,
- "text": "REMOVED"
- },
- "2": {
- "color": "rgb(193, 159, 20)",
- "index": 3,
- "text": "SECONDARY"
- },
- "3": {
- "index": 10,
- "text": "RECOVERING"
- },
- "5": {
- "index": 9,
- "text": "STARTUP2"
- },
- "6": {
- "index": 8,
- "text": "UNKNOWN"
- },
- "7": {
- "color": "#8B8000",
- "index": 1,
- "text": "ARBITER"
- },
- "8": {
- "index": 7,
- "text": "DOWN"
- },
- "9": {
- "index": 6,
- "text": "ROLLBACK"
- },
- "null": {
- "color": "#FF7383",
- "index": 2,
- "text": "Exporter is not connected"
- }
- },
- "type": "value"
- },
- {
- "options": {
- "result": {
- "index": 0,
- "text": "N/A"
- }
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 40
- },
- "id": 1281,
- "options": {
- "alignValue": "right",
- "legend": {
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "mergeValues": true,
- "rowHeight": 0.9,
- "showValue": "auto",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "6.5.1",
- "repeat": "set",
- "repeatDirection": "h",
- "targets": [
- {
- "editorMode": "code",
- "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\",service_name=~\"$service_name\"})",
- "hide": false,
- "interval": "$interval",
- "legendFormat": "{{service_name}}",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "$set Node States",
- "type": "state-timeline"
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 47
- },
- "id": 1279,
- "panels": [],
- "title": "Collection Details",
- "type": "row"
- },
- {
- "default_title_for_rows": "DB Name",
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "filterable": false,
- "inspect": true
- },
- "mappings": [
- {
- "options": {
- "0": {
- "color": "dark-blue",
- "index": 0,
- "text": "0"
- }
- },
- "type": "value"
- }
- ],
- "noValue": "0",
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red"
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Collection Name"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "auto"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 11,
- "x": 0,
- "y": 48
- },
- "hide_headers": false,
- "id": 1030,
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "frameIndex": 0,
- "showHeader": true,
- "sortBy": []
- },
- "pluginVersion": "9.2.20",
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- },
- "targets": [
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$shard\"})",
- "format": "table",
- "hide": true,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
- "range": false,
- "refId": "A"
- },
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$set\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
- "range": false,
- "refId": "B"
- }
- ],
- "title": "Size of Collections in Shards",
- "transformations": [
- {
- "id": "calculateField",
- "options": {
- "binary": {
- "left": "collection",
- "reducer": "sum",
- "right": "database"
- },
- "mode": "reduceRow",
- "reduce": {
- "include": [
- "database",
- "collection"
- ],
- "reducer": "allValues"
- },
- "replaceFields": false
- }
- },
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "rs_nm",
- "rowField": "All values",
- "valueField": "Value"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "All values\\rs_nm": "All values",
- "collection\\rs_nm": "Collection Name",
- "db\\shard": "DB Name",
- "rs1": ""
- }
- }
- },
- {
- "id": "extractFields",
- "options": {
- "source": "All values"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {
- "All values": true
- },
- "indexByName": {
- "0": 1,
- "1": 0,
- "All values": 2,
- "s1": 3,
- "s2": 4
- },
- "renameByName": {
- "0": "Collection Name",
- "1": "DB Name"
- }
- }
- }
- ],
- "type": "table"
- },
- {
- "collapsed": false,
- "default_title_for_rows": "DB Name",
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "filterable": false,
- "inspect": false
- },
- "mappings": [
- {
- "options": {
- "0": {
- "color": "dark-blue",
- "index": 0
- }
- },
- "type": "value"
- }
- ],
- "noValue": "0",
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red"
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 13,
- "x": 11,
- "y": 48
- },
- "id": 1043,
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "frameIndex": 0,
- "showHeader": true,
- "sortBy": [
- {
- "desc": false,
- "displayName": "DB Name\\Value"
- }
- ]
- },
- "pluginVersion": "9.2.20",
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- },
- "targets": [
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "max by (rs_nm, database) (mongodb_mongod_db_collections_total{cluster=\"$cluster\",database!~\"admin|config|system|local\",rs_nm=~\"$set\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{rs_nm}} | Collections",
- "range": false,
- "refId": "C"
- }
- ],
- "title": "Number of Collections in Shards",
- "transformations": [
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "rs_nm",
- "rowField": "database",
- "valueField": "Value"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "database\\rs_nm": "DB Name",
- "shard0": ""
- }
- }
- }
- ],
- "type": "table"
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 56
- },
- "id": 81,
- "panels": [],
- "title": "Connections",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "description": "TCP connections (Incoming) in mongod processes.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB ReplSet Summary - ${__series.name}",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 57
- },
- "hiddenSeries": false,
- "id": 37,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideEmpty": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Total",
- "color": "#C4162A",
- "fill": 0,
- "legend": false,
- "stack": false
- }
- ],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by (rs_nm) (mongodb_connections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", state=\"current\", rs_nm!=\"\"})",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{rs_nm}}",
- "range": true,
- "refId": "B",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Current Connections Per Shard",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "transformations": [],
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 64
- },
- "hiddenSeries": false,
- "id": 1177,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "maxPerRow": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "sum by (set) (avg by (service_name,set) (mongodb_connections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", state=\"available\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))",
- "hide": false,
- "interval": "",
- "legendFormat": "{{service_name}}",
- "range": true,
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Available Connections",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 71
- },
- "id": 1199,
- "panels": [],
- "title": "Chunks in Shards",
- "type": "row"
- },
- {
- "default_title_for_rows": "Shard Name",
- "description": "A chunk consists of a subset of sharded data.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "filterable": false,
- "inspect": false
- },
- "mappings": [],
- "noValue": "-",
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red"
- }
- ]
- }
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Shard Name"
- },
- "properties": [
- {
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?${cluster:queryparam}&${__value.text}&${interval:queryparam}&${__url_time_range}"
- }
- ]
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 6,
- "x": 0,
- "y": 72
- },
- "hide_headers": false,
- "id": 1200,
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true
- },
- "pluginVersion": "9.2.20",
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- },
- "targets": [
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "avg by (shard) (mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\",db!~\"admin|config\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{shard}} | Chunks",
- "range": false,
- "refId": "A"
- }
- ],
- "title": "Amount of Chunks in Shards",
- "transformations": [
- {
- "id": "organize",
- "options": {
- "excludeByName": {
- "Time": true
- },
- "indexByName": {},
- "renameByName": {
- "Value": "Chunks",
- "shard": "Shard Name"
- }
- }
- }
- ],
- "type": "table"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "The sharding operation creates the initial chunk(s) to cover the entire range of the shard key values. The number of chunks created depends on the configured chunk size. After the initial chunk creation, the balancer migrates these initial chunks across the shards as appropriate as well as manages the chunk distribution going forward.",
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB ReplSet Summary",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 18,
- "x": 6,
- "y": 72
- },
- "hiddenSeries": false,
- "id": 1201,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by (shard) (rate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[$interval]) or irate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{shard}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Dynamic of Chunks",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "cps",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": true,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 80
- },
- "hiddenSeries": false,
- "id": 1216,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": false,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{event}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Chunks Move Events",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": true,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 87
- },
- "hiddenSeries": false,
- "id": 1212,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": false,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{event}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Chunks Split Events",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 94
- },
- "id": 97,
- "panels": [],
- "title": "Replication",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB ReplSet Summary - ${__series.name}",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 95
- },
- "hiddenSeries": false,
- "id": 14,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval])) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m])) by (service_name,set))",
- "hide": false,
- "legendFormat": "__auto",
- "range": true,
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Replication Lag by Shard",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "description": "Timespan 'window' between oldest and newest ops in the Oplog collection.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB ReplSet Summary - ${__series.name}",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 95
- },
- "hiddenSeries": false,
- "id": 27,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "expr": "max(max(mongodb_mongod_replset_oplog_head_timestamp{cluster=\"$cluster\"}-mongodb_mongod_replset_oplog_tail_timestamp{cluster=\"$cluster\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{set}}",
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Oplog Range by Shard",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- }
- ],
- "refresh": false,
- "schemaVersion": 37,
- "style": "dark",
- "tags": [
- "MongoDB_HA",
- "Percona"
- ],
- "templating": {
- "list": [
- {
- "allFormat": "glob",
- "auto": true,
- "auto_count": 200,
- "auto_min": "1s",
- "current": {
- "selected": false,
- "text": "auto",
- "value": "$__auto_interval_interval"
- },
- "datasource": "Metrics",
- "hide": 0,
- "includeAll": false,
- "label": "Interval",
- "multi": false,
- "multiFormat": "glob",
- "name": "interval",
- "options": [
- {
- "selected": true,
- "text": "auto",
- "value": "$__auto_interval_interval"
- },
- {
- "selected": false,
- "text": "1s",
- "value": "1s"
- },
- {
- "selected": false,
- "text": "5s",
- "value": "5s"
- },
- {
- "selected": false,
- "text": "1m",
- "value": "1m"
- },
- {
- "selected": false,
- "text": "5m",
- "value": "5m"
- },
- {
- "selected": false,
- "text": "1h",
- "value": "1h"
- },
- {
- "selected": false,
- "text": "6h",
- "value": "6h"
- },
- {
- "selected": false,
- "text": "1d",
- "value": "1d"
- }
- ],
- "query": "1s,5s,1m,5m,1h,6h,1d",
- "queryValue": "",
- "refresh": 2,
- "skipUrlSync": false,
- "type": "interval"
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
- "hide": 0,
- "includeAll": true,
- "label": "Environment",
- "multi": true,
- "name": "environment",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
- "refId": "Metrics-environment-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "",
- "value": ""
- },
- "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
- "hide": 0,
- "includeAll": false,
- "label": "Cluster",
- "multi": false,
- "multiFormat": "glob",
- "name": "cluster",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
- "hide": 2,
- "includeAll": true,
- "label": "Shard Name",
- "multi": true,
- "name": "shard",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
- "refId": "Metrics-shard-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
- },
- "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
- "hide": 2,
- "includeAll": true,
- "label": "Replica Set",
- "multi": true,
- "name": "set",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)",
- "hide": 2,
- "includeAll": true,
- "label": "Node",
- "multi": true,
- "name": "service_name",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- }
- ]
- },
- "time": {
- "from": "now-12h",
- "to": "now"
- },
- "timepicker": {
- "hidden": false,
- "now": true,
- "refresh_intervals": [
- "1s",
- "5s",
- "1m",
- "5m",
- "1h",
- "6h",
- "1d"
- ],
- "time_options": [
- "5m",
- "15m",
- "1h",
- "6h",
- "12h",
- "24h",
- "2d",
- "7d",
- "30d"
- ]
- },
- "timezone": "browser",
- "title": "MongoDB Sharded Cluster Summary (New)",
- "uid": "mongodb-cluster-summary-new",
- "version": 1,
- "weekStart": ""
-}
diff --git a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json
deleted file mode 100644
index 11d7ff30eb..0000000000
--- a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json
+++ /dev/null
@@ -1,2648 +0,0 @@
-{
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": false,
- "iconColor": "#e0752d",
- "limit": 100,
- "matchAny": true,
- "name": "PMM Annotations",
- "showIn": 0,
- "tags": [
- "pmm_annotation",
- "$service_name"
- ],
- "target": {
- "limit": 100,
- "matchAny": true,
- "tags": [
- "pmm_annotation",
- "$service_name"
- ],
- "type": "tags"
- },
- "type": "tags"
- },
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": true,
- "iconColor": "#6ed0e0",
- "limit": 100,
- "name": "Annotations & Alerts",
- "showIn": 0,
- "tags": [],
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- }
- ]
- },
- "editable": true,
- "fiscalYearStartMonth": 0,
- "graphTooltip": 1,
- "id": 72,
- "links": [
- {
- "icon": "doc",
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "Home"
- ],
- "targetBlank": false,
- "title": "Home",
- "type": "link",
- "url": "/graph/d/pmm-home/home-dashboard"
- },
- {
- "icon": "dashboard",
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "Query Analytics"
- ],
- "targetBlank": false,
- "title": "Query Analytics",
- "type": "link",
- "url": "/graph/d/pmm-qan/pmm-query-analytics"
- },
- {
- "icon": "bolt",
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "Compare"
- ],
- "targetBlank": false,
- "title": "Compare",
- "type": "link",
- "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare"
- },
- {
- "asDropdown": true,
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "MongoDB"
- ],
- "targetBlank": false,
- "title": "MongoDB",
- "type": "dashboards"
- },
- {
- "asDropdown": true,
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "MongoDB_HA"
- ],
- "targetBlank": false,
- "title": "HA",
- "type": "dashboards"
- },
- {
- "asDropdown": true,
- "includeVars": false,
- "keepTime": true,
- "tags": [
- "Services"
- ],
- "targetBlank": false,
- "title": "Services",
- "type": "dashboards"
- },
- {
- "asDropdown": true,
- "includeVars": false,
- "keepTime": true,
- "tags": [
- "PMM"
- ],
- "targetBlank": false,
- "title": "PMM",
- "type": "dashboards"
- }
- ],
- "liveNow": false,
- "panels": [
- {
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 1032,
- "panels": [
- {
- "description": "",
- "gridPos": {
- "h": 4,
- "w": 24,
- "x": 0,
- "y": 1
- },
- "id": 1034,
- "options": {
- "code": {
- "language": "plaintext",
- "showLineNumbers": false,
- "showMiniMap": false
- },
- "content": "#### 🛎️ Important\n\nThis Dashboard is an experimental MongoDB Instance Summary dashboard in Percona Monitoring and Management (PMM) that is not a part of the official PMM deployment and might be updated.\nWe ship this Dashboard to obtain feedback from our users. Once we officially release this Dashboard, it will be moved to the appropriate folder. \n\nTo provide feedback on the Dashboard, please use [our](https://forums.percona.com) forum.🙏",
- "mode": "markdown"
- },
- "pluginVersion": "9.2.20",
- "transparent": true,
- "type": "text"
- }
- ],
- "title": "⚠️ Disclaimer",
- "type": "row"
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 1
- },
- "id": 1030,
- "panels": [],
- "title": "MongoDB Instance Summary",
- "type": "row"
- },
- {
- "backgroundColor": "rgba(128,128,128,0.1)",
- "colorMaps": [
- {
- "color": "rgb(107, 152, 102)",
- "text": "PRIMARY"
- },
- {
- "color": "rgb(193, 159, 20)",
- "text": "SECONDARY"
- }
- ],
- "crosshairColor": "#8F070C",
- "description": "Read more about [Replica Set Member States](https://docs.mongodb.com/manual/reference/replica-states/).",
- "display": "timeline",
- "expandFromQueryS": 0,
- "extendLastValue": true,
- "gridPos": {
- "h": 4,
- "w": 24,
- "x": 0,
- "y": 3
- },
- "highlightOnMouseover": true,
- "id": 1018,
- "legendSortBy": "-ms",
- "lineColor": "rgba(0,0,0,0.1)",
- "metricNameColor": "#000000",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "rowHeight": 50,
- "showDistinctCount": false,
- "showLegend": true,
- "showLegendCounts": false,
- "showLegendNames": true,
- "showLegendPercent": true,
- "showLegendTime": true,
- "showLegendValues": true,
- "showTimeAxis": true,
- "showTransitionCount": false,
- "targets": [
- {
- "expr": "sum by (set) (mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})",
- "interval": "$interval",
- "legendFormat": "{{set}}",
- "refId": "A"
- }
- ],
- "textSize": 24,
- "textSizeTime": 12,
- "timeOptions": [
- {
- "name": "Years",
- "value": "years"
- },
- {
- "name": "Months",
- "value": "months"
- },
- {
- "name": "Weeks",
- "value": "weeks"
- },
- {
- "name": "Days",
- "value": "days"
- },
- {
- "name": "Hours",
- "value": "hours"
- },
- {
- "name": "Minutes",
- "value": "minutes"
- },
- {
- "name": "Seconds",
- "value": "seconds"
- },
- {
- "name": "Milliseconds",
- "value": "milliseconds"
- }
- ],
- "timePrecision": {
- "name": "Minutes",
- "value": "minutes"
- },
- "timeTextColor": "#d8d9da",
- "title": "ReplSet $service_name states",
- "type": "natel-discrete-panel",
- "units": "short",
- "use12HourClock": false,
- "useTimePrecision": false,
- "valueMaps": [
- {
- "op": "=",
- "text": "PRIMARY",
- "value": "1"
- },
- {
- "op": "=",
- "text": "SECONDARY",
- "value": "2"
- },
- {
- "op": "=",
- "text": "STARTUP",
- "value": "0"
- },
- {
- "op": "=",
- "text": "RECOVERING",
- "value": "3"
- },
- {
- "op": "=",
- "text": "STARTUP2",
- "value": "5"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "6"
- },
- {
- "op": "=",
- "text": "ARBITER",
- "value": "7"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "8"
- },
- {
- "op": "=",
- "text": "ROLLBACK",
- "value": "9"
- },
- {
- "op": "=",
- "text": "REMOVED",
- "value": "10"
- }
- ],
- "valueTextColor": "#000000",
- "writeAllValues": false,
- "writeLastValue": true,
- "writeMetricNames": false
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 9,
- "w": 10,
- "x": 0,
- "y": 8
- },
- "hiddenSeries": false,
- "id": 15,
- "legend": {
- "alignAsTable": true,
- "avg": false,
- "current": true,
- "hideZero": false,
- "max": false,
- "min": false,
- "rightSide": true,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "/repl.*/",
- "yaxis": 2
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by (service_name, legacy_op_type) (rate(mongodb_ss_opcountersRepl{service_name=~\"$service_name\", legacy_op_type!~\"(command|query|getmore)\"}[$interval]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "repl_{{legacy_op_type}}",
- "range": true,
- "refId": "A",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "avg by (service_name) (rate(mongodb_ss_metrics_ttl_deletedDocuments{service_name=~\"$service_name\"}[$interval]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "ttl_delete",
- "range": true,
- "refId": "B",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "avg by (service_name, legacy_op_type) (rate(mongodb_ss_opcounters{service_name=~\"$service_name\", legacy_op_type!=\"command\"}[$interval]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{legacy_op_type}}",
- "range": true,
- "refId": "C",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Command Operations",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": "0",
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "description": "Docs per second inserted, updated, deleted or returned. (N.b. not 1-to-1 with operation counts.)",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "continuous-GrYlRd"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 3,
- "x": 10,
- "y": 8
- },
- "id": 36,
- "links": [],
- "options": {
- "displayMode": "lcd",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "expr": "avg by (service_name,state) (rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[5m]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{state}}",
- "refId": "J",
- "step": 300
- }
- ],
- "title": "Document Operations",
- "type": "bargauge"
- },
- {
- "description": "Ratio of Documents returned or Index entries scanned / full documents scanned",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- }
- },
- "links": [],
- "mappings": []
- },
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 3,
- "x": 13,
- "y": 8
- },
- "id": 63,
- "links": [],
- "options": {
- "displayLabels": [
- "percent",
- "name"
- ],
- "legend": {
- "displayMode": "list",
- "placement": "right",
- "showLegend": false,
- "values": []
- },
- "pieType": "donut",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "sum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))/\nsum(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[$interval])) \nor\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[1m]))/\nsum(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[1m]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Document",
- "range": true,
- "refId": "J",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "(sum(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[$interval]))/\nsum(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[$interval])) \nor\nsum(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[1m]))/\nsum(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[1m])))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Index",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Query Efficiency",
- "type": "piechart"
- },
- {
- "description": "Operations queued due to a lock.",
- "fieldConfig": {
- "defaults": {
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 4,
- "x": 16,
- "y": 8
- },
- "id": 40,
- "links": [],
- "options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "expr": "avg by (service_name,type) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{type}}",
- "refId": "J",
- "step": 300
- }
- ],
- "title": "Queued Operations",
- "type": "stat"
- },
- {
- "description": "The parameter shows how long a system has been “up” and running without a shut down or restart.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 2,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 300
- },
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": 3600
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 1,
- "x": 20,
- "y": 8
- },
- "id": 321,
- "interval": "$interval",
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "calculatedInterval": "10m",
- "datasourceErrors": {},
- "errors": {},
- "exemplar": true,
- "expr": "avg by (node_name) (time() - container_start_time_seconds{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) ((node_time_seconds{node_name=~\"$node_name\"} - node_boot_time_seconds{node_name=~\"$node_name\"}) or (time() - node_boot_time_seconds{node_name=~\"$node_name\"}))",
- "format": "time_series",
- "hide": false,
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "",
- "metric": "",
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Uptime",
- "type": "stat"
- },
- {
- "description": "Sum of disk space on all partitions. Note it can be significantly over-reported in some installations",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 2,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 1,
- "x": 21,
- "y": 8
- },
- "id": 333,
- "interval": "$interval",
- "links": [
- {
- "targetBlank": true,
- "title": "Disk Space",
- "url": "/graph/d/node-disk/disk-details?$__url_time_range&$__all_variables"
- }
- ],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by () (container_fs_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or \navg by () (sum(avg(node_filesystem_size_bytes{node_name=~\"$node_name\",fstype=~\"(ext.|xfs|vfat|)\"}) without (mountpoint)) without (device,fstype))",
- "format": "time_series",
- "interval": "5m",
- "intervalFactor": 1,
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Disk Space",
- "type": "stat"
- },
- {
- "description": "RAM (Random Access Memory) is the hardware in a computing device where the operating system, application programs and data in current use are kept so they can be quickly reached by the device's processor.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 2,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 1,
- "x": 22,
- "y": 8
- },
- "id": 327,
- "interval": "$interval",
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "expr": "max by () (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or \nmax by () (node_memory_MemTotal_bytes{node_name=~\"$node_name\"})",
- "format": "time_series",
- "interval": "5m",
- "intervalFactor": 1,
- "refId": "A",
- "step": 300
- }
- ],
- "title": "RAM",
- "type": "stat"
- },
- {
- "description": "Lowest percent of the disk space available",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 2,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#d44a3a",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 5
- },
- {
- "color": "#299c46",
- "value": 20
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 3,
- "x": 20,
- "y": 11
- },
- "id": 335,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by () (min(node_filesystem_free_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"}/node_filesystem_size_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"})*100 or \n(100 - azure_storage_percent_average{node_name=~\"$node_name\"}))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "Min Space Available",
- "type": "stat"
- },
- {
- "description": "This panel shows the number of objects (both data (scanned_objects) and index (scanned)) as well as the number of documents that were moved to a new location due to the size of the document growing. Moved documents only apply to the MMAPv1 storage engine.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "continuous-GrYlRd"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 5,
- "w": 4,
- "x": 16,
- "y": 12
- },
- "id": 64,
- "links": [],
- "options": {
- "displayMode": "lcd",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\"}[5m]))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{state}}",
- "metric": "",
- "refId": "A",
- "step": 300
- },
- {
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_record_moves_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_record_moves_total{service_name=~\"$service_name\"}[5m]))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "moved",
- "refId": "B",
- "step": 300
- }
- ],
- "title": "Scanned and Moved Objects",
- "type": "bargauge"
- },
- {
- "description": "Percent of Memory Available\nNote: on Modern Linux Kernels amount of Memory Available for application is not the same as Free+Cached+Buffers",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 2,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#d44a3a",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 5
- },
- {
- "color": "#299c46",
- "value": 10
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 3,
- "x": 20,
- "y": 14
- },
- "id": 329,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "exemplar": true,
- "expr": "clamp_max(avg by () (container_memory_usage_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"} * 100 / container_spec_memory_limit_bytes{node_name=\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"}),100) or \navg by () (((node_memory_MemAvailable_bytes{node_name=~\"$node_name\"} or (node_memory_MemFree_bytes{node_name=~\"$node_name\"} + node_memory_Buffers_bytes{node_name=~\"$node_name\"} + node_memory_Cached_bytes{node_name=~\"$node_name\"})) / node_memory_MemTotal_bytes{node_name=~\"$node_name\"}) * 100 or (100 - azure_memory_percent_average{node_name=~\"$node_name\"}))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "Memory Available",
- "type": "stat"
- },
- {
- "description": "Show the 5 collections that are most frequently read.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 6,
- "x": 0,
- "y": 17
- },
- "id": 1024,
- "links": [],
- "options": {
- "displayMode": "gradient",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true,
- "text": {}
- },
- "pluginVersion": "9.2.20",
- "repeatDirection": "v",
- "targets": [
- {
- "editorMode": "code",
- "expr": "topk (5,sum by (service_name,database,collection) (irate(mongodb_top_queries_count{service_name=~\"$service_name\"})[$interval]))",
- "hide": false,
- "legendFormat": "ReplicaSet: {{rs_nm}} - DB: {{database}} - Collection: {{collection}}",
- "range": true,
- "refId": "B"
- }
- ],
- "title": "Top 5 Hottest Collections by Read (Rate)",
- "transformations": [],
- "type": "bargauge"
- },
- {
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 5,
- "x": 6,
- "y": 17
- },
- "id": 1028,
- "options": {
- "displayMode": "gradient",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "topk (5,sum by (service_name,database,collection) (irate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[1m]))",
- "instant": false,
- "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0",
- "legendFormat": "{{service_name}} - {{database}} - {{collection}}",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "MongoDB Top Writes",
- "type": "bargauge"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "TCP connections (Incoming)",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 7,
- "x": 11,
- "y": 17
- },
- "height": "250px",
- "hiddenSeries": false,
- "id": 38,
- "legend": {
- "alignAsTable": true,
- "avg": false,
- "current": true,
- "max": false,
- "min": false,
- "rightSide": true,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by (service_name, conn_type) (mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"} or\nmongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"} or\nmongodb_ss_connections{service_name=~\"$service_name\"})",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{conn_type}}",
- "range": true,
- "refId": "J",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Connections",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 2,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 5,
- "x": 18,
- "y": 17
- },
- "hiddenSeries": false,
- "id": 1025,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeatDirection": "h",
- "seriesOverrides": [
- {
- "alias": "Oplog Range",
- "yaxis": 2
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "time()-avg by (service_name) (mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Now to End",
- "metric": "",
- "range": true,
- "refId": "J",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "avg by (service_name) (mongodb_mongod_replset_oplog_head_timestamp{service_name=~\"$service_name\"}-mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Oplog Range",
- "metric": "",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Oplog Recovery Window - $service_name",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "s",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "s",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "s",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Average latency of operations (classified by read, write, or (other) command)",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 11,
- "x": 0,
- "y": 25
- },
- "hiddenSeries": false,
- "id": 1014,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": false,
- "min": false,
- "rightSide": true,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by (service_name,op_type) (rate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[5m]) > 0))",
- "interval": "$interval",
- "legendFormat": "{{op_type}}",
- "range": true,
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Latency Detail",
- "tooltip": {
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "µs",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {
- "Max Core Utilization": "#bf1b00",
- "idle": "#806EB7",
- "iowait": "#E24D42",
- "nice": "#1F78C1",
- "softirq": "#FFF899",
- "steal": "#8F3BB8",
- "system": "#EAB839",
- "user": "#508642"
- },
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "The CPU time is measured in clock ticks or seconds. It is useful to measure CPU time as a percentage of the CPU's capacity, which is called the CPU usage.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 11,
- "y": 25
- },
- "height": "",
- "hiddenSeries": false,
- "id": 337,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "hideEmpty": true,
- "hideZero": true,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Max Core Utilization",
- "lines": false,
- "pointradius": 1,
- "points": true,
- "stack": false
- }
- ],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": true,
- "targets": [
- {
- "expr": "avg by (node_name,mode) (clamp_max(((avg by (mode) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[5m]),1)) ))*100 or (avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode!=\"total\", mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[$interval]) or avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode!=\"total\", mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[5m]))),100))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{ mode }}",
- "refId": "B"
- },
- {
- "expr": "clamp_max(sum(rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or rate(container_cpu_usage_seconds_total{node_name=\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5m])) or\nmax by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) )),1)",
- "format": "time_series",
- "hide": true,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Max Core Utilization",
- "refId": "C"
- },
- {
- "exemplar": true,
- "expr": "clamp_max(avg(rate(container_cpu_system_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval])) or \n((avg by () ((clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"system\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"system\"}[5m]),1)) ))*100 or \n(avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"system\"}[$interval]) or \navg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"system\"}[5m]))),100)",
- "hide": false,
- "interval": "$interval",
- "legendFormat": "system",
- "refId": "A"
- },
- {
- "exemplar": true,
- "expr": "clamp_max(avg(rate(container_cpu_user_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval])) or \n((avg by () ((clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"user\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"user\"}[5m]),1)) ))*100 or \n(avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"user\"}[$interval]) or \navg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"user\"}[5m]))),100)",
- "hide": false,
- "interval": "$interval",
- "legendFormat": "user",
- "refId": "D"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "CPU Usage",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "percent",
- "label": "",
- "logBase": 1,
- "max": "100",
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "min": 0,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {
- "Allocated": "#E0752D",
- "CPU Load": "#64B0C8",
- "IO Load ": "#EA6460",
- "Limit": "#1F78C1",
- "Max CPU Core Utilization": "#bf1b00",
- "Max Core Usage": "#bf1b00",
- "Normalized CPU Load": "#6ED0E0"
- },
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "When a system is running with maximum CPU utilization, the transmitting and receiving threads must all share the available CPU. This will cause data to be queued more frequently to cope with the lack of CPU. CPU Saturation may be measured as the length of a wait queue, or the time spent waiting on the queue.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 32
- },
- "hiddenSeries": false,
- "id": 339,
- "legend": {
- "alignAsTable": true,
- "avg": false,
- "current": true,
- "hideEmpty": false,
- "max": false,
- "min": false,
- "rightSide": false,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Max CPU Core Utilization",
- "lines": false,
- "pointradius": 1,
- "points": true,
- "yaxis": 2
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": true,
- "targets": [
- {
- "calculatedInterval": "2s",
- "datasourceErrors": {},
- "errors": {},
- "exemplar": true,
- "expr": "((sum(avg_over_time(container_processes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]))-1) / avg by () (machine_cpu_cores)) or\navg by () ((avg_over_time(node_procs_running{node_name=~\"$node_name\"}[$interval])-1) / scalar(count(node_cpu_seconds_total{mode=\"user\", node_name=~\"$node_name\"})) or (avg_over_time(node_procs_running{node_name=~\"$node_name\"}[5m])-1) / scalar(count(node_cpu_seconds_total{mode=\"user\", node_name=~\"$node_name\"})))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Normalized CPU Load",
- "metric": "",
- "refId": "B",
- "step": 300,
- "target": ""
- },
- {
- "calculatedInterval": "2s",
- "datasourceErrors": {},
- "errors": {},
- "exemplar": true,
- "expr": "clamp_max(sum(rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or rate(container_cpu_usage_seconds_total{node_name=\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5m])) or\nmax by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) )),1)",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Max CPU Core Utilization",
- "metric": "",
- "refId": "A",
- "step": 300,
- "target": ""
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "CPU Saturation and Max Core Usage",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 0,
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "decimals": 2,
- "format": "percentunit",
- "label": "",
- "logBase": 1,
- "max": "1",
- "min": 0,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Average latency of operations (classified by read, write, or (other) command)",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 7,
- "x": 8,
- "y": 32
- },
- "hiddenSeries": false,
- "id": 1020,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": false,
- "min": false,
- "rightSide": false,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "fc_count",
- "yaxis": 2
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))",
- "interval": "$interval",
- "legendFormat": "fc_count",
- "range": true,
- "refId": "A"
- },
- {
- "editorMode": "code",
- "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))",
- "hide": false,
- "interval": "$interval",
- "legendFormat": "fc_time",
- "range": true,
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Flow Control",
- "tooltip": {
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "µs",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {
- "Swap In (Reads)": "#6ed0e0",
- "Swap Out (Writes)": "#ef843c",
- "Total": "#bf1b00"
- },
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Disk I/O includes read or write or input/output operations involving a physical disk. It is the speed with which the data transfer takes place between the hard disk drive and RAM.\n\nSwap Activity is memory management that involves swapping sections of memory to and from physical storage.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 15,
- "y": 32
- },
- "hiddenSeries": false,
- "id": 341,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "hideEmpty": false,
- "max": false,
- "min": false,
- "rightSide": false,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [
- {
- "targetBlank": true,
- "title": "Disk Performance",
- "url": "/graph/d/node-disk/disk-details?$__url_time_range&$__all_variables"
- }
- ],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Disk Writes (Page Out)",
- "transform": "negative-Y"
- },
- {
- "alias": "Total",
- "legend": false,
- "lines": false
- },
- {
- "alias": "Swap Out (Writes)",
- "transform": "negative-Y"
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": true,
- "targets": [
- {
- "calculatedInterval": "2s",
- "datasourceErrors": {},
- "errors": {},
- "expr": "avg by () (sum(rate(container_fs_reads_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_reads_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or\navg by () (rate(node_vmstat_pgpgin{node_name=\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{node_name=\"$node_name\"}[5m]) * 1024)",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Disk Reads (Page In)",
- "metric": "",
- "refId": "A",
- "step": 300,
- "target": ""
- },
- {
- "calculatedInterval": "2s",
- "datasourceErrors": {},
- "errors": {},
- "expr": "avg by () (sum(rate(container_fs_writes_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or\navg by () ((rate(node_vmstat_pgpgout{node_name=\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{node_name=\"$node_name\"}[5m]) * 1024))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Disk Writes (Page Out)",
- "metric": "",
- "refId": "B",
- "step": 300,
- "target": ""
- },
- {
- "expr": "avg by () (sum(rate(container_fs_reads_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_reads_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]))) + \navg by () (sum(rate(container_fs_writes_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or \navg by () ((rate(node_vmstat_pgpgin{node_name=\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{node_name=\"$node_name\"}[5m]) * 1024 ) + (rate(container_fs_writes_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]))) + \navg by () (sum(rate(container_fs_writes_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or \navg by () ((rate(node_vmstat_pgpgout{node_name=\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{node_name=\"$node_name\"}[5m]) * 1024))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Total",
- "refId": "C"
- },
- {
- "expr": "avg by (node_name) (rate(node_vmstat_pswpin{node_name=\"$node_name\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{node_name=\"$node_name\"}[5m]) * 4096)",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Swap In (Reads)",
- "refId": "D"
- },
- {
- "expr": "avg by () (rate(container_memory_swap{node_name=\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or \nirate(container_memory_swap{node_name=\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5s])) or \navg by () (rate(node_vmstat_pswpout{node_name=\"$node_name\"}[$interval]) * 4096 or \nirate(node_vmstat_pswpout{node_name=\"$node_name\"}[5m]) * 4096)",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Swap Out (Writes)",
- "refId": "E"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Disk I/O and Swap Activity",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "Bps",
- "label": "Page Out (-) / Page In (+)",
- "logBase": 1,
- "show": true
- },
- {
- "format": "bytes",
- "logBase": 1,
- "min": 0,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- }
- ],
- "refresh": "5s",
- "schemaVersion": 37,
- "style": "dark",
- "tags": [
- "MongoDB",
- "Percona"
- ],
- "templating": {
- "list": [
- {
- "allFormat": "glob",
- "auto": true,
- "auto_count": 200,
- "auto_min": "1s",
- "current": {
- "selected": false,
- "text": "auto",
- "value": "$__auto_interval_interval"
- },
- "datasource": "Metrics",
- "hide": 0,
- "includeAll": false,
- "label": "Interval",
- "multi": false,
- "multiFormat": "glob",
- "name": "interval",
- "options": [
- {
- "selected": true,
- "text": "auto",
- "value": "$__auto_interval_interval"
- },
- {
- "selected": false,
- "text": "1s",
- "value": "1s"
- },
- {
- "selected": false,
- "text": "5s",
- "value": "5s"
- },
- {
- "selected": false,
- "text": "1m",
- "value": "1m"
- },
- {
- "selected": false,
- "text": "5m",
- "value": "5m"
- },
- {
- "selected": false,
- "text": "1h",
- "value": "1h"
- },
- {
- "selected": false,
- "text": "6h",
- "value": "6h"
- },
- {
- "selected": false,
- "text": "1d",
- "value": "1d"
- }
- ],
- "query": "1s,5s,1m,5m,1h,6h,1d",
- "queryValue": "",
- "refresh": 2,
- "skipUrlSync": false,
- "type": "interval"
- },
- {
- "allFormat": "blob",
- "allValue": ".*",
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "label": "Cluster",
- "multi": false,
- "multiFormat": "glob",
- "name": "cluster",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up,cluster)",
- "refId": "Metrics-cluster-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "mongo-60-cfg-0",
- "value": "mongo-60-cfg-0"
- },
- "definition": "label_values(mongodb_up{cluster=~\"$cluster\"}, service_name)",
- "hide": 0,
- "includeAll": false,
- "label": "Service Name",
- "multi": false,
- "multiFormat": "glob",
- "name": "service_name",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up{cluster=~\"$cluster\"}, service_name)",
- "refId": "Metrics-service_name-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "mongo-60-cfg-0",
- "value": "mongo-60-cfg-0"
- },
- "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
- "hide": 2,
- "includeAll": false,
- "label": "Node Name",
- "multi": false,
- "multiFormat": "glob",
- "name": "node_name",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
- "refId": "Metrics-node_name-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allValue": ".*",
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
- "hide": 2,
- "includeAll": true,
- "label": "Environment",
- "multi": true,
- "name": "environment",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
- "refId": "Metrics-environment-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
- "hide": 2,
- "includeAll": true,
- "label": "Replication Set",
- "multi": true,
- "name": "replication_set",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
- "refId": "Metrics-replication_set-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
- "hide": 2,
- "includeAll": true,
- "label": "Database",
- "multi": true,
- "name": "database",
- "options": [],
- "query": {
- "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
- "refId": "Metrics-database-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
- "hide": 2,
- "includeAll": true,
- "label": "Type",
- "multi": true,
- "name": "node_type",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
- "refId": "Metrics-node_type-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
- "hide": 2,
- "includeAll": true,
- "label": "Type",
- "multi": true,
- "name": "service_type",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
- "refId": "Metrics-service_type-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)",
- "hide": 2,
- "includeAll": true,
- "label": "Schema",
- "multi": true,
- "name": "schema",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)",
- "refId": "Metrics-schema-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
- "hide": 2,
- "includeAll": true,
- "label": "Username",
- "multi": true,
- "name": "username",
- "options": [],
- "query": {
- "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
- "refId": "Metrics-username-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "mdb60-cluster\",service_id=\"/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91\",service_name=\"mongo-60-cfg-0\",service_type=\"mongodb\",set=\"cfg",
- "value": "mdb60-cluster\",service_id=\"/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91\",service_name=\"mongo-60-cfg-0\",service_type=\"mongodb\",set=\"cfg"
- },
- "definition": "query_result(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})",
- "hide": 2,
- "includeAll": false,
- "label": "Replica Set",
- "multi": false,
- "name": "replset",
- "options": [],
- "query": {
- "query": "query_result(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})",
- "refId": "Metrics-replset-Variable-Query"
- },
- "refresh": 2,
- "regex": "/set=\"(.*)\"/",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91",
- "value": "/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91"
- },
- "definition": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)",
- "hide": 2,
- "includeAll": false,
- "label": "Service ID",
- "multi": false,
- "multiFormat": "glob",
- "name": "service_id",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)",
- "refId": "Metrics-service_id-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "isNone": true,
- "selected": false,
- "text": "None",
- "value": ""
- },
- "definition": "label_values(up{service_name=~\"$service_name\"},service_name)",
- "hide": 2,
- "includeAll": false,
- "label": "",
- "multi": false,
- "name": "pod",
- "options": [],
- "query": {
- "query": "label_values(up{service_name=~\"$service_name\"},service_name)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "/default-(.*-.*)/",
- "skipUrlSync": false,
- "sort": 0,
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- }
- ]
- },
- "time": {
- "from": "now-12h",
- "to": "now"
- },
- "timepicker": {
- "hidden": false,
- "now": true,
- "refresh_intervals": [
- "5s",
- "10s",
- "30s",
- "1m",
- "5m",
- "15m",
- "30m",
- "1h",
- "2h",
- "1d"
- ],
- "time_options": [
- "5m",
- "15m",
- "1h",
- "6h",
- "12h",
- "24h",
- "2d",
- "7d",
- "30d"
- ]
- },
- "timezone": "",
- "title": "MongoDB Instance Summary (new)",
- "uid": "mongodb-instance-summary-new",
- "version": 4,
- "weekStart": ""
-}
diff --git a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json b/dashboards/Experimental/MongoDB_ReplSet_Summary_(Old).json
similarity index 52%
rename from dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
rename to dashboards/Experimental/MongoDB_ReplSet_Summary_(Old).json
index 50290da80f..954706351c 100644
--- a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
+++ b/dashboards/Experimental/MongoDB_ReplSet_Summary_(Old).json
@@ -55,7 +55,6 @@
"editable": false,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
- "id": null,
"links": [
{
"icon": "doc",
@@ -142,140 +141,75 @@
"panels": [
{
"collapsed": false,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
- "id": 1030,
+ "id": 1022,
"panels": [],
- "repeat": "service_name",
- "repeatDirection": "h",
- "title": "Overview - $service_name",
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
+ "title": "Overview",
"type": "row"
},
{
- "description": "Read more about [Replica Set Member States](https://per.co.na/mongo-repstate).",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "fixed"
- },
- "mappings": [
- {
- "options": {
- "0": {
- "index": 11,
- "text": "STARTUP"
- },
- "1": {
- "color": "rgb(107, 152, 102)",
- "index": 4,
- "text": "PRIMARY"
- },
- "2": {
- "color": "rgb(193, 159, 20)",
- "index": 3,
- "text": "SECONDARY"
- },
- "3": {
- "index": 10,
- "text": "RECOVERING"
- },
- "5": {
- "index": 9,
- "text": "STARTUP2"
- },
- "6": {
- "index": 8,
- "text": "UNKNOWN"
- },
- "7": {
- "color": "#8B8000",
- "index": 1,
- "text": "ARBITER"
- },
- "8": {
- "index": 7,
- "text": "DOWN"
- },
- "9": {
- "index": 6,
- "text": "ROLLBACK"
- },
- "10": {
- "index": 5,
- "text": "REMOVED"
- },
- "null": {
- "color": "#FF7383",
- "index": 2,
- "text": "Exporter is not connected"
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- }
- },
- "overrides": []
- },
+ "datasource": "Metrics",
+ "description": "",
"gridPos": {
- "h": 4,
- "w": 2,
+ "h": 3,
+ "w": 5,
"x": 0,
"y": 1
},
- "id": 1586,
+ "id": 1228,
+ "links": [],
"options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "center",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
+ "code": {
+ "language": "plaintext",
+ "showLineNumbers": false,
+ "showMiniMap": false
},
- "textMode": "value"
+ "content": "
",
+ "mode": "html"
},
"pluginVersion": "9.2.20",
"targets": [
{
- "editorMode": "code",
- "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})",
+ "calculatedInterval": "10m",
+ "datasource": "Metrics",
+ "datasourceErrors": {},
+ "errors": {},
+ "expr": "mysql_global_variables_innodb_buffer_pool_size{service_name=~\"$service_name\"} ",
+ "format": "time_series",
"interval": "$interval",
- "legendFormat": "{{set}}",
- "range": true,
- "refId": "A"
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "metric": "",
+ "refId": "A",
+ "step": 300
}
],
- "title": "State",
- "type": "stat"
+ "title": "Cluster Name",
+ "type": "text"
},
{
- "description": "The CPU time is measured in clock ticks or seconds. It is useful to measure CPU time as a percentage of the CPU's capacity, which is called the CPU usage.",
+ "datasource": "Metrics",
+ "description": "This shows how many members are configured in the replica set.",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
},
- "links": [],
+ "decimals": 0,
"mappings": [],
- "max": 100,
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -289,156 +223,25 @@
}
]
},
- "unit": "percent"
+ "unit": "none"
},
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Max Core Utilization"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#bf1b00",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "idle"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#806EB7",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "iowait"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#E24D42",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "nice"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#1F78C1",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "softirq"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#FFFFFF",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "steal"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#8F3BB8",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "system"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#EAB839",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "user"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#508642",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "steal"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#FFEE52",
- "mode": "fixed"
- }
- }
- ]
- }
- ]
+ "overrides": []
},
"gridPos": {
- "h": 4,
- "w": 2.5,
- "x": 2,
+ "h": 3,
+ "w": 4,
+ "x": 5,
"y": 1
},
- "id": 1071,
+ "hideTimeOverride": false,
+ "id": 59,
"links": [],
+ "maxDataPoints": 100,
"options": {
- "orientation": "auto",
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -446,36 +249,38 @@
"fields": "",
"values": false
},
- "showThresholdLabels": false,
- "showThresholdMarkers": true
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
},
"pluginVersion": "9.2.20",
"targets": [
{
- "editorMode": "code",
- "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (100 - (avg by(node_id) (rate(node_cpu_seconds_total{mode=\"idle\"}[1m])) * 100))",
- "format": "time_series",
- "interval": "$interval",
+ "datasource": "Metrics",
+ "expr": "count by (set) (group by (service_name, set) (mongodb_mongod_replset_number_of_members{cluster=~\"$cluster\",set=~\"$replset\"} or mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=~\"$replset\"}))",
+ "interval": "5m",
"intervalFactor": 1,
- "legendFormat": "{{ mode }}",
- "range": true,
- "refId": "B"
+ "legendFormat": "",
+ "metric": "",
+ "refId": "A",
+ "step": 300
}
],
- "title": "CPU Usage",
- "type": "gauge"
+ "title": "ReplSet Members",
+ "type": "stat"
},
{
- "description": "Estimated how much memory can be used without swapping",
+ "datasource": "Metrics",
+ "description": "This shows the time since the last election.",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
},
- "links": [],
+ "decimals": 2,
"mappings": [],
- "max": 100,
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -489,20 +294,25 @@
}
]
},
- "unit": "percentunit"
+ "unit": "s"
},
"overrides": []
},
"gridPos": {
- "h": 4,
- "w": 2.5,
- "x": 4.5,
+ "h": 3,
+ "w": 4,
+ "x": 9,
"y": 1
},
- "id": 1060,
+ "hideTimeOverride": false,
+ "id": 1227,
"links": [],
+ "maxDataPoints": 100,
"options": {
- "orientation": "auto",
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -510,37 +320,38 @@
"fields": "",
"values": false
},
- "showThresholdLabels": false,
- "showThresholdMarkers": true
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
},
"pluginVersion": "9.2.20",
"targets": [
{
- "editorMode": "code",
- "exemplar": false,
- "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (1 - avg by(node_id)(node_memory_MemAvailable_bytes)/ avg by (node_id) (node_memory_MemTotal_bytes))",
- "hide": false,
- "instant": false,
- "legendFormat": "__auto",
- "range": true,
- "refId": "A"
+ "datasource": "Metrics",
+ "expr": "time() - max(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"})",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "metric": "",
+ "refId": "A",
+ "step": 300
}
],
- "title": "Memory Used",
- "type": "gauge"
+ "title": "ReplSet Last Election",
+ "type": "stat"
},
{
- "description": "Shows disk Utilization as a percentage of the time when there was at least one IO request in flight. It is designed to match utilization available in iostat tool. The graph augments the IO latency and Disk Load Graphs, allowing to determine if the disk load was evenly distributed in time or consuming the IO momentarily. Higher utilization increases the likeliness of IO queuing. Always consider this metric along with response time and IO queue depth.",
+ "datasource": "Metrics",
+ "description": "This panel shows how far behind in replication this member is if it is a secondary. This number may be high it the instance is running as a delayed secondary member.",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
},
- "decimals": 1,
- "links": [],
+ "decimals": 2,
"mappings": [],
- "max": 100,
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -554,20 +365,25 @@
}
]
},
- "unit": "percentunit"
+ "unit": "s"
},
"overrides": []
},
"gridPos": {
- "h": 4,
- "w": 2.5,
- "x": 7,
+ "h": 3,
+ "w": 4,
+ "x": 13,
"y": 1
},
- "id": 1073,
+ "hideTimeOverride": true,
+ "id": 77,
"links": [],
+ "maxDataPoints": 100,
"options": {
- "orientation": "auto",
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -575,1465 +391,1859 @@
"fields": "",
"values": false
},
- "showThresholdLabels": false,
- "showThresholdMarkers": true
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
},
"pluginVersion": "9.2.20",
"targets": [
{
- "editorMode": "code",
- "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_disk_io_time_seconds_total[$interval])) or (sum by (node_id) (irate(node_disk_io_time_seconds_total[5m]))))",
+ "datasource": "Metrics",
+ "exemplar": false,
+ "expr": "avg by (set) (max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$service_name\"}[${__range}]))",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
"interval": "$interval",
- "legendFormat": "{{ node_name }}",
- "range": true,
+ "legendFormat": "",
"refId": "B"
}
],
- "title": "Disk IO Utilization",
- "type": "gauge"
+ "timeFrom": "1m",
+ "title": "Avg ReplSet Lag",
+ "type": "stat"
},
{
- "description": "Shows information about the disk space usage of the specified mountpoint.\n\n**Used** is the amount of space used.\n\n**Free** is the amount of space not in use.\n\n**Used+Free** is the total disk space allocated to the mountpoint.\n\nHaving *Free* close to 0 B is not good because of the risk to have a “disk full” error that can block one of the services or even cause a crash of the entire system.\n\nIn case Free is close to 0 B consider to remove unused files or to expand the space allocated to the mountpoint.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "links": [],
- "mappings": [],
- "max": 100,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "percentunit"
- },
- "overrides": []
- },
+ "columns": [],
+ "datasource": "Metrics",
+ "description": "",
+ "fontSize": "100%",
"gridPos": {
- "h": 4,
- "w": 2.5,
- "x": 9.5,
+ "h": 11,
+ "w": 7,
+ "x": 17,
"y": 1
},
- "id": 1062,
- "options": {
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
+ "hideTimeOverride": true,
+ "id": 78,
+ "links": [],
+ "showHeader": true,
+ "sort": {
+ "col": 0,
+ "desc": true
},
- "pluginVersion": "9.2.20",
- "repeatDirection": "h",
- "targets": [
+ "styles": [
{
- "editorMode": "code",
- "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})/ avg (mongodb_dbstats_fsTotalSize{service_name=~\"$service_name\"})",
- "hide": false,
- "interval": "$interval",
- "legendFormat": "Total Size",
- "range": true,
- "refId": "A"
+ "alias": "Time",
+ "align": "auto",
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "pattern": "Time",
+ "type": "hidden"
},
{
- "editorMode": "code",
- "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})",
- "hide": true,
- "interval": "$interval",
- "legendFormat": "Usage",
- "range": true,
- "refId": "C"
- }
- ],
- "title": "Disk Space Utilization",
- "type": "gauge"
- },
- {
- "description": "Shows amount of physical IOs (reads and writes) different devices are serving. Spikes in number of IOs served often corresponds to performance problems due to IO subsystem overload.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "fixed"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
+ "alias": "Service Name",
+ "align": "auto",
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "link": true,
+ "linkTargetBlank": true,
+ "linkTooltip": "MongoDB Instance Summary - ${__cell}",
+ "linkUrl": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__cell}",
+ "mappingType": 1,
+ "pattern": "service_name",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
},
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 4,
- "x": 12,
- "y": 1
- },
- "id": 1076,
- "links": [],
- "options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
+ {
+ "alias": "Version",
+ "align": "auto",
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
],
- "fields": "",
- "values": false
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "mongodb",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
},
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
+ {
+ "alias": "",
+ "align": "auto",
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "Value",
+ "thresholds": [],
+ "type": "hidden",
+ "unit": "short"
+ }
+ ],
"targets": [
{
- "calculatedInterval": "2m",
- "datasourceErrors": {},
- "editorMode": "code",
- "errors": {},
- "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (sum by (node_id)(\n(rate(node_disk_reads_completed_total[$interval]) or \nirate(node_disk_reads_completed_total[5s]))\n)))",
- "format": "time_series",
- "interval": "$interval",
+ "datasource": "Metrics",
+ "exemplar": false,
+ "expr": "avg by (service_name,engine) (mongodb_mongod_storage_engine{service_name=~\"$service_name\"})",
+ "format": "table",
+ "hide": true,
+ "instant": true,
+ "interval": "5m",
"intervalFactor": 1,
- "legendFormat": "Read",
+ "legendFormat": "{{ engine }}",
"metric": "",
- "range": true,
"refId": "A",
- "step": 300,
- "target": ""
+ "step": 300
},
{
- "calculatedInterval": "2m",
- "datasourceErrors": {},
- "editorMode": "code",
- "errors": {},
- "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (sum by(node_id)(\n(rate(node_disk_writes_completed_total[$interval]) or \nirate(node_disk_writes_completed_total[5s])) \n)))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Write",
- "metric": "",
- "range": true,
- "refId": "B",
- "step": 300,
- "target": ""
+ "datasource": "Metrics",
+ "exemplar": false,
+ "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})",
+ "format": "table",
+ "instant": true,
+ "interval": "5m",
+ "legendFormat": "{{mongodb}}",
+ "refId": "B"
}
],
- "title": "Disk IOPS",
- "type": "stat"
+ "timeFrom": "1m",
+ "title": "MongoDB Versions",
+ "transform": "table",
+ "type": "table-old"
},
{
- "description": "Network traffic refers to the amount of data moving across a network at a given point in time.",
+ "datasource": "Metrics",
+ "description": "ReplSet statuses during the select time range.",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
- "mode": "fixed"
+ "mode": "palette-classic"
},
- "decimals": 0,
- "links": [
+ "custom": {
+ "fillOpacity": 100,
+ "lineWidth": 0,
+ "spanNulls": false
+ },
+ "mappings": [
{
- "targetBlank": true,
- "title": "Network Details - ${__field.labels.node_name}",
- "url": "/graph/d/node-network/network-details?var-node_name=${__field.labels.node_name}&$__url_time_range"
+ "options": {
+ "0": {
+ "index": 11,
+ "text": "STARTUP"
+ },
+ "1": {
+ "color": "rgb(107, 152, 102)",
+ "index": 4,
+ "text": "PRIMARY"
+ },
+ "2": {
+ "color": "rgb(193, 159, 20)",
+ "index": 3,
+ "text": "SECONDARY"
+ },
+ "3": {
+ "index": 10,
+ "text": "RECOVERING"
+ },
+ "5": {
+ "index": 9,
+ "text": "STARTUP2"
+ },
+ "6": {
+ "index": 8,
+ "text": "UNKNOWN"
+ },
+ "7": {
+ "color": "#8B8000",
+ "index": 1,
+ "text": "ARBITER"
+ },
+ "8": {
+ "index": 7,
+ "text": "DOWN"
+ },
+ "9": {
+ "index": 6,
+ "text": "ROLLBACK"
+ },
+ "10": {
+ "index": 5,
+ "text": "REMOVED"
+ },
+ "null": {
+ "color": "#FF7383",
+ "index": 2,
+ "text": "Exporter is not connected"
+ }
+ },
+ "type": "value"
+ },
+ {
+ "options": {
+ "from": 0,
+ "result": {
+ "index": 0,
+ "text": "N/A"
+ },
+ "to": 1
+ },
+ "type": "range"
}
],
- "mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
+ },
+ {
+ "color": "red",
+ "value": 6
}
]
},
- "unit": "Bps"
+ "unit": "short"
},
"overrides": []
},
"gridPos": {
- "h": 4,
- "w": 4,
- "x": 16,
- "y": 1
+ "h": 8,
+ "w": 17,
+ "x": 0,
+ "y": 4
},
- "id": 1052,
- "links": [],
+ "id": 1559,
"options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
+ "alignValue": "right",
+ "legend": {
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
},
- "textMode": "auto"
+ "mergeValues": true,
+ "rowHeight": 0.9,
+ "showValue": "auto",
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
},
- "pluginVersion": "9.2.20",
+ "pluginVersion": "6.5.1",
"targets": [
{
- "calculatedInterval": "2s",
- "datasourceErrors": {},
- "editorMode": "code",
- "errors": {},
- "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_network_receive_bytes_total{device!=\"lo\"}[$interval])) or sum by (node_id) (irate(node_network_receive_bytes_total{device!=\"lo\"}[5m])) or sum by (node_id) (max_over_time(rdsosmetrics_network_rx[$interval])) or sum by (node_id) (max_over_time(rdsosmetrics_network_rx[5m])))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Inbound",
- "metric": "",
- "range": true,
- "refId": "B",
- "step": 300,
- "target": ""
- },
- {
- "calculatedInterval": "2s",
- "datasourceErrors": {},
+ "datasource": "Metrics",
"editorMode": "code",
- "errors": {},
- "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_network_transmit_bytes_total{device!=\"lo\"}[$interval])) or sum by (node_id) (irate(node_network_transmit_bytes_total{device!=\"lo\"}[5m])) or\nsum by (node_id) (max_over_time(rdsosmetrics_network_tx[$interval])) or sum by (node_id) (max_over_time(rdsosmetrics_network_tx[5m])))",
+ "exemplar": false,
+ "expr": "max by (service_name) (mongodb_mongod_replset_my_state{set=~\"$replset\",service_name=~\"$service_name\"})",
"format": "time_series",
+ "hide": false,
+ "instant": false,
"interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Outbound",
- "metric": "",
+ "legendFormat": "{{service_name}}",
"range": true,
- "refId": "A",
- "step": 300,
- "target": ""
+ "refId": "A"
}
],
- "title": "Network Traffic",
- "type": "stat"
- },
+ "title": "ReplSet States",
+ "transformations": [],
+ "type": "state-timeline"
+ },
{
- "description": "The parameter shows how long a system has been “up” and running without a shut down or restart.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 1,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 300
- },
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": 3600
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
- "h": 4,
- "w": 2,
- "x": 20,
- "y": 1
- },
- "id": 321,
- "interval": "$interval",
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "text": {},
- "textMode": "auto"
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 12
},
- "pluginVersion": "9.2.20",
- "targets": [
+ "id": 1024,
+ "panels": [
{
- "calculatedInterval": "10m",
- "datasourceErrors": {},
- "editorMode": "code",
- "errors": {},
- "exemplar": true,
- "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (time() - container_start_time_seconds{id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_id) ((node_time_seconds - node_boot_time_seconds) or (time() - node_boot_time_seconds)))",
- "format": "time_series",
- "hide": false,
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "",
- "metric": "",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Uptime",
- "type": "stat"
- },
- {
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
+ "description": "MongoDB replication lag occurs when the secondary node cannot replicate data fast enough to keep up with the rate that data is being written to the primary node. It could be caused by something as simple as network latency, packet loss within your network, or a routing issue.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
- "unit": "string"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 2,
- "x": 22,
- "y": 1
- },
- "id": 1039,
- "interval": "$interval",
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 34
+ },
+ "hiddenSeries": false,
+ "id": 14,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null as zero",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "Avg",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
+ }
],
- "fields": "/^mongodb$/",
- "values": false
- },
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.20",
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) ((max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0) by (service_name,set)) or (max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[5m]) > 0) by (service_name,set)))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{service_name}}",
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) ((max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0) by (service_name,set)) or (max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[5m]) > 0) by (service_name,set)))",
+ "hide": true,
+ "interval": "$interval",
+ "legendFormat": "Avg",
+ "refId": "B"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Replication Lag",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "s",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "s",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ }
+ ],
"targets": [
{
- "calculatedInterval": "10m",
- "datasourceErrors": {},
- "editorMode": "code",
- "errors": {},
- "exemplar": false,
- "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "{{mongodb}}",
- "metric": "",
- "range": false,
- "refId": "A",
- "step": 300
+ "datasource": "Metrics",
+ "refId": "A"
}
],
- "title": "Version",
- "type": "stat"
+ "title": "Replication Lag",
+ "type": "row"
},
{
- "collapsed": false,
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 15
+ "y": 13
},
- "id": 1150,
- "panels": [],
- "title": "States - $rs_nm",
- "type": "row"
- },
- {
- "description": "ReplSet statuses during the selected time range.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "palette-classic"
+ "id": 1019,
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
+ "description": "Operations are classified by legacy wire protocol type (insert, update, and delete only).",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
},
- "custom": {
- "fillOpacity": 100,
- "lineWidth": 0,
- "spanNulls": false
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
- "mappings": [
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 35
+ },
+ "hiddenSeries": false,
+ "id": 1020,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [
{
- "options": {
- "0": {
- "index": 11,
- "text": "STARTUP"
- },
- "1": {
- "color": "rgb(107, 152, 102)",
- "index": 4,
- "text": "PRIMARY"
- },
- "2": {
- "color": "rgb(193, 159, 20)",
- "index": 3,
- "text": "SECONDARY"
- },
- "3": {
- "index": 10,
- "text": "RECOVERING"
- },
- "5": {
- "index": 9,
- "text": "STARTUP2"
- },
- "6": {
- "index": 8,
- "text": "UNKNOWN"
- },
- "7": {
- "color": "#8B8000",
- "index": 1,
- "text": "ARBITER"
- },
- "8": {
- "index": 7,
- "text": "DOWN"
- },
- "9": {
- "index": 6,
- "text": "ROLLBACK"
- },
- "10": {
- "index": 5,
- "text": "REMOVED"
- },
- "null": {
- "color": "#FF7383",
- "index": 2,
- "text": "Exporter is not connected"
- }
- },
- "type": "value"
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - $service_name",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=$service_name$__url_time_range"
+ }
+ ],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name,type) (rate(mongodb_op_counters_repl_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_op_counters_repl_total{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "repl - {{type}}",
+ "refId": "A",
+ "step": 300
},
{
- "options": {
- "from": 0,
- "result": {
- "index": 0,
- "text": "N/A"
- },
- "to": 1
- },
- "type": "range"
+ "datasource": "Metrics",
+ "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_counters_repl_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_op_counters_repl_total{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "repl - {{type}}",
+ "refId": "B"
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name,type) (rate(mongodb_op_counters_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "{{type}}",
+ "refId": "C"
}
],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 6
- }
- ]
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Operations - $service_name",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
},
- "unit": "short"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 6,
- "w": 24,
- "x": 0,
- "y": 16
- },
- "id": 1587,
- "options": {
- "alignValue": "right",
- "legend": {
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "mergeValues": true,
- "rowHeight": 0.9,
- "showValue": "auto",
- "tooltip": {
- "mode": "single",
- "sort": "none"
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
}
- },
- "pluginVersion": "6.5.1",
+ ],
"targets": [
{
- "editorMode": "code",
- "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})",
- "interval": "$interval",
- "legendFormat": "{{set}}",
- "range": true,
+ "datasource": "Metrics",
"refId": "A"
}
],
- "title": "Node States",
- "transformations": [],
- "type": "state-timeline"
+ "title": "Operations",
+ "type": "row"
},
{
- "collapsed": false,
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 22
+ "y": 14
},
"id": 1170,
- "panels": [],
- "title": "Details",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 23
- },
- "hiddenSeries": false,
- "id": 15,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "/repl.*/",
- "yaxis": 2
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by (legacy_op_type) (rate(mongodb_ss_opcountersRepl{service_name=~\"$service_name\", legacy_op_type!~\"(command|query|getmore)\"}[$interval]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "repl_{{legacy_op_type}}",
- "range": true,
- "refId": "A",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "avg by () (rate(mongodb_ss_metrics_ttl_deletedDocuments{service_name=~\"$service_name\"}[$interval]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "ttl_delete ",
- "range": true,
- "refId": "B",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "avg by (legacy_op_type) (rate(mongodb_ss_opcounters{service_name=~\"$service_name\", legacy_op_type!=\"command\"}[$interval]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{legacy_op_type}} ",
- "range": true,
- "refId": "C",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Command Operations",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
+ "panels": [
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": "0",
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "description": "Show the 5 collections that are most frequently read.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "fixed"
+ "description": "This metric can show a correlation with the replication lag value.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
},
- "mappings": [],
- "noValue": "0",
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
- "unit": "ops"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 23
- },
- "id": 1024,
- "links": [],
- "options": {
- "displayMode": "gradient",
- "minVizHeight": 9,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 36
+ },
+ "hiddenSeries": false,
+ "id": 13,
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": false,
+ "max": true,
+ "min": false,
+ "show": true,
+ "sort": "max",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{service_name=~\"$service_name\"})\n* on (name) group_right(state) avg by (service_name,state,name) ((max_over_time(mongodb_mongod_replset_my_name[$interval]) or max_over_time(mongodb_mongod_replset_my_name[5m])))",
+ "format": "time_series",
+ "hide": true,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{service_name}} - {{name}} - {{state}}",
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "max by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{set=~\"$replset\",service_name=~\"$service_name\"}) or mongodb_rs_members_pingMs{service_name=~\"$service_name\", member_state!=\"\"}",
+ "hide": true,
+ "interval": "$interval",
+ "legendFormat": "{{service_name}} - {{name}} - {{state}}",
+ "refId": "B"
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "max by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{set=~\"$replset\",service_name=~\"$service_name\"} or label_replace(label_replace(mongodb_rs_members_pingMs{service_name=~\"$service_name\", member_state!=\"\"},\"state\", \"$1\", \"member_state\", \"(.*)\"),\"name\", \"$1\", \"member_idx\", \"(.*)\"))",
+ "interval": "$interval",
+ "legendFormat": "{{service_name}} - {{name}}{{member_idx}} - {{state}}{{member_state}}",
+ "refId": "D"
+ }
],
- "fields": "",
- "values": false
- },
- "showUnfilled": true,
- "text": {}
- },
- "pluginVersion": "9.2.20",
- "repeatDirection": "v",
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Max Member Ping Time - $service_name",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "ms",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ms",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ }
+ ],
"targets": [
{
- "editorMode": "code",
- "expr": "topk (5, sum by (database,collection) (rate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\",service_name=~\"$service_name\"})[$interval] or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\",service_name=~\"$service_name\"})[5s]))",
- "hide": false,
- "interval": "",
- "legendFormat": "{{database}}.{{collection}}",
- "range": true,
- "refId": "B"
+ "datasource": "Metrics",
+ "refId": "A"
}
],
- "title": "Top Hottest Collections by Read",
- "transformations": [],
- "type": "bargauge"
+ "title": "Max Member Ping Time",
+ "type": "row"
},
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Average latency of operations (classified by read, write, or (other) command)",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
- "h": 8,
- "w": 12,
+ "h": 1,
+ "w": 24,
"x": 0,
- "y": 31
- },
- "hiddenSeries": false,
- "id": 1064,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by (op_type) (rate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[5m]) > 0))",
- "interval": "$interval",
- "legendFormat": "{{op_type}}",
- "range": true,
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Query execution times",
- "tooltip": {
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
+ "y": 15
},
- "yaxes": [
+ "id": 1017,
+ "panels": [
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "format": "µs",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "description": "Show the 5 collections that are most frequently written to.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "blue",
- "mode": "fixed"
+ "description": "Time span between now and last heartbeat from replicaset members.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
- "unit": "ops"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 31
- },
- "id": 1028,
- "options": {
- "displayMode": "gradient",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 37
+ },
+ "hiddenSeries": false,
+ "id": 75,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "time() - avg by (service_name) (max(mongodb_mongod_replset_member_last_heartbeat{service_name=~\"$service_name\"}) by (name)) * on (name) group_right avg by (service_name) (mongodb_mongod_replset_my_name{service_name=~\"$service_name\"})",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{service_name}}",
+ "metric": "",
+ "refId": "J",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (max(mongodb_rs_heartbeatIntervalMillis{service_name=~\"$service_name\"}) by (name) / 1000) * on (name) group_right avg by (service_name) (mongodb_mongod_replset_my_name{service_name=~\"$service_name\"})",
+ "hide": true,
+ "interval": "$interval",
+ "legendFormat": "Interval - {service_name}}",
+ "refId": "B"
+ }
],
- "fields": "",
- "values": false
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Max Heartbeat Time",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "s",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "s",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
- "showUnfilled": true
- },
- "pluginVersion": "9.2.20",
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
+ "description": "Count of elections. Usually zero; 1 count by each healthy node will appear in each election. Happens when the primary role changes due to either normal maintenance or trouble events.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 37
+ },
+ "hiddenSeries": false,
+ "id": 12,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "max by (service_name) (changes(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"}[$interval]))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{service_name}}",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Elections",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ }
+ ],
"targets": [
{
- "editorMode": "code",
- "expr": "topk (5,sum by (database,collection) ((rate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[$interval]) or (irate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[5s])))",
- "instant": false,
- "interval": "",
- "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0",
- "legendFormat": "{{database}}.{{collection}}",
- "range": true,
+ "datasource": "Metrics",
"refId": "A"
}
],
- "title": "Top Hottest Collections by Write",
- "type": "bargauge"
+ "title": "Max Heartbeat Time / Elections",
+ "type": "row"
},
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Ratio of Documents (or Index entries) scanned / documents returned. A value of 1 means all documents returned exactly match query criteria for the sample period. A value of 100 means on average for the sample period, a query scans 100 documents to find one that is returned.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
- "h": 8,
- "w": 12,
+ "h": 1,
+ "w": 24,
"x": 0,
- "y": 39
- },
- "height": "250px",
- "hiddenSeries": false,
- "id": 1066,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
+ "y": 16
},
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "(sum by ()(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[$interval])) /\nsum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))\nor\nsum by ()(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[5m])) /\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[5m])))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Scanned objects / returned",
- "range": true,
- "refId": "J",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "(sum by ()(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[$interval])) /\nsum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))\nor\nsum by ()(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[5m])) /\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[5m])))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Scanned idx / returned",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Query Efficiency",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": "none",
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "",
- ""
- ],
- "yaxes": [
+ "id": 1547,
+ "panels": [
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "format": "",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "",
- "logBase": 1,
- "show": false
+ "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 38
+ },
+ "hiddenSeries": false,
+ "id": 27,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [
+ {
+ "alias": "Oplog Range",
+ "yaxis": 2
+ }
+ ],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "time()-avg by (service_name) (mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Now to End",
+ "metric": "",
+ "refId": "J",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (mongodb_mongod_replset_oplog_head_timestamp{service_name=~\"$service_name\"}-mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Oplog Range",
+ "metric": "",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Oplog Recovery Window - $service_name",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "s",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "s",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "s",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
}
],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Operations queued due to a lock.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 39
- },
- "height": "250px",
- "hiddenSeries": false,
- "id": 1036,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
"targets": [
{
- "editorMode": "code",
- "expr": "max by (type) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{type}}",
- "range": true,
- "refId": "J",
- "step": 300
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 0,
- "yaxis": "left"
- }
- ],
- "timeRegions": [],
- "title": "Queued Operations",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
+ "datasource": "Metrics",
+ "refId": "A"
}
],
- "yaxis": {
- "align": false
- }
+ "title": "Oplog Recovery Window",
+ "type": "row"
},
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
- "h": 8,
- "w": 12,
+ "h": 1,
+ "w": 24,
"x": 0,
- "y": 47
- },
- "height": "250px",
- "hiddenSeries": false,
- "id": 1067,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
+ "y": 17
},
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null as zero",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": true,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "avg by() (mongodb_ss_globalLock_activeClients_readers{service_name=~\"$service_name\"})",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Active Readers",
- "range": true,
- "refId": "J",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "avg by() (mongodb_ss_globalLock_activeClients_writers{service_name=~\"$service_name\"})",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Active Writers",
- "range": true,
- "refId": "A",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "avg by() (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"readers\"})",
- "hide": false,
- "legendFormat": "Queued Readers",
- "range": true,
- "refId": "B"
- },
- {
- "editorMode": "code",
- "expr": "avg by() (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"writers\"})",
- "hide": false,
- "interval": "",
- "legendFormat": "Queued Writers",
- "range": true,
- "refId": "C"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Reads & Writes",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "format": "none",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
+ "id": 1070,
+ "panels": [
{
- "format": "none",
- "logBase": 1,
- "show": false
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
+ "description": "Repl buffer ops applied per sec.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 100
+ },
+ "hiddenSeries": false,
+ "id": 85,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_count{service_name=~\"$service_name\"})",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{service_name}}",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Oplog Buffered Operations",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "ms",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
+ "description": "Time spent per second waiting for or fetching oplog docs in replication.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 100
+ },
+ "hiddenSeries": false,
+ "id": 79,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{service_name}}",
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Oplog Getmore Time",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "ms",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ms",
+ "label": "",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
+ "description": "Times spent per second A) pre-loading oplog ops into parallel-executable batches B) Times spent pre-loading index values and C) repl batch apply phase.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 108
+ },
+ "hiddenSeries": false,
+ "id": 84,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Document Preload",
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Index Preload",
+ "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds",
+ "refId": "B",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Batch Apply",
+ "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds",
+ "refId": "C",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Oplog Processing Time - $service_name",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "ms",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ms",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
+ "description": "Current hard-coded max and actual size of repl batch buffer.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 116
+ },
+ "hiddenSeries": false,
+ "id": 80,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [
+ {
+ "alias": "Max",
+ "color": "#C4162A",
+ "fill": 0
+ }
+ ],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_size_bytes{service_name=~\"$service_name\"})",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Used",
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_max_size_bytes{service_name=~\"$service_name\"})",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Max",
+ "refId": "B",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Oplog Buffer Capacity - $service_name",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "ms",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "bytes",
+ "label": "",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
+ "description": "Count of A) getmores executed B) index values pre-loaded C) oplog docs applied per second against oplog collection in replication.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
+ }
+ ]
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 124
+ },
+ "hiddenSeries": false,
+ "id": 81,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "8.3.5",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_docs_num_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_num_total{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Document Preload",
+ "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total",
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_indexes_num_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_num_total{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Index Preload",
+ "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total",
+ "refId": "B",
+ "step": 300
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_apply_ops_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_ops_total{service_name=~\"$service_name\"}[5m]))",
+ "interval": "$interval",
+ "intervalFactor": 2,
+ "legendFormat": "Batch Apply",
+ "refId": "C",
+ "step": 120
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Oplog Operations - $service_name",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "ms",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
}
],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "description": "MongoDB Connections",
- "fieldConfig": {
- "defaults": {
- "links": [],
- "unit": "none"
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 47
- },
- "hiddenSeries": false,
- "id": 1074,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true,
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
"targets": [
{
- "editorMode": "code",
- "expr": "avg by () (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"current\"})",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Current",
- "range": true,
- "refId": "J",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "avg by() (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"available\"})",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Available",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Connections",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "none",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
+ "datasource": "Metrics",
+ "refId": "A"
}
],
- "yaxis": {
- "align": false
- }
+ "title": "Oplog Details",
+ "type": "row"
},
{
"collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 55
+ "y": 18
},
- "id": 1056,
+ "id": 1306,
"panels": [
{
- "default_title_for_rows": "DB Name",
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
+ "collapsed": false,
+ "datasource": "Metrics",
+ "default_title_for_rows": "Service Name",
"fieldConfig": {
"defaults": {
"color": {
@@ -2041,230 +2251,128 @@
"mode": "thresholds"
},
"custom": {
- "align": "left",
+ "align": "center",
"displayMode": "auto",
- "filterable": true,
+ "filterable": false,
"inspect": false
},
+ "decimals": 2,
"mappings": [
{
"options": {
"0": {
- "color": "dark-blue",
+ "color": "#8b0000",
"index": 0,
- "text": "0"
+ "text": "No Data"
+ },
+ "-": {
+ "index": 1,
+ "text": "No Data"
}
},
"type": "value"
}
],
- "noValue": "N/A",
+ "noValue": "-",
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "red"
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
- },
- "unit": "bytes"
+ }
},
"overrides": [
{
"matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
+ "id": "byName",
+ "options": "Value #E"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "dark-blue",
- "mode": "fixed"
- }
- },
- {
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
- }
- ]
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
}
]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 11,
- "x": 0,
- "y": 56
- },
- "hide_headers": false,
- "id": 1043,
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "frameIndex": 0,
- "showHeader": true,
- "sortBy": [
+ },
{
- "desc": false,
- "displayName": "DB Name\\Value"
- }
- ]
- },
- "pluginVersion": "9.2.20",
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- },
- "targets": [
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "max by (environment,cluster,rs_nm,database,collection,service_name) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{collection}}",
- "range": false,
- "refId": "A"
- }
- ],
- "title": "Size of Collections",
- "transformations": [
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "shard",
- "rowField": "db",
- "valueField": "Value"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {
- "Time": true,
- "cluster": true,
- "environment": false,
- "rs_nm": true
- },
- "indexByName": {
- "Time": 0,
- "Value": 6,
- "cluster": 1,
- "collection": 4,
- "database": 3,
- "rs_nm": 5,
- "service_name": 2
+ "matcher": {
+ "id": "byName",
+ "options": "service_name"
},
- "renameByName": {
- "Value": "Size",
- "database": "DB Name",
- "db\\shard": "DB Name",
- "rs1": "",
- "service_name": "Node"
- }
- }
- }
- ],
- "type": "table"
- },
- {
- "collapsed": false,
- "default_title_for_rows": "DB Name",
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "transparent",
- "mode": "fixed"
+ "properties": [
+ {
+ "id": "custom.align",
+ "value": "left"
+ }
+ ]
},
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "filterable": true,
- "inspect": false
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #C"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "s"
+ }
+ ]
},
- "mappings": [
- {
- "options": {
- "0": {
- "color": "dark-blue",
- "index": 0
- }
- },
- "type": "value"
- }
- ],
- "noValue": "N/A",
- "thresholds": {
- "mode": "absolute",
- "steps": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #B"
+ },
+ "properties": [
{
- "color": "red"
+ "id": "unit",
+ "value": "µs"
}
]
- }
- },
- "overrides": [
+ },
{
"matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
+ "id": "byName",
+ "options": "Value #D"
},
"properties": [
{
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
+ "id": "decimals"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #A"
+ },
+ "properties": [
{
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
- }
- ]
+ "id": "unit",
+ "value": "ops"
}
]
}
]
},
"gridPos": {
- "h": 8,
- "w": 13,
- "x": 11,
- "y": 56
+ "h": 10,
+ "w": 24,
+ "x": 0,
+ "y": 101
},
- "id": 1045,
+ "id": 1352,
"options": {
"footer": {
- "enablePagination": true,
- "fields": "",
- "reducer": [
- "sum"
- ],
"show": false
},
- "frameIndex": 0,
- "showHeader": true,
- "sortBy": [
- {
- "desc": false,
- "displayName": "DB Name\\Value"
- }
- ]
+ "showHeader": true
},
"pluginVersion": "9.2.20",
"sorting_props": {
@@ -2273,79 +2381,123 @@
},
"targets": [
{
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "avg by (service_name) (mongodb_instance_uptime_seconds{service_name=~\"$service_name\"})",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{service_name}} | Uptime",
+ "range": false,
+ "refId": "C"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sum by (service_name) (rate(mongodb_mongod_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_mongod_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m]) or rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m]))",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{service_name}} | QPS",
+ "range": false,
+ "refId": "A"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "avg by (service_name) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\",type=\"command\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\",type=\"command\"}[$interval]) > 0) or\nirate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\",type=\"command\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\",type=\"command\"}[5m]) > 0))",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{service_name}} | Latency",
+ "range": false,
+ "refId": "B"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "avg by (service_name) (max_over_time(mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or \nmax_over_time(mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"}[5m]) or\nmax_over_time(mongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or\nmax_over_time(mongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"}[5m]) or\nmax_over_time(mongodb_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or\nmax_over_time(mongodb_connections{service_name=~\"$service_name\", state=\"current\"}[5m]))",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{service_name}} | Connections",
+ "range": false,
+ "refId": "D"
+ },
+ {
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
- "expr": "max by (environment,cluster,rs_nm,database,service_name) (mongodb_mongod_db_collections_total{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\"})",
+ "expr": "avg by (service_name) (max_over_time(mongodb_mongod_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[$interval]) or \nmax_over_time(mongodb_mongos_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{service_name=~\"$service_name\",state=\"total\"}[5m]))",
"format": "table",
- "hide": false,
"instant": true,
"interval": "$interval",
- "legendFormat": "__auto",
- "range": false,
- "refId": "A"
+ "legendFormat": "{{service_name}} | Cursors ",
+ "refId": "E"
}
],
- "title": "Number of Collections",
+ "title": "Services Details",
"transformations": [
+ {
+ "id": "merge",
+ "options": {}
+ },
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
- "cluster": true,
- "rs_nm": true
+ "agent_id": true,
+ "agent_type": true,
+ "environment": true,
+ "instance": true,
+ "job": true,
+ "machine_id": true,
+ "node_id": true,
+ "node_name": true,
+ "node_type": true,
+ "service_name": false
},
"indexByName": {
"Time": 0,
- "Value": 5,
- "cluster": 1,
- "database": 3,
- "rs_nm": 4,
- "service_name": 2
+ "Value #A": 6,
+ "Value #B": 4,
+ "Value #C": 3,
+ "Value #D": 5,
+ "Value #E": 2,
+ "service_name": 1
},
"renameByName": {
- "1710776522937": "",
- "Value": "Count",
- "database": "DB Name",
- "service_name": "Node"
+ "Value #A": "QPS",
+ "Value #B": "Average Latency",
+ "Value #C": "Uptime",
+ "Value #D": "Open Connections",
+ "Value #E": "Cursors",
+ "service_name": "Service Name"
}
}
}
],
"type": "table"
- }
- ],
- "title": "Collection Details",
- "type": "row"
- },
- {
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 56
- },
- "id": 1049,
- "panels": [
+ },
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "description": "MongoDB replication lag occurs when the secondary node cannot replicate data fast enough to keep up with the rate that data is being written to the primary node. It could be caused by something as simple as network latency, packet loss within your network, or a routing issue.",
+ "description": "Average latency of operations (classified by read, write, or (other) command).",
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__series.name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
- }
- ]
+ "links": []
},
"overrides": []
},
@@ -2357,13 +2509,14 @@
"rightLogBase": 1
},
"gridPos": {
- "h": 7,
- "w": 12,
+ "h": 8,
+ "w": 24,
"x": 0,
- "y": 57
+ "y": 107
},
+ "height": "250px",
"hiddenSeries": false,
- "id": 1038,
+ "id": 1558,
"legend": {
"alignAsTable": true,
"avg": true,
@@ -2380,52 +2533,38 @@
"lines": true,
"linewidth": 2,
"links": [],
- "nullPointMode": "null as zero",
+ "nullPointMode": "null",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.2.20",
+ "pluginVersion": "8.3.5",
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Avg",
- "color": "#C4162A",
- "fill": 0,
- "legend": false,
- "stack": false
- }
- ],
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
- "editorMode": "code",
- "expr": "max_over_time(mongodb_mongod_replset_member_replication_lag{environment=~\"$environment\",cluster=~\"$cluster\",set=\"$rs_nm\",service_name=~\"$secondary\"}[$interval]) > 0 ",
+ "datasource": "Metrics",
+ "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[5m]) > 0))",
+ "format": "time_series",
+ "hide": false,
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "{{service_name}}",
- "range": true,
- "refId": "A",
+ "legendFormat": "{{type}}",
+ "refId": "J",
"step": 300
}
],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": false,
- "line": true,
- "op": "gt",
- "value": 10,
- "yaxis": "left"
- }
- ],
+ "thresholds": [],
"timeRegions": [],
- "title": "Replication Lag",
+ "title": "Latency Detail - $service_name",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -2441,13 +2580,13 @@
},
"y-axis": true,
"y_formats": [
- "s",
+ "short",
"short"
],
"yaxes": [
{
"decimals": 2,
- "format": "s",
+ "format": "µs",
"label": "",
"logBase": 1,
"min": 0,
@@ -2468,19 +2607,14 @@
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.",
+ "description": "Docs per second inserted, updated, deleted or returned. (N.b. not 1-to-1 with operation counts.)",
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__series.name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
- }
- ]
+ "links": []
},
"overrides": []
},
@@ -2492,13 +2626,14 @@
"rightLogBase": 1
},
"gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 57
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 115
},
+ "height": "250px",
"hiddenSeries": false,
- "id": 1025,
+ "id": 1397,
"legend": {
"alignAsTable": true,
"avg": true,
@@ -2515,45 +2650,38 @@
"lines": true,
"linewidth": 2,
"links": [],
- "nullPointMode": "null as zero",
+ "nullPointMode": "null",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.2.20",
+ "pluginVersion": "8.3.5",
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Avg",
- "color": "#C4162A",
- "fill": 0,
- "legend": false,
- "stack": false
- }
- ],
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
- "editorMode": "code",
- "expr": "mongodb_mongod_replset_oplog_head_timestamp{service_name=~\"$service_name\"}-mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"}",
+ "datasource": "Metrics",
+ "expr": "avg by (service_name,state) (rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[5m]))",
+ "format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "{{ service_name }}",
- "metric": "",
- "range": true,
- "refId": "A",
+ "legendFormat": "{{state}}",
+ "refId": "J",
"step": 300
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Oplog Recovery Window",
+ "title": "Document Operations - $service_name",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -2569,13 +2697,13 @@
},
"y-axis": true,
"y_formats": [
- "s",
+ "short",
"short"
],
"yaxes": [
{
"decimals": 2,
- "format": "s",
+ "format": "ops",
"label": "",
"logBase": 1,
"min": 0,
@@ -2590,157 +2718,39 @@
"yaxis": {
"align": false
}
- }
- ],
- "title": "Replication",
- "type": "row"
- },
- {
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 57
- },
- "id": 1054,
- "panels": [
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Average latency of operations (classified by read, write, or (other) command)",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 58
- },
- "hiddenSeries": false,
- "id": 1020,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "/fc_count.*/",
- "yaxis": 2
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "editorMode": "code",
- "expr": "max(rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))",
- "interval": "$interval",
- "legendFormat": "fc_count",
- "range": true,
- "refId": "A"
- },
- {
- "editorMode": "code",
- "expr": "max(rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))",
- "hide": false,
- "interval": "$interval",
- "legendFormat": "fc_time",
- "range": true,
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Flow Control",
- "tooltip": {
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "µs",
- "label": "",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "description": "A WT 'ticket' is assigned out for every operation running simultaneously in the WT storage engine. \"Available\" = hardcoded high value - \"Out\".",
+ "description": "MongoDB keeps most recently used data in RAM. If you have created indexes for your queries and your working data set fits in RAM, MongoDB serves all queries from memory.",
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {
- "links": [],
- "unit": "none"
+ "links": []
},
"overrides": []
},
"fill": 2,
"fillGradient": 0,
- "grid": {},
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
"gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 58
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 123
},
+ "height": "250px",
"hiddenSeries": false,
- "id": 1041,
+ "id": 1012,
"legend": {
"alignAsTable": true,
"avg": true,
@@ -2763,47 +2773,53 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.2.20",
+ "pluginVersion": "8.3.5",
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "write",
- "transform": "negative-Y"
- }
- ],
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
- "editorMode": "code",
- "expr": "avg by (type) ((max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[5m])) -\n(max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[5m])))",
+ "datasource": "Metrics",
+ "expr": "rate(mongodb_tcmalloc_cache_bytes{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_tcmalloc_cache_bytes{service_name=~\"$service_name\"}[5m])",
+ "format": "time_series",
+ "hide": false,
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "read",
- "metric": "",
- "range": true,
- "refId": "B",
+ "legendFormat": "{{cache}} - {{type}}",
+ "refId": "J",
"step": 300
},
{
- "editorMode": "code",
- "expr": "avg by (type) ((max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[5m])) -\n(max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[5m])))",
- "hide": false,
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_thread_cache_free_bytes{service_name=~\"$service_name\"})",
+ "interval": "$interval",
+ "legendFormat": "Free Thread Cache",
+ "refId": "A"
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_central_cache_free_bytes{service_name=~\"$service_name\"})",
+ "interval": "$interval",
+ "legendFormat": "Free Central Cache",
+ "refId": "B"
+ },
+ {
+ "datasource": "Metrics",
+ "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_transfer_cache_free_bytes{service_name=~\"$service_name\"})",
"interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "write",
- "metric": "",
- "range": true,
- "refId": "A",
- "step": 300
+ "legendFormat": "Free Transfer Cache",
+ "refId": "C"
}
],
"thresholds": [],
"timeRegions": [],
- "title": "WiredTiger Concurrency Tickets Available",
+ "title": "Cache - $service_name",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -2811,17 +2827,24 @@
"value_type": "cumulative"
},
"type": "graph",
+ "x-axis": true,
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
"yaxes": [
{
- "decimals": 0,
- "format": "none",
+ "decimals": 2,
+ "format": "bytes",
"label": "",
"logBase": 1,
+ "min": 0,
"show": true
},
{
@@ -2835,9 +2858,13 @@
}
}
],
- "repeat": "service_name",
- "repeatDirection": "h",
- "title": "Performance - $service_name",
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
+ "title": "MongoDB Services Summary",
"type": "row"
},
{
@@ -2847,7 +2874,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 60
+ "y": 19
},
"id": 1403,
"panels": [
@@ -2890,7 +2917,8 @@
"mode": "absolute",
"steps": [
{
- "color": "red"
+ "color": "red",
+ "value": null
},
{
"color": "orange",
@@ -2916,15 +2944,6 @@
},
{
"id": "custom.width"
- },
- {
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/node-instance-summary/node-summary?orgId=1&${interval:queryparam}&var-region=All&var-node_type=All&var-environment=All&var-node_name=${__value.text}&${__url_time_range}"
- }
- ]
}
]
},
@@ -3038,7 +3057,7 @@
"h": 7,
"w": 24,
"x": 0,
- "y": 61
+ "y": 9
},
"id": 1435,
"options": {
@@ -3204,7 +3223,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 61
+ "y": 20
},
"id": 1569,
"panels": [
@@ -3240,7 +3259,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 62
+ "y": 10
},
"height": "",
"hiddenSeries": false,
@@ -3372,7 +3391,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 62
+ "y": 21
},
"id": 1571,
"panels": [
@@ -3407,7 +3426,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 63
+ "y": 11
},
"hiddenSeries": false,
"id": 339,
@@ -3531,7 +3550,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 63
+ "y": 22
},
"id": 1585,
"panels": [
@@ -3562,7 +3581,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 64
+ "y": 35
},
"hiddenSeries": false,
"id": 341,
@@ -3721,7 +3740,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 64
+ "y": 23
},
"id": 1583,
"panels": [
@@ -3748,7 +3767,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 65
+ "y": 36
},
"hiddenSeries": false,
"id": 343,
@@ -3860,11 +3879,10 @@
"type": "row"
}
],
- "refresh": "",
+ "refresh": "1m",
"schemaVersion": 37,
"style": "dark",
"tags": [
- "MongoDB_HA",
"Percona"
],
"templating": {
@@ -3929,58 +3947,56 @@
}
],
"query": "1s,5s,1m,5m,1h,6h,1d",
- "queryValue": "",
"refresh": 2,
"skipUrlSync": false,
"type": "interval"
},
{
- "allValue": ".*",
+ "allFormat": "blob",
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
- "value": ""
+ "text": "igtest",
+ "value": "igtest"
},
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
+ "datasource": "Metrics",
+ "definition": "label_values(mongodb_up,cluster)",
"hide": 0,
"includeAll": false,
- "label": "Environment",
+ "label": "Cluster",
"multi": false,
- "name": "environment",
+ "multiFormat": "glob",
+ "name": "cluster",
"options": [],
"query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
- "refId": "Metrics-environment-Variable-Query"
+ "query": "label_values(mongodb_up,cluster)",
+ "refId": "Metrics-cluster-Variable-Query"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
"type": "query",
"useTags": false
},
{
- "allFormat": "blob",
- "allValue": ".*",
+ "allFormat": "glob",
"current": {
"selected": false,
- "text": "",
- "value": ""
+ "text": "shard0",
+ "value": "shard0"
},
- "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
+ "datasource": "Metrics",
+ "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
"hide": 0,
"includeAll": false,
- "label": "Cluster",
+ "label": "Replica Set",
"multi": false,
"multiFormat": "glob",
- "name": "cluster",
+ "name": "replset",
"options": [],
"query": {
- "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
- "refId": "StandardVariableQuery"
+ "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
+ "refId": "Metrics-replset-Variable-Query"
},
"refresh": 2,
"regex": "",
@@ -3990,46 +4006,60 @@
"useTags": false
},
{
+ "allFormat": "glob",
"current": {
- "selected": false,
- "text": "",
- "value": ""
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
- "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
+ "datasource": "Metrics",
+ "definition": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)",
"hide": 0,
- "includeAll": false,
- "label": "Replica Set",
- "multi": false,
- "name": "rs_nm",
+ "includeAll": true,
+ "label": "Node Name",
+ "multi": true,
+ "multiFormat": "glob",
+ "name": "node_name",
"options": [],
"query": {
- "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
- "refId": "StandardVariableQuery"
+ "query": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)",
+ "refId": "Metrics-node_name-Variable-Query"
},
- "refresh": 1,
+ "refresh": 2,
"regex": "",
"skipUrlSync": false,
- "sort": 0,
- "type": "query"
+ "sort": 5,
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
},
{
"allFormat": "glob",
"current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
- "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)",
+ "datasource": "Metrics",
+ "definition": "",
"hide": 0,
"includeAll": true,
- "label": "MongoDB Node",
- "multi": false,
+ "label": "Service Name",
+ "multi": true,
"multiFormat": "glob",
"name": "service_name",
"options": [],
"query": {
- "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)",
- "refId": "StandardVariableQuery"
+ "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}, service_name)",
+ "refId": "Metrics-service_name-Variable-Query"
},
"refresh": 2,
"regex": "",
@@ -4040,31 +4070,29 @@
"useTags": false
},
{
- "allFormat": "glob",
+ "allValue": ".*",
"current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
},
- "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
"hide": 2,
"includeAll": true,
- "label": "Node Name",
+ "label": "Environment",
"multi": true,
- "name": "node_name",
+ "name": "environment",
"options": [],
"query": {
- "query": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
- "refId": "Metrics-node_name-Variable-Query"
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
+ "refId": "Metrics-environment-Variable-Query"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
+ "tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
@@ -4072,24 +4100,191 @@
{
"current": {
"selected": false,
- "text": "",
- "value": ""
+ "text": "All",
+ "value": "$__all"
},
- "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)",
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
"hide": 2,
- "includeAll": false,
+ "includeAll": true,
+ "label": "Replication Set",
"multi": true,
- "name": "secondary",
+ "name": "replication_set",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
+ "refId": "Metrics-replication_set-Variable-Query"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Database",
+ "multi": true,
+ "name": "database",
+ "options": [],
+ "query": {
+ "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
+ "refId": "Metrics-database-Variable-Query"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Type",
+ "multi": true,
+ "name": "node_type",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
+ "refId": "Metrics-node_type-Variable-Query"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Type",
+ "multi": true,
+ "name": "service_type",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
+ "refId": "Metrics-service_type-Variable-Query"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Schema",
+ "multi": true,
+ "name": "schema",
+ "options": [],
+ "query": {
+ "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)",
+ "refId": "Metrics-schema-Variable-Query"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Username",
+ "multi": true,
+ "name": "username",
"options": [],
"query": {
- "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)",
- "refId": "StandardVariableQuery"
+ "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
+ "refId": "Metrics-username-Variable-Query"
},
"refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "datasource": "Metrics",
+ "definition": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "Secondary",
+ "multi": true,
+ "name": "secondary",
+ "options": [],
+ "query": {
+ "query": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)",
+ "refId": "Metrics-secondary-Variable-Query"
+ },
+ "refresh": 2,
"regex": "/.*service_name=\"(.*)\",service_type.*/",
"skipUrlSync": false,
"sort": 0,
- "type": "query"
+ "tagValuesQuery": "",
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
}
]
},
@@ -4101,12 +4296,15 @@
"hidden": false,
"now": true,
"refresh_intervals": [
- "1s",
"5s",
+ "10s",
+ "30s",
"1m",
"5m",
+ "15m",
+ "30m",
"1h",
- "6h",
+ "2h",
"1d"
],
"time_options": [
@@ -4121,9 +4319,9 @@
"30d"
]
},
- "timezone": "browser",
- "title": "MongoDB ReplSet Summary_(New)",
- "uid": "mongodb-replset-summary-new",
+ "timezone": "",
+ "title": "MongoDB ReplSet Summary (Old)",
+ "uid": "mongodb-replicaset-summary_old",
"version": 1,
"weekStart": ""
}
diff --git a/dashboards/MongoDB/MongoDB_Cluster_Summary.json b/dashboards/MongoDB/MongoDB_Cluster_Summary.json
index a6236c7153..cdae8309ac 100644
--- a/dashboards/MongoDB/MongoDB_Cluster_Summary.json
+++ b/dashboards/MongoDB/MongoDB_Cluster_Summary.json
@@ -3,7 +3,10 @@
"list": [
{
"builtIn": 1,
- "datasource": "-- Grafana --",
+ "datasource": {
+ "type": "datasource",
+ "uid": "grafana"
+ },
"enable": true,
"hide": false,
"iconColor": "#e0752d",
@@ -26,7 +29,10 @@
},
{
"builtIn": 1,
- "datasource": "-- Grafana --",
+ "datasource": {
+ "type": "datasource",
+ "uid": "grafana"
+ },
"enable": true,
"hide": true,
"iconColor": "#6ed0e0",
@@ -48,7 +54,6 @@
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
- "iteration": 1656415942746,
"links": [
{
"icon": "doc",
@@ -147,7 +152,81 @@
"type": "row"
},
{
- "description": "Sharding is a method for distributing data across multiple machines. MongoDB uses sharding to support deployments with very large data sets and high throughput operations.",
+ "description": "Queries per second of all shards + config server replica set",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ },
+ "decimals": 0,
+ "links": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?${cluster:queryparam}&var-rs_nm=${__field.labels.rs_nm}&${interval:queryparam}&${__url_time_range}&${environment:queryparam}"
+ }
+ ],
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
+ },
+ "unit": "ops"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 5,
+ "w": 24,
+ "x": 0,
+ "y": 1
+ },
+ "id": 1227,
+ "options": {
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
+ },
+ "pluginVersion": "9.2.20",
+ "targets": [
+ {
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sum by (rs_nm) (rate(mongodb_op_counters_total{environment=~\"$environment\",cluster=~\"$cluster\",type!=\"command\",rs_nm!~\"\"}[$interval]) or irate(mongodb_op_counters_total{environment=~\"$environment\",cluster=~\"$cluster\",type!=\"command\",rs_nm!~\"\"}[5s]))",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{rs_nm}} ",
+ "range": false,
+ "refId": "B"
+ },
+ {
+ "editorMode": "code",
+ "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"})))",
+ "hide": true,
+ "legendFormat": "mongos",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "QPS of Services in Shard",
+ "type": "gauge"
+ },
+ {
+ "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.",
"fieldConfig": {
"defaults": {
"color": {
@@ -174,13 +253,13 @@
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
+ "h": 2,
+ "w": 2,
"x": 0,
- "y": 1
+ "y": 6
},
"hideTimeOverride": true,
- "id": 35,
+ "id": 36,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -200,23 +279,25 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "max(mongodb_mongos_sharding_databases_total{cluster=\"$cluster\", type=\"partitioned\"})",
+ "editorMode": "code",
+ "expr": "max(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
"interval": "5m",
"intervalFactor": 1,
"legendFormat": "Shards",
+ "range": true,
"refId": "A",
"step": 300
}
],
"timeFrom": "1m",
- "title": "Sharded DBs",
+ "title": "Shards",
"type": "stat"
},
{
- "description": "A MongoDB sharded cluster deployment can contain collections that are either unsharded (the default when created) or sharded.",
+ "description": "Number of mongos routers registered as part of the cluster",
"fieldConfig": {
"defaults": {
"color": {
@@ -243,13 +324,13 @@
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 1
+ "h": 2,
+ "w": 2,
+ "x": 2,
+ "y": 6
},
"hideTimeOverride": true,
- "id": 39,
+ "id": 1298,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -269,350 +350,129 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "max(mongodb_mongos_sharding_databases_total{cluster=\"$cluster\", type=\"unpartitioned\"})",
+ "editorMode": "code",
+ "expr": "sum(group by (service_name)(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}))",
"interval": "5m",
"intervalFactor": 1,
- "legendFormat": "Shards",
+ "legendFormat": "__auto",
+ "range": true,
"refId": "A",
"step": 300
}
],
"timeFrom": "1m",
- "title": "Unsharded DBs",
+ "title": "Mongos",
"type": "stat"
},
{
- "collapsed": false,
- "default_title_for_rows": "DB Name",
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
- "gridPos": {
- "h": 12,
- "w": 8,
- "x": 8,
- "y": 1
- },
- "id": 1043,
- "pluginVersion": "9.2.20",
- "title": "Amount of Collections in Shards",
- "type": "table",
+ "description": "When you run removeShard, MongoDB drains the shard by using the balancer to move the shard’s chunks to other shards in the cluster. Once the shard is drained, MongoDB removes the shard from the cluster.",
"fieldConfig": {
"defaults": {
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "inspect": false,
- "filterable": false
+ "color": {
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
},
- "mappings": [
- {
- "type": "value",
- "options": {
- "0": {
- "color": "dark-blue",
- "index": 0
- }
- }
- }
- ],
+ "decimals": 0,
+ "mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "red",
+ "color": "green",
"value": null
},
{
- "color": "green",
- "value": 20
+ "color": "red",
+ "value": 80
}
]
},
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "noValue": "-"
+ "unit": "none"
},
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "id": "color",
- "value": {
- "mode": "fixed",
- "fixedColor": "dark-blue"
- }
- },
- {
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
- }
- ]
- }
- ]
- }
- ]
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 2,
+ "w": 2,
+ "x": 4,
+ "y": 6
},
+ "hideTimeOverride": true,
+ "id": 1028,
+ "links": [],
+ "maxDataPoints": 100,
"options": {
- "showHeader": true,
- "footer": {
- "show": false,
- "reducer": [
- "sum"
+ "colorMode": "none",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
],
- "fields": ""
+ "fields": "",
+ "values": false
},
- "frameIndex": 0,
- "sortBy": [
- {
- "displayName": "DB Name\\Value",
- "desc": false
- }
- ]
- },
- "transformations": [
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "shard",
- "rowField": "db",
- "valueField": "Value"
- }
+ "text": {
+ "valueSize": 20
},
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "db\\shard": "DB Name",
- "rs1": ""
- }
- }
- }
- ],
+ "textMode": "auto"
+ },
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "max by (db,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\",db!~\"admin|config\"})",
- "editorMode": "code",
- "range": false,
- "exemplar": false,
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
- "refId": "A"
- },
- {
- "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}",
"editorMode": "code",
- "range": false,
- "exemplar": false,
- "format": "table",
- "hide": true,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Size",
- "refId": "B"
+ "expr": "max(mongodb_mongos_sharding_shards_draining_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "Draining Total",
+ "range": true,
+ "refId": "A",
+ "step": 300
}
],
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- }
+ "timeFrom": "1m",
+ "title": "Draining Shards",
+ "type": "stat"
},
{
- "default_title_for_rows": "DB Name",
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
- "gridPos": {
- "h": 12,
- "w": 8,
- "x": 16,
- "y": 1
- },
- "hide_headers": false,
- "id": 1030,
- "pluginVersion": "9.2.20",
- "title": "Size of Collections in Shards",
- "type": "table",
+ "description": "Total number of user-created databases",
"fieldConfig": {
"defaults": {
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "inspect": false,
- "filterable": false
+ "color": {
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
},
- "mappings": [
- {
- "type": "value",
- "options": {
- "0": {
- "color": "dark-blue",
- "index": 0,
- "text": "0"
- }
- }
- }
- ],
+ "decimals": 0,
+ "mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "red",
+ "color": "green",
"value": null
},
{
- "color": "green",
- "value": 20
+ "color": "red",
+ "value": 80
}
]
},
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "noValue": "-",
- "unit": "bytes"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "id": "color",
- "value": {
- "mode": "fixed",
- "fixedColor": "dark-blue"
- }
- },
- {
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
- }
- ]
- }
- ]
- }
- ]
- },
- "options": {
- "showHeader": true,
- "footer": {
- "show": false,
- "reducer": [
- "sum"
- ],
- "fields": ""
- },
- "frameIndex": 0,
- "sortBy": [
- {
- "displayName": "DB Name\\Value",
- "desc": false
- }
- ]
- },
- "transformations": [
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "shard",
- "rowField": "db",
- "valueField": "Value"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "db\\shard": "DB Name",
- "rs1": ""
- }
- }
- }
- ],
- "targets": [
- {
- "expr": "max by (db,shard) (mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"})",
- "editorMode": "code",
- "range": false,
- "exemplar": false,
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
- "refId": "A"
- }
- ],
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- }
- },
- {
- "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
- },
- "decimals": 0,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
+ "unit": "none"
},
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 4
+ "h": 2,
+ "w": 2,
+ "x": 6,
+ "y": 6
},
"hideTimeOverride": true,
- "id": 36,
+ "id": 35,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -632,23 +492,25 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "max(mongodb_mongos_sharding_shards_total{cluster=\"$cluster\"})",
+ "editorMode": "code",
+ "expr": "sum(mongodb_mongos_sharding_databases_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
"interval": "5m",
"intervalFactor": 1,
"legendFormat": "Shards",
+ "range": true,
"refId": "A",
"step": 300
}
],
"timeFrom": "1m",
- "title": "Shards",
+ "title": "DBs",
"type": "stat"
},
{
- "description": "A chunk consists of a subset of sharded data.",
+ "description": "Number of collections that are sharded",
"fieldConfig": {
"defaults": {
"color": {
@@ -675,13 +537,13 @@
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 4
+ "h": 2,
+ "w": 3,
+ "x": 8,
+ "y": 6
},
"hideTimeOverride": true,
- "id": 11,
+ "id": 10,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -701,41 +563,58 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "sum(mongodb_mongos_sharding_chunks_total{cluster=\"$cluster\"})",
+ "editorMode": "code",
+ "expr": "max by (environment, cluster) (mongodb_ss_shardingStatistics_numShardedCollections{environment=~\"$environment\",cluster=~\"$cluster\"} or mongodb_mongos_sharding_collections_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
"interval": "5m",
"intervalFactor": 1,
- "legendFormat": "Chunks",
+ "legendFormat": "Shards",
+ "range": true,
"refId": "A",
"step": 300
}
],
"timeFrom": "1m",
- "title": "Chunks",
+ "title": "Sharded Collections",
"type": "stat"
},
{
- "description": "When you run removeShard, MongoDB drains the shard by using the balancer to move the shard’s chunks to other shards in the cluster. Once the shard is drained, MongoDB removes the shard from the cluster.",
+ "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. ",
"fieldConfig": {
"defaults": {
"color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
+ "mode": "thresholds"
},
"decimals": 0,
- "mappings": [],
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "text": "NO"
+ },
+ "1": {
+ "text": "YES"
+ }
+ },
+ "type": "value"
+ }
+ ],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green",
+ "color": "rgba(245, 54, 54, 0.9)",
"value": null
},
{
- "color": "red",
- "value": 80
+ "color": "rgba(237, 129, 40, 0.89)",
+ "value": 0
+ },
+ {
+ "color": "rgba(50, 172, 45, 0.97)",
+ "value": 1
}
]
},
@@ -744,13 +623,13 @@
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 7
+ "h": 2,
+ "w": 3,
+ "x": 11,
+ "y": 6
},
"hideTimeOverride": true,
- "id": 1028,
+ "id": 5,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -770,23 +649,26 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "max(mongodb_mongos_sharding_shards_draining_total{cluster=\"$cluster\"})",
+ "editorMode": "code",
+ "expr": "max(mongodb_mongos_sharding_balancer_enabled{environment=~\"$environment\",cluster=~\"$cluster\"})",
+ "format": "time_series",
"interval": "5m",
"intervalFactor": 1,
- "legendFormat": "Draining Total",
+ "legendFormat": "Cluster Balanced",
+ "range": true,
"refId": "A",
"step": 300
}
],
"timeFrom": "1m",
- "title": "Draining Shards",
+ "title": "Balancer Enabled",
"type": "stat"
},
{
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
+ "description": "A chunk consists of a subset of sharded data.",
"fieldConfig": {
"defaults": {
"color": {
@@ -813,13 +695,13 @@
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 7
+ "h": 2,
+ "w": 7,
+ "x": 14,
+ "y": 6
},
"hideTimeOverride": true,
- "id": 10,
+ "id": 11,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -839,71 +721,58 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "max(mongodb_mongos_sharding_collections_total{cluster=\"$cluster\"})",
+ "editorMode": "code",
+ "expr": "sum(mongodb_mongos_sharding_chunks_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
"interval": "5m",
"intervalFactor": 1,
- "legendFormat": "Shards",
+ "legendFormat": "Chunks",
+ "range": true,
"refId": "A",
"step": 300
}
],
"timeFrom": "1m",
- "title": "Sharded Collections",
+ "title": "Total amount of Chunks",
"type": "stat"
},
{
- "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. ",
+ "description": "Time since the most recent election of any member of the cluster",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "rgb(31, 120, 193)",
+ "mode": "fixed"
},
- "decimals": 0,
- "mappings": [
- {
- "options": {
- "0": {
- "text": "NO"
- },
- "1": {
- "text": "YES"
- }
- },
- "type": "value"
- }
- ],
+ "decimals": 1,
+ "mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "rgba(245, 54, 54, 0.9)",
+ "color": "green",
"value": null
},
{
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 0
- },
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": 1
+ "color": "red",
+ "value": 80
}
]
},
- "unit": "none"
+ "unit": "s"
},
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 10
+ "h": 2,
+ "w": 3,
+ "x": 21,
+ "y": 6
},
- "hideTimeOverride": true,
- "id": 5,
+ "hideTimeOverride": false,
+ "id": 1293,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -923,79 +792,59 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "max(mongodb_mongos_sharding_balancer_enabled{cluster=\"$cluster\"})",
- "format": "time_series",
+ "editorMode": "code",
+ "expr": "time() - max(mongodb_mongod_replset_member_election_date{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"})",
"interval": "5m",
"intervalFactor": 1,
- "legendFormat": "Cluster Balanced",
+ "legendFormat": "",
+ "metric": "",
+ "range": true,
"refId": "A",
"step": 300
}
],
- "timeFrom": "1m",
- "title": "Balancer Enabled",
+ "title": "Last Election",
"type": "stat"
},
{
- "description": "When the number of chunks on a given shard reaches specific migration thresholds, the balancer attempts to automatically migrate chunks between shards and reach an equal number of chunks per shard.",
+ "description": "Show the chunk distribution between all the shards involved",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
- "decimals": 0,
- "mappings": [
- {
- "options": {
- "0": {
- "text": "NO"
- },
- "1": {
- "text": "YES"
- }
- },
- "type": "value"
- }
- ],
+ "mappings": [],
+ "max": 1,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "rgba(245, 54, 54, 0.9)",
+ "color": "green",
"value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 0
- },
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": 1
}
]
},
- "unit": "none"
+ "unit": "percentunit"
},
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 10
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 8
},
- "hideTimeOverride": true,
- "id": 4,
- "links": [],
- "maxDataPoints": 100,
+ "id": 1267,
"options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -1003,629 +852,442 @@
"fields": "",
"values": false
},
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
+ "showUnfilled": true
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
+ "repeatDirection": "v",
"targets": [
{
- "expr": "min(mongodb_mongos_sharding_chunks_is_balancer_running{cluster=\"$cluster\"})",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "max by (shard) (last_over_time(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[1m])) / sum(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"})",
"format": "time_series",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "Cluster Balancer is Running",
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "1m",
- "title": "Chunks Balancer is running",
- "type": "stat"
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{shard}} ",
+ "range": false,
+ "refId": "A"
+ }
+ ],
+ "title": "Chunks distribution",
+ "type": "bargauge"
},
{
- "colors": [
- "#299c46",
- "rgba(237, 129, 40, 0.89)",
- "#d44a3a",
- "#4040a0"
- ],
- "description": "Config services store the metadata for a sharded cluster. The metadata reflects state and organization for all data and components within the sharded cluster. The metadata includes the list of chunks on every shard and the ranges that define the chunks.",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
"gridPos": {
- "h": 5,
+ "h": 8,
"w": 12,
"x": 0,
- "y": 13
+ "y": 15
},
- "id": 1229,
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "nullPointMode": "connected",
- "polystat": {
- "animationSpeed": 2500,
- "columnAutoSize": true,
- "columns": "",
- "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}",
- "defaultClickThroughNewTab": true,
- "defaultClickThroughSanitize": true,
- "displayLimit": 100,
- "ellipseCharacters": 18,
- "ellipseEnabled": false,
- "fontAutoColor": false,
- "fontAutoScale": true,
- "fontSize": 12,
- "fontType": "Roboto",
- "globalDecimals": 0,
- "globalDisplayMode": "all",
- "globalDisplayTextTriggeredEmpty": "OK",
- "globalOperatorName": "current",
- "globalUnitFormat": "ops",
- "gradientEnabled": true,
- "hexagonSortByDirection": 1,
- "hexagonSortByField": "name",
- "maxMetrics": 0,
- "polygonBorderColor": "black",
- "polygonBorderSize": 2,
- "polygonGlobalFillColor": "#8F3BB8",
- "radius": "",
- "radiusAutoSize": true,
- "regexPattern": "",
- "rowAutoSize": true,
- "rows": "",
- "shape": "hexagon_pointed_top",
- "tooltipDisplayMode": "all",
- "tooltipDisplayTextTriggeredEmpty": "OK",
- "tooltipEnabled": true,
- "tooltipFontSize": 12,
- "tooltipFontType": "Roboto",
- "tooltipPrimarySortDirection": 2,
- "tooltipPrimarySortField": "thresholdLevel",
- "tooltipSecondarySortDirection": 2,
- "tooltipSecondarySortField": "name",
- "tooltipTimestampEnabled": true,
- "valueEnabled": true
+ "hiddenSeries": false,
+ "id": 1269,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
},
- "rangeMaps": [
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
{
- "from": "null",
- "text": "N/A",
- "to": "null"
+ "alias": "/repl.*/",
+ "yaxis": 2
}
],
- "repeatDirection": "v",
- "savedComposites": [],
- "savedOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "expr": "sum by (service_name) (mongodb_connections{cluster=\"$cluster\", state=\"current\"} * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))",
+ "editorMode": "code",
+ "expr": "sum by (environment, cluster, legacy_op_type) (rate(mongodb_ss_opcountersRepl{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\",legacy_op_type!~\"(command|query|getmore)\"}[$interval]))",
"format": "time_series",
"hide": true,
- "instant": false,
"interval": "$interval",
- "legendFormat": "Config - {{service_name}} ",
- "refId": "A"
+ "intervalFactor": 1,
+ "legendFormat": "repl_{{legacy_op_type}}",
+ "range": true,
+ "refId": "A",
+ "step": 300
},
{
- "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))",
+ "editorMode": "code",
+ "expr": "sum by (environment, cluster) (rate(mongodb_ss_metrics_ttl_deletedDocuments{environment=~\"$environment\", rs_nm=~\"$set\",service_name=~\"$service_name\",cluster=~\"$cluster\"}[$interval]))",
+ "format": "time_series",
+ "hide": false,
"interval": "$interval",
- "legendFormat": "{{service_name}}",
- "refId": "B"
- }
- ],
- "title": "QPS of Config Services",
- "type": "grafana-polystat-panel",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- }
- ]
- },
- {
- "colors": [
- "#299c46",
- "rgba(237, 129, 40, 0.89)",
- "#d44a3a",
- "#4040a0"
- ],
- "description": "Mongos is a routing service for MongoDB shard configurations that processes queries from the application layer, and determines the location of this data in the sharded cluster, in order to complete these operations. From the perspective of the application, a mongos instance behaves identically to any other MongoDB instance.",
- "gridPos": {
- "h": 5,
- "w": 12,
- "x": 12,
- "y": 13
- },
- "id": 1231,
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
+ "intervalFactor": 1,
+ "legendFormat": "ttl_delete",
+ "range": true,
+ "refId": "B",
+ "step": 300
},
{
- "name": "range to text",
- "value": 2
+ "editorMode": "code",
+ "expr": "sum by (environment, cluster, legacy_op_type) (rate(mongodb_ss_opcounters{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\",service_name=~\"$service_name\",legacy_op_type!=\"command\"}[$interval]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{legacy_op_type}}",
+ "range": true,
+ "refId": "C",
+ "step": 300
}
],
- "nullPointMode": "connected",
- "polystat": {
- "animationSpeed": 2500,
- "columnAutoSize": true,
- "columns": "",
- "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}",
- "defaultClickThroughNewTab": true,
- "defaultClickThroughSanitize": true,
- "displayLimit": 100,
- "ellipseCharacters": 18,
- "ellipseEnabled": false,
- "fontAutoColor": false,
- "fontAutoScale": true,
- "fontSize": 12,
- "fontType": "Roboto",
- "globalDecimals": 0,
- "globalDisplayMode": "all",
- "globalDisplayTextTriggeredEmpty": "OK",
- "globalOperatorName": "current",
- "globalUnitFormat": "ops",
- "gradientEnabled": true,
- "hexagonSortByDirection": 1,
- "hexagonSortByField": "name",
- "maxMetrics": 0,
- "polygonBorderColor": "black",
- "polygonBorderSize": 2,
- "polygonGlobalFillColor": "#8AB8FF",
- "radius": "",
- "radiusAutoSize": true,
- "regexPattern": "",
- "rowAutoSize": true,
- "rows": "",
- "shape": "hexagon_pointed_top",
- "tooltipDisplayMode": "all",
- "tooltipDisplayTextTriggeredEmpty": "OK",
- "tooltipEnabled": true,
- "tooltipFontSize": 12,
- "tooltipFontType": "Roboto",
- "tooltipPrimarySortDirection": 2,
- "tooltipPrimarySortField": "thresholdLevel",
- "tooltipSecondarySortDirection": 2,
- "tooltipSecondarySortField": "name",
- "tooltipTimestampEnabled": true,
- "valueEnabled": true
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Command Operations",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 2,
+ "value_type": "individual"
},
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
],
- "repeatDirection": "v",
- "savedComposites": [],
- "savedOverrides": [
+ "yaxes": [
{
- "clickThrough": "",
- "colors": [
- "#299c46",
- "#e5ac0e",
- "#bf1b00",
- "#ffffff"
- ],
- "decimals": "",
- "enabled": true,
- "label": "OVERRIDE 1",
- "metricName": "",
- "newTabEnabled": true,
- "operatorName": "avg",
- "prefix": "",
- "sanitizeURLEnabled": false,
- "suffix": "",
- "thresholds": [],
- "unitFormat": "short"
- }
- ],
- "targets": [
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
{
- "exemplar": true,
- "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"})))",
- "format": "time_series",
- "instant": false,
- "interval": "$interval",
- "legendFormat": "{{service_name}} ",
- "refId": "A"
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": "0",
+ "show": true
}
],
- "title": "QPS of Mongos Service",
- "type": "grafana-polystat-panel",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- }
- ]
+ "yaxis": {
+ "align": false
+ }
},
{
- "colors": [
- "#299c46",
- "rgba(237, 129, 40, 0.89)",
- "#d44a3a",
- "#4040a0"
- ],
- "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.",
+ "description": "Show the 5 collections that are most frequently read.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "ops"
+ },
+ "overrides": []
+ },
"gridPos": {
- "h": 5,
- "w": 24,
- "x": 0,
- "y": 18
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 15
},
- "id": 1227,
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
+ "id": 1271,
+ "links": [],
+ "options": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
},
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "nullPointMode": "connected",
- "polystat": {
- "animationSpeed": 2500,
- "columnAutoSize": true,
- "columns": "",
- "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}",
- "defaultClickThroughNewTab": true,
- "defaultClickThroughSanitize": true,
- "displayLimit": 100,
- "ellipseCharacters": 18,
- "ellipseEnabled": false,
- "fontAutoColor": false,
- "fontAutoScale": true,
- "fontSize": 12,
- "fontType": "Roboto",
- "globalDecimals": 0,
- "globalDisplayMode": "all",
- "globalDisplayTextTriggeredEmpty": "OK",
- "globalOperatorName": "current",
- "globalUnitFormat": "ops",
- "gradientEnabled": true,
- "hexagonSortByDirection": 1,
- "hexagonSortByField": "name",
- "maxMetrics": 0,
- "polygonBorderColor": "black",
- "polygonBorderSize": 2,
- "polygonGlobalFillColor": "#0a50a1",
- "radius": "",
- "radiusAutoSize": true,
- "regexPattern": "",
- "rowAutoSize": true,
- "rows": "",
- "shape": "hexagon_pointed_top",
- "tooltipDisplayMode": "all",
- "tooltipDisplayTextTriggeredEmpty": "OK",
- "tooltipEnabled": true,
- "tooltipFontSize": 12,
- "tooltipFontType": "Roboto",
- "tooltipPrimarySortDirection": 2,
- "tooltipPrimarySortField": "thresholdLevel",
- "tooltipSecondarySortDirection": 2,
- "tooltipSecondarySortField": "name",
- "tooltipTimestampEnabled": true,
- "valueEnabled": true
+ "showUnfilled": true,
+ "text": {}
},
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": "shard",
+ "pluginVersion": "9.2.20",
"repeatDirection": "v",
- "savedComposites": [],
- "savedOverrides": [
- {
- "clickThrough": "",
- "colors": [
- "#299c46",
- "#e5ac0e",
- "#bf1b00",
- "#ffffff"
- ],
- "decimals": "",
- "enabled": true,
- "label": "OVERRIDE 1",
- "metricName": "",
- "newTabEnabled": true,
- "operatorName": "avg",
- "prefix": "",
- "sanitizeURLEnabled": false,
- "suffix": "",
- "thresholds": [],
- "unitFormat": "short"
- }
- ],
"targets": [
{
- "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set=~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set=~\"$shard\"}))",
- "format": "time_series",
- "instant": false,
- "interval": "$interval",
- "legendFormat": "{{service_name}} ",
+ "editorMode": "code",
+ "expr": "topk (5,sum by (environment, cluster,database,collection) (irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]))",
+ "hide": true,
+ "legendFormat": "{{database}}.{{collection}}",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "editorMode": "code",
+ "expr": "topk (5,sum by (environment, cluster,database,collection) ((rate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]) or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5s]))",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "{{database}}.{{collection}}",
+ "range": true,
"refId": "A"
}
],
- "title": "QPS of Services in Shard - $shard",
- "type": "grafana-polystat-panel",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- }
- ]
+ "title": "Top Hottest Collections by Read",
+ "transformations": [],
+ "type": "bargauge"
},
{
- "collapsed": false,
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "Average latency of operations (classified by read, write, or (other) command)",
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
"gridPos": {
- "h": 1,
- "w": 24,
+ "h": 8,
+ "w": 12,
"x": 0,
"y": 23
},
- "id": 1199,
- "panels": [],
- "title": "Chunks in Shards",
- "type": "row"
- },
- {
- "id": 1215,
- "gridPos": {
- "h": 4,
- "w": 24,
- "x": 0,
- "y": 24
+ "hiddenSeries": false,
+ "id": 1297,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
},
- "type": "state-timeline",
- "title": "Chunks Balancer is running",
- "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. When the number of chunks on a given shard reaches specific migration thresholds, the balancer attempts to automatically migrate chunks between shards and reach an equal number of chunks per shard.",
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "expr": "min(mongodb_mongos_sharding_chunks_is_balancer_running{cluster=\"$cluster\"})",
+ "editorMode": "code",
+ "expr": "avg by (op_type) (rate(mongodb_ss_opLatencies_latency{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{environment=~\"$environment\", cluster=~\"$cluster\",service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[5m]) > 0))",
"interval": "$interval",
- "legendFormat": "$cluster",
+ "legendFormat": "{{op_type}}",
+ "range": true,
"refId": "A"
}
],
- "options": {
- "mergeValues": true,
- "showValue": "always",
- "alignValue": "center",
- "rowHeight": 0.9,
- "legend": {
- "showLegend": true,
- "displayMode": "list",
- "placement": "bottom"
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Query execution times",
+ "tooltip": {
+ "shared": true,
+ "sort": 2,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "µs",
+ "logBase": 1,
+ "min": "0",
+ "show": true
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
}
- },
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "description": "Show the 5 collections that are most frequently written to.",
"fieldConfig": {
"defaults": {
- "custom": {
- "lineWidth": 0,
- "fillOpacity": 100,
- "spanNulls": true
- },
"color": {
- "mode": "palette-classic"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
- "mappings": [
- {
- "type": "value",
- "options": {
- "0": {
- "text": "NO",
- "index": 2,
- "color": "red"
- },
- "1": {
- "text": "YES",
- "index": 1,
- "color": "green"
- }
- }
- },
- {
- "type": "range",
- "options": {
- "from": 0,
- "to": 1,
- "result": {
- "text": "N/A",
- "color": "text",
- "index": 0
- }
- }
- }
- ],
+ "mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "value": null,
"color": "green"
- },
- {
- "value": 80,
- "color": "red"
}
]
},
- "unit": "short"
+ "unit": "ops"
},
"overrides": []
- }
- },
- {
- "default_title_for_rows": "Shard Name",
- "description": "A chunk consists of a subset of sharded data.",
+ },
"gridPos": {
"h": 8,
- "w": 8,
- "x": 0,
- "y": 28
- },
- "hide_headers": false,
- "id": 1200,
- "pluginVersion": "9.2.20",
- "title": "Amount of Chunks in Shards",
- "type": "table",
- "fieldConfig": {
- "defaults": {
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "inspect": false,
- "filterable": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- },
- {
- "color": "green",
- "value": 20
- }
- ]
- },
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "noValue": "-"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Chunks"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "id": "color",
- "value": {
- "mode": "fixed",
- "fixedColor": "dark-blue"
- }
- }
- ]
- }
- ]
+ "w": 12,
+ "x": 12,
+ "y": 23
},
+ "id": 1273,
"options": {
- "showHeader": true,
- "footer": {
- "show": false,
- "reducer": [
- "sum"
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
],
- "fields": ""
- }
+ "fields": "",
+ "values": false
+ },
+ "showUnfilled": true
},
- "transformations": [
- {
- "id": "organize",
- "options": {
- "excludeByName": {
- "Time": true
- },
- "indexByName": {},
- "renameByName": {
- "shard": "Shard Name",
- "Value": "Chunks"
- }
- }
- }
- ],
+ "pluginVersion": "9.2.20",
"targets": [
{
- "expr": "avg by (shard) (mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\",db!~\"admin|config\"})",
"editorMode": "code",
- "range": false,
- "exemplar": false,
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{shard}} | Chunks",
+ "expr": "topk (5,sum by (environment,cluster,database,collection) (irate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5m]))",
+ "hide": true,
+ "instant": false,
+ "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0",
+ "legendFormat": "{{database}}.{{collection}}",
+ "range": true,
"refId": "A"
+ },
+ {
+ "editorMode": "code",
+ "expr": "topk (5,sum by (environment,cluster,database,collection) ((rate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]) or irate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5m]))",
+ "hide": false,
+ "legendFormat": "{{database}}.{{collection}}",
+ "range": true,
+ "refId": "B"
}
],
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- }
+ "title": "Top Hottest Collections by Write",
+ "type": "bargauge"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
- "decimals": 2,
- "description": "The sharding operation creates the initial chunk(s) to cover the entire range of the shard key values. The number of chunks created depends on the configured chunk size. After the initial chunk creation, the balancer migrates these initial chunks across the shards as appropriate as well as manages the chunk distribution going forward.",
+ "decimals": 0,
+ "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).",
+ "editable": true,
+ "error": false,
"fieldConfig": {
"defaults": {
"links": [
{
"targetBlank": true,
- "title": "MongoDB ReplSet Summary",
+ "title": "MongoDB ReplSet Summary - ${__series.name}",
"url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
}
]
},
"overrides": []
},
- "fill": 2,
+ "fill": 6,
"fillGradient": 0,
+ "grid": {},
"gridPos": {
"h": 8,
- "w": 16,
- "x": 8,
- "y": 28
+ "w": 12,
+ "x": 0,
+ "y": 31
},
"hiddenSeries": false,
- "id": 1201,
+ "id": 30,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
+ "hideEmpty": false,
+ "hideZero": false,
"max": true,
"min": true,
- "rightSide": true,
+ "rightSide": false,
"show": true,
"sort": "avg",
"sortDesc": true,
@@ -1634,32 +1296,39 @@
},
"lines": true,
"linewidth": 2,
+ "links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 2,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
- "stack": false,
+ "stack": true,
"steppedLine": false,
"targets": [
{
- "exemplar": true,
- "expr": "avg by (shard) (rate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[$interval]) or irate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[5m]))",
+ "editorMode": "code",
+ "expr": "sum(sum(rate(mongodb_op_counters_total{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", type!=\"command\"}[5m])) by (instance) * on (instance) \ngroup_right mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"} / mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"}) by (set)",
+ "format": "time_series",
+ "hide": false,
"interval": "$interval",
- "legendFormat": "{{shard}}",
- "refId": "A"
+ "intervalFactor": 1,
+ "legendFormat": "{{set}}",
+ "range": true,
+ "refId": "A",
+ "step": 300
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Dynamic of Chunks",
+ "title": "Operations Per Shard",
"tooltip": {
+ "msResolution": false,
"shared": true,
"sort": 5,
"value_type": "individual"
@@ -1673,9 +1342,10 @@
"yaxes": [
{
"decimals": 2,
- "format": "cps",
+ "format": "ops",
+ "label": "",
"logBase": 1,
- "min": "0",
+ "min": 0,
"show": true
},
{
@@ -1689,188 +1359,171 @@
}
},
{
- "aliasColors": {},
- "bars": true,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.",
+ "description": "",
"fieldConfig": {
"defaults": {
- "links": []
+ "color": {
+ "mode": "thresholds"
+ },
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ }
},
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 36
- },
- "hiddenSeries": false,
- "id": 1212,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": false,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{event}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Chunks Split Events",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": true,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Time"
+ },
+ "properties": [
+ {
+ "id": "custom.hidden",
+ "value": true
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "service_name"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Service Name"
+ },
+ {
+ "id": "unit",
+ "value": "short"
+ },
+ {
+ "id": "decimals",
+ "value": 2
+ },
+ {
+ "id": "links",
+ "value": []
+ },
+ {
+ "id": "custom.align"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "mongodb"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Version"
+ },
+ {
+ "id": "unit",
+ "value": "short"
+ },
+ {
+ "id": "decimals",
+ "value": 2
+ },
+ {
+ "id": "custom.align",
+ "value": "auto"
+ },
+ {
+ "id": "custom.width"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value"
+ },
+ "properties": [
+ {
+ "id": "custom.hidden",
+ "value": true
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "service_name"
+ },
+ "properties": [
+ {
+ "id": "custom.width"
+ }
+ ]
+ }
+ ]
},
- "fill": 2,
- "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
- "y": 36
- },
- "hiddenSeries": false,
- "id": 1216,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
+ "y": 31
},
- "lines": false,
- "linewidth": 2,
- "nullPointMode": "null",
+ "hideTimeOverride": true,
+ "id": 1289,
+ "links": [],
"options": {
- "alertThreshold": true
+ "footer": {
+ "enablePagination": true,
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "showHeader": true,
+ "sortBy": []
},
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
+ "pluginVersion": "9.2.20",
"targets": [
{
- "exemplar": true,
- "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{event}}",
- "refId": "A"
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"}) or (avg by (service_name,mongodb) (mongodb_version_info)) * on (service_name) group_right (mongodb) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=~\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=~\"$cluster\"}))",
+ "format": "table",
+ "instant": true,
+ "interval": "5m",
+ "legendFormat": "{{mongodb}}",
+ "refId": "B"
}
],
- "thresholds": [],
- "timeRegions": [],
- "title": "Chunks Move Events",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- },
+ "timeFrom": "1m",
+ "title": "MongoDB Versions",
+ "transformations": [
{
- "format": "short",
- "logBase": 1,
- "show": false
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {
+ "Time": 1,
+ "Value": 3,
+ "mongodb": 2,
+ "service_name": 0
+ },
+ "renameByName": {}
+ }
}
],
- "yaxis": {
- "align": false
- }
+ "type": "table"
},
{
"collapsed": false,
@@ -1878,1197 +1531,436 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 44
+ "y": 39
},
- "id": 1045,
+ "id": 1285,
"panels": [],
- "title": "Indexes in Shards",
+ "title": "Node States",
"type": "row"
},
{
- "default_title_for_rows": "DB Name",
- "description": "Indexes are special data structures that store a small portion of the collection’s data set in an easy to traverse form. ",
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 45
- },
- "hide_headers": false,
- "id": 1040,
- "pluginVersion": "9.2.20",
- "title": "Amount of Indexes in Shards",
- "type": "table",
+ "description": "ReplSet statuses during the select time range.",
"fieldConfig": {
"defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
"custom": {
- "align": "left",
- "displayMode": "auto",
- "inspect": false,
- "filterable": false
+ "fillOpacity": 100,
+ "lineWidth": 0,
+ "spanNulls": true
},
"mappings": [
{
"options": {
"0": {
- "color": "dark-red",
- "index": 0,
- "text": "No data"
+ "index": 11,
+ "text": "STARTUP"
+ },
+ "1": {
+ "color": "rgb(107, 152, 102)",
+ "index": 4,
+ "text": "PRIMARY"
+ },
+ "2": {
+ "color": "rgb(193, 159, 20)",
+ "index": 3,
+ "text": "SECONDARY"
+ },
+ "3": {
+ "index": 10,
+ "text": "RECOVERING"
+ },
+ "5": {
+ "index": 9,
+ "text": "STARTUP2"
+ },
+ "6": {
+ "index": 8,
+ "text": "UNKNOWN"
+ },
+ "7": {
+ "color": "#8B8000",
+ "index": 1,
+ "text": "ARBITER"
+ },
+ "8": {
+ "index": 7,
+ "text": "DOWN"
+ },
+ "9": {
+ "index": 6,
+ "text": "ROLLBACK"
+ },
+ "10": {
+ "index": 5,
+ "text": "REMOVED"
+ },
+ "null": {
+ "color": "#FF7383",
+ "index": 2,
+ "text": "Exporter is not connected"
}
},
"type": "value"
+ },
+ {
+ "options": {
+ "result": {
+ "index": 0,
+ "text": "N/A"
+ }
+ },
+ "type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "red",
- "value": null
+ "color": "green"
},
{
- "color": "green",
- "value": 20
+ "color": "red",
+ "value": 80
}
]
},
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "noValue": "-"
+ "unit": "short"
},
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "id": "color",
- "value": {
- "mode": "fixed",
- "fixedColor": "dark-blue"
- }
- },
- {
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
- }
- ]
- }
- ]
- }
- ]
+ "overrides": []
},
- "options": {
- "showHeader": true,
- "footer": {
- "show": false,
- "reducer": [
- "sum"
- ],
- "fields": ""
- },
- "frameIndex": 0,
- "sortBy": [
- {
- "displayName": "DB Name\\Value",
- "desc": false
- }
- ]
+ "gridPos": {
+ "h": 7,
+ "w": 8,
+ "x": 0,
+ "y": 40
},
- "transformations": [
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "shard",
- "rowField": "db",
- "valueField": "Value"
- }
+ "id": 1281,
+ "options": {
+ "alignValue": "right",
+ "legend": {
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
},
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "db\\shard": "DB Name",
- "rs1": ""
- }
- }
+ "mergeValues": true,
+ "rowHeight": 0.9,
+ "showValue": "auto",
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
}
- ],
+ },
+ "pluginVersion": "6.5.1",
+ "repeat": "set",
+ "repeatDirection": "h",
"targets": [
{
- "expr": "avg by (db,shard) (mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"})",
"editorMode": "code",
- "range": false,
- "exemplar": false,
- "format": "table",
+ "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\",service_name=~\"$service_name\"})",
"hide": false,
- "instant": true,
"interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
+ "legendFormat": "{{service_name}}",
+ "range": true,
"refId": "A"
- },
- {
- "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}",
- "editorMode": "code",
- "range": false,
- "exemplar": false,
- "format": "table",
- "hide": true,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Size",
- "refId": "B"
}
],
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- }
+ "title": "$set Node States",
+ "type": "state-timeline"
},
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
+ "collapsed": false,
"gridPos": {
- "h": 8,
- "w": 16,
- "x": 8,
- "y": 45
- },
- "hiddenSeries": false,
- "id": 1042,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by (db,shard) (rate(mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or irate(mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{shard}}-{{db}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Dynamic of Indexes",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 47
},
- "yaxes": [
- {
- "decimals": 2,
- "format": "cps",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
+ "id": 1279,
+ "panels": [],
+ "title": "Collection Details",
+ "type": "row"
},
{
"default_title_for_rows": "DB Name",
- "description": "The index stores the value of a specific field or set of fields, ordered by the value of the field. ",
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 53
- },
- "hide_headers": false,
- "id": 1072,
- "pluginVersion": "9.2.20",
- "title": "Size of Indexes in Shards",
- "type": "table",
+ "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
"fieldConfig": {
"defaults": {
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
"custom": {
"align": "left",
"displayMode": "auto",
- "inspect": false,
- "filterable": false
+ "filterable": false,
+ "inspect": true
},
"mappings": [
{
"options": {
"0": {
- "color": "dark-red",
+ "color": "dark-blue",
"index": 0,
- "text": "No data"
+ "text": "0"
}
},
"type": "value"
}
],
+ "noValue": "0",
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "red",
- "value": null
- },
- {
- "color": "green",
- "value": 20
+ "color": "red"
}
]
},
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "noValue": "-",
"unit": "bytes"
},
"overrides": [
{
"matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
+ "id": "byName",
+ "options": "Collection Name"
},
"properties": [
{
"id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "id": "color",
- "value": {
- "mode": "fixed",
- "fixedColor": "dark-blue"
- }
- },
- {
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
- }
- ]
+ "value": "auto"
}
]
}
]
},
+ "gridPos": {
+ "h": 8,
+ "w": 11,
+ "x": 0,
+ "y": 48
+ },
+ "hide_headers": false,
+ "id": 1030,
"options": {
- "showHeader": true,
"footer": {
- "show": false,
+ "fields": "",
"reducer": [
"sum"
],
- "fields": ""
+ "show": false
},
"frameIndex": 0,
- "sortBy": [
- {
- "displayName": "DB Name\\Value",
- "desc": false
- }
- ]
+ "showHeader": true,
+ "sortBy": []
},
- "transformations": [
+ "pluginVersion": "9.2.20",
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ },
+ "targets": [
{
- "id": "groupingToMatrix",
- "options": {
- "columnField": "shard",
- "rowField": "db",
- "valueField": "Value"
- }
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$shard\"})",
+ "format": "table",
+ "hide": true,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Collections",
+ "range": false,
+ "refId": "A"
},
{
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "db\\shard": "DB Name",
- "rs1": ""
- }
- }
- }
- ],
- "targets": [
- {
"editorMode": "code",
"exemplar": false,
- "expr": "avg by (db,shard) (mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"})",
+ "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$set\"})",
"format": "table",
"hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
- "refId": "A"
- }
- ],
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 16,
- "x": 8,
- "y": 53
- },
- "hiddenSeries": false,
- "id": 1073,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by (db,shard) (rate(mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or rate(mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{shard}}-{{db}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Dynamic of Indexes Size",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "Bps",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 61
- },
- "id": 1071,
- "panels": [
- {
- "default_title_for_rows": "DB Name",
- "description": "Documents in MongoDB are objects stored in a format called BSON, a binary-encoded superset of JSON that supports additional data types.",
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 29
- },
- "hide_headers": false,
- "id": 1066,
- "pluginVersion": "9.2.20",
- "title": "Amount of Objects in Shards",
- "type": "table",
- "fieldConfig": {
- "defaults": {
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "inspect": false,
- "filterable": false
- },
- "mappings": [
- {
- "options": {
- "0": {
- "color": "dark-red",
- "index": 0,
- "text": "No data"
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- },
- {
- "color": "green",
- "value": 20
- }
- ]
- },
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "noValue": "-"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "id": "color",
- "value": {
- "mode": "fixed",
- "fixedColor": "dark-blue"
- }
- },
- {
- "id": "links",
- "value": [
- {
- "title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
- }
- ]
- }
- ]
- }
- ]
- },
- "options": {
- "showHeader": true,
- "footer": {
- "show": false,
- "reducer": [
- "sum"
- ],
- "fields": ""
- },
- "frameIndex": 0,
- "sortBy": [
- {
- "displayName": "DB Name\\Value",
- "desc": false
- }
- ]
- },
- "transformations": [
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "shard",
- "rowField": "db",
- "valueField": "Value"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "db\\shard": "DB Name",
- "rs1": ""
- }
- }
- }
- ],
- "targets": [
- {
- "datasource": "Metrics",
- "exemplar": false,
- "expr": "avg by (db,shard) (mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
- "refId": "A"
- }
- ],
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 16,
- "x": 8,
- "y": 29
- },
- "hiddenSeries": false,
- "id": 1067,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.5.6",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "exemplar": true,
- "expr": "avg by (db,shard) (increase(mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or increase(mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{shard}}-{{db}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Dynamic of Objects",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- }
- ],
- "title": "Objects in Shards",
- "type": "row"
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 62
- },
- "id": 81,
- "panels": [],
- "title": "Connections",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "description": "TCP connections (Incoming) in mongod processes.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB ReplSet Summary - ${__series.name}",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 63
- },
- "hiddenSeries": false,
- "id": 37,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideEmpty": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Total",
- "color": "#C4162A",
- "fill": 0,
- "legend": false,
- "stack": false
- }
- ],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "expr": "sum by (set) (avg by (service_name,set) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{set}}",
- "refId": "B",
- "step": 300
- },
- {
- "expr": "sum by () (avg by (service_name,set) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))",
- "hide": false,
- "interval": "$interval",
- "legendFormat": "Total",
- "refId": "A"
- },
- {
- "expr": "sum by (shard) (avg by (service_name,shard) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"} / mongodb_mongos_db_collections_total{cluster=\"$cluster\"}))",
- "format": "time_series",
- "hide": true,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{shard}}",
- "refId": "C",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Current Connections Per Shard",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "description": "Incoming connections to mongos nodes.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 63
- },
- "hiddenSeries": false,
- "id": 7,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "expr": "sum by (state) (max_over_time(mongodb_connections{cluster=\"$cluster\"}[$interval]) or max_over_time(mongodb_connections{cluster=\"$cluster\"}[5m]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{state}}",
- "refId": "J",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Total Connections",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "label": "",
- "logBase": 2,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 71
- },
- "id": 50,
- "panels": [],
- "title": "Connections Details",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 72
- },
- "hiddenSeries": false,
- "id": 1178,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "maxPerRow": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "expr": "sum by (service_name) (max_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"current\"}[$interval]) or \nmax_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"current\"}[5m]))",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}",
- "refId": "J",
- "step": 300
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{db}} | {{shard}} | Collections",
+ "range": false,
+ "refId": "B"
}
],
- "thresholds": [],
- "timeRegions": [],
- "title": "Current Connections ",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
+ "title": "Size of Collections in Shards",
+ "transformations": [
{
- "decimals": 2,
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
+ "id": "calculateField",
+ "options": {
+ "binary": {
+ "left": "collection",
+ "reducer": "sum",
+ "right": "database"
+ },
+ "mode": "reduceRow",
+ "reduce": {
+ "include": [
+ "database",
+ "collection"
+ ],
+ "reducer": "allValues"
+ },
+ "replaceFields": false
+ }
},
{
- "format": "short",
- "logBase": 1,
- "show": false
+ "id": "groupingToMatrix",
+ "options": {
+ "columnField": "rs_nm",
+ "rowField": "All values",
+ "valueField": "Value"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {},
+ "renameByName": {
+ "All values\\rs_nm": "All values",
+ "collection\\rs_nm": "Collection Name",
+ "db\\shard": "DB Name",
+ "rs1": ""
+ }
+ }
+ },
+ {
+ "id": "extractFields",
+ "options": {
+ "source": "All values"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "All values": true
+ },
+ "indexByName": {
+ "0": 1,
+ "1": 0,
+ "All values": 2,
+ "s1": 3,
+ "s2": 4
+ },
+ "renameByName": {
+ "0": "Collection Name",
+ "1": "DB Name"
+ }
+ }
}
],
- "yaxis": {
- "align": false
- }
+ "type": "table"
},
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "",
- "editable": true,
- "error": false,
+ "collapsed": false,
+ "default_title_for_rows": "DB Name",
+ "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
"fieldConfig": {
"defaults": {
- "links": []
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "filterable": false,
+ "inspect": false
+ },
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "dark-blue",
+ "index": 0
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "noValue": "0",
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red"
+ }
+ ]
+ }
},
"overrides": []
},
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
"gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 79
- },
- "hiddenSeries": false,
- "id": 1177,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
+ "h": 8,
+ "w": 13,
+ "x": 11,
+ "y": 48
},
- "lines": true,
- "linewidth": 2,
- "links": [],
- "maxPerRow": 2,
- "nullPointMode": "null",
+ "id": 1043,
"options": {
- "alertThreshold": true
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "frameIndex": 0,
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "DB Name\\Value"
+ }
+ ]
+ },
+ "pluginVersion": "9.2.20",
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
},
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": false,
"targets": [
{
- "expr": "sum by (service_name) (max_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"available\"}[$interval]) or \nmax_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"available\"}[5m]))",
- "format": "time_series",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "max by (rs_nm, database) (mongodb_mongod_db_collections_total{cluster=\"$cluster\",database!~\"admin|config|system|local\",rs_nm=~\"$set\"})",
+ "format": "table",
"hide": false,
+ "instant": true,
"interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}",
- "refId": "J",
- "step": 300
+ "legendFormat": "{{db}} | {{rs_nm}} | Collections",
+ "range": false,
+ "refId": "C"
}
],
- "thresholds": [],
- "timeRegions": [],
- "title": "Available Connections",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
+ "title": "Number of Collections in Shards",
+ "transformations": [
{
- "decimals": 2,
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
+ "id": "groupingToMatrix",
+ "options": {
+ "columnField": "rs_nm",
+ "rowField": "database",
+ "valueField": "Value"
+ }
},
{
- "format": "short",
- "logBase": 1,
- "show": false
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {},
+ "renameByName": {
+ "database\\rs_nm": "DB Name",
+ "shard0": ""
+ }
+ }
}
],
- "yaxis": {
- "align": false
- }
+ "type": "table"
},
{
"collapsed": false,
@@ -3076,11 +1968,11 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 86
+ "y": 56
},
- "id": 1149,
+ "id": 81,
"panels": [],
- "title": "Cursors",
+ "title": "Connections",
"type": "row"
},
{
@@ -3088,8 +1980,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "decimals": 0,
- "description": "The Cursor is a MongoDB Collection of the document which is returned upon the find method execution. ",
+ "description": "TCP connections (Incoming) in mongod processes.",
"editable": true,
"error": false,
"fieldConfig": {
@@ -3108,23 +1999,24 @@
"fillGradient": 0,
"grid": {},
"gridPos": {
- "h": 8,
- "w": 12,
+ "h": 7,
+ "w": 24,
"x": 0,
- "y": 87
+ "y": 57
},
"hiddenSeries": false,
- "id": 25,
+ "id": 37,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
+ "hideEmpty": false,
"hideZero": false,
"max": true,
"min": true,
- "rightSide": false,
+ "rightSide": true,
"show": true,
- "sort": "avg",
+ "sort": "current",
"sortDesc": true,
"total": false,
"values": true
@@ -3137,7 +2029,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -3155,31 +2047,28 @@
"steppedLine": false,
"targets": [
{
- "expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
+ "editorMode": "code",
+ "expr": "avg by (rs_nm) (mongodb_connections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", state=\"current\", rs_nm!=\"\"})",
"format": "time_series",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "{{set}}",
- "refId": "A",
+ "legendFormat": "{{rs_nm}}",
+ "range": true,
+ "refId": "B",
"step": 300
- },
- {
- "expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"})",
- "interval": "$interval",
- "legendFormat": "Total",
- "refId": "B"
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Cursors Per Shard",
+ "title": "Current Connections Per Shard",
"tooltip": {
"msResolution": false,
"shared": true,
- "sort": 5,
- "value_type": "cumulative"
+ "sort": 0,
+ "value_type": "individual"
},
+ "transformations": [],
"type": "graph",
"xaxis": {
"mode": "time",
@@ -3209,7 +2098,8 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "description": "The Cursor is a MongoDB Collection of the document which is returned upon the find method execution.",
+ "decimals": 2,
+ "description": "",
"editable": true,
"error": false,
"fieldConfig": {
@@ -3218,23 +2108,24 @@
},
"overrides": []
},
- "fill": 2,
+ "fill": 6,
"fillGradient": 0,
"grid": {},
"gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 87
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 64
},
"hiddenSeries": false,
- "id": 31,
+ "id": 1177,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
+ "rightSide": true,
"show": true,
"sort": "avg",
"sortDesc": true,
@@ -3244,37 +2135,40 @@
"lines": true,
"linewidth": 2,
"links": [],
+ "maxPerRow": 2,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
+ "repeatDirection": "h",
"seriesOverrides": [],
"spaceLength": 10,
- "stack": false,
+ "stack": true,
"steppedLine": false,
"targets": [
{
- "exemplar": true,
- "expr": "sum by () (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or \nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)",
+ "editorMode": "code",
+ "expr": "sum by (set) (avg by (service_name,set) (mongodb_connections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", state=\"available\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))",
"hide": false,
- "interval": "$interval",
- "legendFormat": "Cursors",
+ "interval": "",
+ "legendFormat": "{{service_name}}",
+ "range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Mongos Cursors",
+ "title": "Available Connections",
"tooltip": {
"msResolution": false,
"shared": true,
- "sort": 5,
- "value_type": "cumulative"
+ "sort": 0,
+ "value_type": "individual"
},
"type": "graph",
"xaxis": {
@@ -3284,6 +2178,7 @@
},
"yaxes": [
{
+ "decimals": 2,
"format": "short",
"label": "",
"logBase": 1,
@@ -3293,7 +2188,7 @@
{
"format": "short",
"logBase": 1,
- "show": true
+ "show": false
}
],
"yaxis": {
@@ -3301,176 +2196,155 @@
}
},
{
- "collapsed": true,
+ "collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 95
+ "y": 71
},
- "id": 62,
- "panels": [
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "",
- "editable": true,
- "error": false,
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 49
- },
- "hiddenSeries": false,
- "id": 1179,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
+ "id": 1199,
+ "panels": [],
+ "title": "Chunks in Shards",
+ "type": "row"
+ },
+ {
+ "default_title_for_rows": "Shard Name",
+ "description": "A chunk consists of a subset of sharded data.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
},
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "dataLinks": []
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "filterable": false,
+ "inspect": false
},
- "percentage": false,
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Total",
- "color": "#C4162A",
- "fill": 0,
- "legend": false,
- "stack": false
- }
- ],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "expr": "sum by (service_name) (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or max_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)",
- "hide": false,
- "interval": "$interval",
- "legendFormat": "{{service_name}}",
- "refId": "A"
+ "mappings": [],
+ "noValue": "-",
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red"
+ }
+ ]
+ }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Shard Name"
},
- {
- "expr": "sum by () (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or max_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)",
- "interval": "$interval",
- "legendFormat": "Total",
- "refId": "B"
- }
+ "properties": [
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?${cluster:queryparam}&var-rs_nm=${__value.text}&${interval:queryparam}&${__url_time_range}&${environment:queryparam}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 6,
+ "x": 0,
+ "y": 72
+ },
+ "hide_headers": false,
+ "id": 1200,
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
],
- "thresholds": [],
- "timeRegions": [],
- "title": "Mongos Cursors",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
+ "show": false
+ },
+ "showHeader": true
+ },
+ "pluginVersion": "9.2.20",
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ },
+ "targets": [
+ {
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "avg by (shard) (mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\",db!~\"admin|config\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{shard}} | Chunks",
+ "range": false,
+ "refId": "A"
+ }
+ ],
+ "title": "Amount of Chunks in Shards",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "Time": true
},
- {
- "format": "short",
- "logBase": 1,
- "show": false
+ "indexByName": {},
+ "renameByName": {
+ "Value": "Chunks",
+ "shard": "Shard Name"
}
- ],
- "yaxis": {
- "align": false
}
}
],
- "title": "Cursors Details",
- "type": "row"
- },
- {
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 96
- },
- "id": 1056,
- "title": "Mongos Operations",
- "type": "row"
+ "type": "table"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
- "decimals": 0,
- "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).",
- "editable": true,
- "error": false,
+ "decimals": 2,
+ "description": "The sharding operation creates the initial chunk(s) to cover the entire range of the shard key values. The number of chunks created depends on the configured chunk size. After the initial chunk creation, the balancer migrates these initial chunks across the shards as appropriate as well as manages the chunk distribution going forward.",
"fieldConfig": {
"defaults": {
"links": [
{
"targetBlank": true,
- "title": "MongoDB ReplSet Summary - ${__series.name}",
+ "title": "MongoDB ReplSet Summary",
"url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
}
]
},
"overrides": []
},
- "fill": 6,
+ "fill": 2,
"fillGradient": 0,
- "grid": {},
"gridPos": {
"h": 8,
- "w": 12,
- "x": 0,
- "y": 97
+ "w": 18,
+ "x": 6,
+ "y": 72
},
"hiddenSeries": false,
- "id": 30,
+ "id": 1201,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
- "hideEmpty": false,
- "hideZero": false,
"max": true,
"min": true,
- "rightSide": false,
+ "rightSide": true,
"show": true,
"sort": "avg",
"sortDesc": true,
@@ -3479,39 +2353,32 @@
},
"lines": true,
"linewidth": 2,
- "links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
+ "pluginVersion": "9.2.20",
+ "pointradius": 2,
"points": false,
"renderer": "flot",
- "seriesOverrides": [
- {}
- ],
+ "seriesOverrides": [],
"spaceLength": 10,
- "stack": true,
+ "stack": false,
"steppedLine": false,
"targets": [
{
- "expr": "sum(sum(rate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[5m])) by (instance) * on (instance) \ngroup_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)",
- "format": "time_series",
- "hide": false,
+ "exemplar": true,
+ "expr": "avg by (shard) (rate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[$interval]) or irate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[5m]))",
"interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{set}}",
- "refId": "A",
- "step": 300
+ "legendFormat": "{{shard}}",
+ "refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Operations Per Shard",
+ "title": "Dynamic of Chunks",
"tooltip": {
- "msResolution": false,
"shared": true,
"sort": 5,
"value_type": "individual"
@@ -3525,10 +2392,9 @@
"yaxes": [
{
"decimals": 2,
- "format": "ops",
- "label": "",
+ "format": "cps",
"logBase": 1,
- "min": 0,
+ "min": "0",
"show": true
},
{
@@ -3543,13 +2409,11 @@
},
{
"aliasColors": {},
- "bars": false,
+ "bars": true,
"dashLength": 10,
"dashes": false,
"decimals": 2,
- "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).",
- "editable": true,
- "error": false,
+ "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ",
"fieldConfig": {
"defaults": {
"links": []
@@ -3558,21 +2422,18 @@
},
"fill": 2,
"fillGradient": 0,
- "grid": {},
"gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 97
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 80
},
"hiddenSeries": false,
- "id": 46,
- "interval": "",
+ "id": 1216,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
- "hideZero": true,
"max": true,
"min": true,
"rightSide": false,
@@ -3582,16 +2443,15 @@
"total": false,
"values": true
},
- "lines": true,
+ "lines": false,
"linewidth": 2,
- "links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
+ "pluginVersion": "9.2.20",
+ "pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
@@ -3600,24 +2460,20 @@
"steppedLine": false,
"targets": [
{
- "expr": "sum by (type) (rate(mongodb_op_counters_total{cluster=~\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=~\"$cluster\", type!=\"command\"}[5m]))",
- "format": "time_series",
- "hide": false,
+ "exemplar": true,
+ "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[5m]))",
"interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{type}}",
- "refId": "J",
- "step": 300
+ "legendFormat": "{{event}}",
+ "refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Total Mongos Operations",
+ "title": "Chunks Move Events",
"tooltip": {
- "msResolution": false,
"shared": true,
"sort": 5,
- "value_type": "cumulative"
+ "value_type": "individual"
},
"type": "graph",
"xaxis": {
@@ -3628,44 +2484,28 @@
"yaxes": [
{
"decimals": 2,
- "format": "ops",
- "label": "",
+ "format": "short",
"logBase": 1,
- "min": 0,
+ "min": "0",
"show": true
},
{
"format": "short",
"logBase": 1,
- "show": true
+ "show": false
}
],
"yaxis": {
"align": false
}
},
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 105
- },
- "id": 52,
- "panels": [],
- "title": "Operations Details",
- "type": "row"
- },
{
"aliasColors": {},
- "bars": false,
+ "bars": true,
"dashLength": 10,
"dashes": false,
"decimals": 2,
- "description": "",
- "editable": true,
- "error": false,
+ "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.",
"fieldConfig": {
"defaults": {
"links": []
@@ -3674,21 +2514,18 @@
},
"fill": 2,
"fillGradient": 0,
- "grid": {},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
- "y": 106
+ "y": 87
},
"hiddenSeries": false,
- "id": 53,
- "interval": "",
+ "id": 1212,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
- "hideZero": true,
"max": true,
"min": true,
"rightSide": false,
@@ -3698,45 +2535,37 @@
"total": false,
"values": true
},
- "lines": true,
+ "lines": false,
"linewidth": 2,
- "links": [],
- "maxPerRow": 2,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
+ "pluginVersion": "9.2.20",
+ "pointradius": 2,
"points": false,
"renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
- "expr": "sum by (type) (rate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\",service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\",service_name=~\"$service_name\"}[5m]))",
- "format": "time_series",
- "hide": false,
+ "exemplar": true,
+ "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[5m]))",
"interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{type}}",
- "refId": "J",
- "step": 300
+ "legendFormat": "{{event}}",
+ "refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Operations $service_name",
+ "title": "Chunks Split Events",
"tooltip": {
- "msResolution": false,
"shared": true,
"sort": 5,
- "value_type": "cumulative"
+ "value_type": "individual"
},
"type": "graph",
"xaxis": {
@@ -3747,16 +2576,15 @@
"yaxes": [
{
"decimals": 2,
- "format": "ops",
- "label": "",
+ "format": "short",
"logBase": 1,
- "min": 0,
+ "min": "0",
"show": true
},
{
"format": "short",
"logBase": 1,
- "show": true
+ "show": false
}
],
"yaxis": {
@@ -3769,11 +2597,11 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 113
+ "y": 94
},
"id": 97,
"panels": [],
- "title": "Other",
+ "title": "Replication",
"type": "row"
},
{
@@ -3802,7 +2630,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 114
+ "y": 95
},
"hiddenSeries": false,
"id": 14,
@@ -3828,7 +2656,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -3838,19 +2666,17 @@
"steppedLine": false,
"targets": [
{
- "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval]) > 0) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m]) > 0) by (service_name,set))",
- "format": "time_series",
+ "editorMode": "code",
+ "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval])) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m])) by (service_name,set))",
"hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{set}}",
- "refId": "B",
- "step": 300
+ "legendFormat": "__auto",
+ "range": true,
+ "refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Replication Lag by Set",
+ "title": "Replication Lag by Shard",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -3908,7 +2734,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 114
+ "y": 95
},
"hiddenSeries": false,
"id": 27,
@@ -3934,7 +2760,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -3956,7 +2782,7 @@
],
"thresholds": [],
"timeRegions": [],
- "title": "Oplog Range by Set",
+ "title": "Oplog Range by Shard",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -3986,101 +2812,10 @@
"yaxis": {
"align": false
}
- },
- {
- "aliasColors": {},
- "bars": true,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "Count, over last 10 minutes, of all types of config db changelog events.",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 122
- },
- "hiddenSeries": false,
- "id": 1213,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": false,
- "linewidth": 2,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "expr": "rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*(shard|Shard).*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*(shard|Shard).*\"}[5m])",
- "interval": "$interval",
- "legendFormat": "{{event}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Change Log Events",
- "tooltip": {
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
}
],
- "refresh": "1m",
- "schemaVersion": 34,
+ "refresh": false,
+ "schemaVersion": 37,
"style": "dark",
"tags": [
"MongoDB_HA",
@@ -4148,127 +2883,19 @@
}
],
"query": "1s,5s,1m,5m,1h,6h,1d",
+ "queryValue": "",
"refresh": 2,
"skipUrlSync": false,
"type": "interval"
},
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "mongodb_cluster",
- "value": "mongodb_cluster"
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_up,cluster)",
- "hide": 0,
- "includeAll": false,
- "label": "Cluster",
- "multi": false,
- "multiFormat": "glob",
- "name": "cluster",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up,cluster)",
- "refId": "Metrics-cluster-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_up{cluster=\"$cluster\"},service_name)",
- "hide": 2,
- "includeAll": true,
- "label": "Service Name",
- "multi": true,
- "name": "service_name",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up{cluster=\"$cluster\"},service_name)",
- "refId": "Metrics-service_name-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
- "hide": 2,
- "includeAll": true,
- "label": "Shard Name",
- "multi": true,
- "name": "shard",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
- "refId": "Metrics-shard-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": "Metrics",
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)",
- "hide": 2,
- "includeAll": true,
- "label": "Node Name",
- "multi": true,
- "name": "node_name",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)",
- "refId": "Metrics-node_name-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
- "datasource": "Metrics",
"definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
- "hide": 2,
+ "hide": 0,
"includeAll": true,
"label": "Environment",
"multi": true,
@@ -4288,56 +2915,28 @@
"useTags": false
},
{
+ "allFormat": "glob",
"current": {
"selected": false,
- "text": "All",
- "value": "$__all"
+ "text": "",
+ "value": ""
},
- "datasource": "Metrics",
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
- "hide": 2,
- "includeAll": true,
- "label": "Replication Set",
- "multi": true,
- "name": "replication_set",
+ "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "Cluster",
+ "multi": false,
+ "multiFormat": "glob",
+ "name": "cluster",
"options": [],
"query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
- "refId": "Metrics-replication_set-Variable-Query"
+ "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
+ "refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": "Metrics",
- "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
- "hide": 2,
- "includeAll": true,
- "label": "Database",
- "multi": true,
- "name": "database",
- "options": [],
- "query": {
- "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
- "refId": "Metrics-database-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
"type": "query",
"useTags": false
},
@@ -4347,19 +2946,18 @@
"text": "All",
"value": "$__all"
},
- "datasource": "Metrics",
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
+ "definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
"hide": 2,
"includeAll": true,
- "label": "Type",
+ "label": "Shard Name",
"multi": true,
- "name": "node_type",
+ "name": "shard",
"options": [],
"query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
- "refId": "Metrics-node_type-Variable-Query"
+ "query": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
+ "refId": "Metrics-shard-Variable-Query"
},
- "refresh": 1,
+ "refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
@@ -4370,23 +2968,26 @@
},
{
"current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
- "datasource": "Metrics",
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
+ "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
"hide": 2,
"includeAll": true,
- "label": "Type",
+ "label": "Replica Set",
"multi": true,
- "name": "service_type",
+ "name": "set",
"options": [],
"query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
- "refId": "Metrics-service_type-Variable-Query"
+ "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
+ "refId": "StandardVariableQuery"
},
- "refresh": 1,
+ "refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
@@ -4401,19 +3002,18 @@
"text": "All",
"value": "$__all"
},
- "datasource": "Metrics",
- "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
+ "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)",
"hide": 2,
"includeAll": true,
- "label": "Username",
+ "label": "Node",
"multi": true,
- "name": "username",
+ "name": "service_name",
"options": [],
"query": {
- "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
- "refId": "Metrics-username-Variable-Query"
+ "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)",
+ "refId": "StandardVariableQuery"
},
- "refresh": 1,
+ "refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
@@ -4421,18 +3021,6 @@
"tagsQuery": "",
"type": "query",
"useTags": false
- },
- {
- "current": {},
- "hide": 2,
- "includeAll": true,
- "label": "Schema",
- "multi": true,
- "name": "schema",
- "options": [],
- "query": "",
- "skipUrlSync": false,
- "type": "custom"
}
]
},
@@ -4464,8 +3052,8 @@
"30d"
]
},
- "timezone": "",
- "title": "MongoDB Cluster Summary",
+ "timezone": "browser",
+ "title": "MongoDB Sharded Cluster Summary",
"uid": "mongodb-cluster-summary",
"version": 1,
"weekStart": ""
diff --git a/dashboards/Experimental/MongoDB_Collections_Overview.json b/dashboards/MongoDB/MongoDB_Collections_Overview.json
similarity index 99%
rename from dashboards/Experimental/MongoDB_Collections_Overview.json
rename to dashboards/MongoDB/MongoDB_Collections_Overview.json
index a1585b1613..42a4b684a8 100644
--- a/dashboards/Experimental/MongoDB_Collections_Overview.json
+++ b/dashboards/MongoDB/MongoDB_Collections_Overview.json
@@ -1669,7 +1669,7 @@
"style": "dark",
"tags": [
"Percona",
- "MongoDB_HA"
+ "MongoDB"
],
"templating": {
"list": [
diff --git a/dashboards/MongoDB/MongoDB_MMAPv1_Details.json b/dashboards/MongoDB/MongoDB_MMAPv1_Details.json
index a3b886726b..54b35d9942 100644
--- a/dashboards/MongoDB/MongoDB_MMAPv1_Details.json
+++ b/dashboards/MongoDB/MongoDB_MMAPv1_Details.json
@@ -3404,7 +3404,6 @@
"schemaVersion": 34,
"style": "dark",
"tags": [
- "MongoDB",
"Percona"
],
"templating": {
diff --git a/dashboards/Experimental/MongoDB_Oplog_Details.json b/dashboards/MongoDB/MongoDB_Oplog_Details.json
similarity index 99%
rename from dashboards/Experimental/MongoDB_Oplog_Details.json
rename to dashboards/MongoDB/MongoDB_Oplog_Details.json
index f15cdd7ecb..463e5c0924 100644
--- a/dashboards/Experimental/MongoDB_Oplog_Details.json
+++ b/dashboards/MongoDB/MongoDB_Oplog_Details.json
@@ -1211,7 +1211,7 @@
"style": "dark",
"tags": [
"Percona",
- "MongoDB_HA"
+ "MongoDB"
],
"templating": {
"list": [
@@ -1394,7 +1394,7 @@
"text": "",
"value": ""
},
- "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\",replication_set=~\"$replset\"}, service_name)",
+ "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$replset\"}, service_name)",
"hide": 0,
"includeAll": false,
"label": "MongoDB Node",
@@ -1403,7 +1403,7 @@
"name": "service_name",
"options": [],
"query": {
- "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\",replication_set=~\"$replset\"}, service_name)",
+ "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$replset\"}, service_name)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
diff --git a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
index 678f58083d..ba98b88ae8 100644
--- a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
+++ b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
@@ -55,6 +55,7 @@
"editable": false,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
+ "id": null,
"links": [
{
"icon": "doc",
@@ -141,75 +142,140 @@
"panels": [
{
"collapsed": false,
- "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
- "id": 1022,
+ "id": 1030,
"panels": [],
- "targets": [
- {
- "datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "Overview",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "title": "Overview - $service_name",
"type": "row"
},
{
- "datasource": "Metrics",
- "description": "",
+ "description": "Read more about [Replica Set Member States](https://per.co.na/mongo-repstate).",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ },
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "index": 11,
+ "text": "STARTUP"
+ },
+ "1": {
+ "color": "rgb(107, 152, 102)",
+ "index": 4,
+ "text": "PRIMARY"
+ },
+ "2": {
+ "color": "rgb(193, 159, 20)",
+ "index": 3,
+ "text": "SECONDARY"
+ },
+ "3": {
+ "index": 10,
+ "text": "RECOVERING"
+ },
+ "5": {
+ "index": 9,
+ "text": "STARTUP2"
+ },
+ "6": {
+ "index": 8,
+ "text": "UNKNOWN"
+ },
+ "7": {
+ "color": "#8B8000",
+ "index": 1,
+ "text": "ARBITER"
+ },
+ "8": {
+ "index": 7,
+ "text": "DOWN"
+ },
+ "9": {
+ "index": 6,
+ "text": "ROLLBACK"
+ },
+ "10": {
+ "index": 5,
+ "text": "REMOVED"
+ },
+ "null": {
+ "color": "#FF7383",
+ "index": 2,
+ "text": "Exporter is not connected"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
"gridPos": {
- "h": 3,
- "w": 5,
+ "h": 4,
+ "w": 2,
"x": 0,
"y": 1
},
- "id": 1228,
- "links": [],
+ "id": 1586,
"options": {
- "code": {
- "language": "plaintext",
- "showLineNumbers": false,
- "showMiniMap": false
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "center",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
},
- "content": "",
- "mode": "html"
+ "textMode": "value"
},
"pluginVersion": "9.2.20",
"targets": [
{
- "calculatedInterval": "10m",
- "datasource": "Metrics",
- "datasourceErrors": {},
- "errors": {},
- "expr": "mysql_global_variables_innodb_buffer_pool_size{service_name=~\"$service_name\"} ",
- "format": "time_series",
+ "editorMode": "code",
+ "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})",
"interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "",
- "metric": "",
- "refId": "A",
- "step": 300
+ "legendFormat": "{{set}}",
+ "range": true,
+ "refId": "A"
}
],
- "title": "Cluster Name",
- "type": "text"
+ "title": "State",
+ "type": "stat"
},
{
- "datasource": "Metrics",
- "description": "This shows how many members are configured in the replica set.",
+ "description": "The CPU time is measured in clock ticks or seconds. It is useful to measure CPU time as a percentage of the CPU's capacity, which is called the CPU usage.",
"fieldConfig": {
"defaults": {
"color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
+ "mode": "thresholds"
},
- "decimals": 0,
+ "links": [],
"mappings": [],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -223,25 +289,156 @@
}
]
},
- "unit": "none"
+ "unit": "percent"
},
- "overrides": []
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Max Core Utilization"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#bf1b00",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "idle"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#806EB7",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "iowait"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#E24D42",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "nice"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#1F78C1",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "softirq"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#FFFFFF",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "steal"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#8F3BB8",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "system"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#EAB839",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "user"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#508642",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "steal"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#FFEE52",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 5,
+ "h": 4,
+ "w": 2.5,
+ "x": 2,
"y": 1
},
- "hideTimeOverride": false,
- "id": 59,
+ "id": 1071,
"links": [],
- "maxDataPoints": 100,
"options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
+ "orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -249,38 +446,36 @@
"fields": "",
"values": false
},
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
},
"pluginVersion": "9.2.20",
"targets": [
{
- "datasource": "Metrics",
- "expr": "count by (set) (group by (service_name, set) (mongodb_mongod_replset_number_of_members{cluster=~\"$cluster\",set=~\"$replset\"} or mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=~\"$replset\"}))",
- "interval": "5m",
+ "editorMode": "code",
+ "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (100 - (avg by(node_id) (rate(node_cpu_seconds_total{mode=\"idle\"}[1m])) * 100))",
+ "format": "time_series",
+ "interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "",
- "metric": "",
- "refId": "A",
- "step": 300
+ "legendFormat": "{{ mode }}",
+ "range": true,
+ "refId": "B"
}
],
- "title": "ReplSet Members",
- "type": "stat"
+ "title": "CPU Usage",
+ "type": "gauge"
},
{
- "datasource": "Metrics",
- "description": "This shows the time since the last election.",
+ "description": "Estimated how much memory can be used without swapping",
"fieldConfig": {
"defaults": {
"color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
+ "mode": "thresholds"
},
- "decimals": 2,
+ "links": [],
"mappings": [],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -294,25 +489,20 @@
}
]
},
- "unit": "s"
+ "unit": "percentunit"
},
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 9,
+ "h": 4,
+ "w": 2.5,
+ "x": 4.5,
"y": 1
},
- "hideTimeOverride": false,
- "id": 1227,
+ "id": 1060,
"links": [],
- "maxDataPoints": 100,
"options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
+ "orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -320,38 +510,37 @@
"fields": "",
"values": false
},
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
},
"pluginVersion": "9.2.20",
"targets": [
{
- "datasource": "Metrics",
- "expr": "time() - max(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"})",
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "",
- "metric": "",
- "refId": "A",
- "step": 300
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (1 - avg by(node_id)(node_memory_MemAvailable_bytes)/ avg by (node_id) (node_memory_MemTotal_bytes))",
+ "hide": false,
+ "instant": false,
+ "legendFormat": "__auto",
+ "range": true,
+ "refId": "A"
}
],
- "title": "ReplSet Last Election",
- "type": "stat"
+ "title": "Memory Used",
+ "type": "gauge"
},
{
- "datasource": "Metrics",
- "description": "This panel shows how far behind in replication this member is if it is a secondary. This number may be high it the instance is running as a delayed secondary member.",
+ "description": "Shows disk Utilization as a percentage of the time when there was at least one IO request in flight. It is designed to match utilization available in iostat tool. The graph augments the IO latency and Disk Load Graphs, allowing to determine if the disk load was evenly distributed in time or consuming the IO momentarily. Higher utilization increases the likeliness of IO queuing. Always consider this metric along with response time and IO queue depth.",
"fieldConfig": {
"defaults": {
"color": {
- "fixedColor": "rgb(31, 120, 193)",
- "mode": "fixed"
+ "mode": "thresholds"
},
- "decimals": 2,
+ "decimals": 1,
+ "links": [],
"mappings": [],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -365,25 +554,20 @@
}
]
},
- "unit": "s"
+ "unit": "percentunit"
},
"overrides": []
},
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 13,
+ "h": 4,
+ "w": 2.5,
+ "x": 7,
"y": 1
},
- "hideTimeOverride": true,
- "id": 77,
+ "id": 1073,
"links": [],
- "maxDataPoints": 100,
"options": {
- "colorMode": "none",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "horizontal",
+ "orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -391,1859 +575,1465 @@
"fields": "",
"values": false
},
- "text": {
- "valueSize": 20
- },
- "textMode": "auto"
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
},
"pluginVersion": "9.2.20",
"targets": [
{
- "datasource": "Metrics",
- "exemplar": false,
- "expr": "avg by (set) (max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$service_name\"}[${__range}]))",
- "format": "time_series",
- "hide": false,
- "instant": true,
+ "editorMode": "code",
+ "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_disk_io_time_seconds_total[$interval])) or (sum by (node_id) (irate(node_disk_io_time_seconds_total[5m]))))",
"interval": "$interval",
- "legendFormat": "",
+ "legendFormat": "{{ node_name }}",
+ "range": true,
"refId": "B"
}
],
- "timeFrom": "1m",
- "title": "Avg ReplSet Lag",
- "type": "stat"
+ "title": "Disk IO Utilization",
+ "type": "gauge"
},
{
- "columns": [],
- "datasource": "Metrics",
- "description": "",
- "fontSize": "100%",
- "gridPos": {
- "h": 11,
- "w": 7,
- "x": 17,
- "y": 1
- },
- "hideTimeOverride": true,
- "id": 78,
- "links": [],
- "showHeader": true,
- "sort": {
- "col": 0,
- "desc": true
- },
- "styles": [
- {
- "alias": "Time",
- "align": "auto",
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "pattern": "Time",
- "type": "hidden"
+ "description": "Shows information about the disk space usage of the specified mountpoint.\n\n**Used** is the amount of space used.\n\n**Free** is the amount of space not in use.\n\n**Used+Free** is the total disk space allocated to the mountpoint.\n\nHaving *Free* close to 0 B is not good because of the risk to have a “disk full” error that can block one of the services or even cause a crash of the entire system.\n\nIn case Free is close to 0 B consider to remove unused files or to expand the space allocated to the mountpoint.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "links": [],
+ "mappings": [],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "percentunit"
},
- {
- "alias": "Service Name",
- "align": "auto",
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 4,
+ "w": 2.5,
+ "x": 9.5,
+ "y": 1
+ },
+ "id": 1062,
+ "options": {
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "link": true,
- "linkTargetBlank": true,
- "linkTooltip": "MongoDB Instance Summary - ${__cell}",
- "linkUrl": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__cell}",
- "mappingType": 1,
- "pattern": "service_name",
- "thresholds": [],
- "type": "string",
- "unit": "short"
+ "fields": "",
+ "values": false
},
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
+ },
+ "pluginVersion": "9.2.20",
+ "repeatDirection": "h",
+ "targets": [
{
- "alias": "Version",
- "align": "auto",
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "mongodb",
- "thresholds": [],
- "type": "string",
- "unit": "short"
+ "editorMode": "code",
+ "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})/ avg (mongodb_dbstats_fsTotalSize{service_name=~\"$service_name\"})",
+ "hide": false,
+ "interval": "$interval",
+ "legendFormat": "Total Size",
+ "range": true,
+ "refId": "A"
},
{
- "alias": "",
- "align": "auto",
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "Value",
- "thresholds": [],
- "type": "hidden",
- "unit": "short"
+ "editorMode": "code",
+ "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})",
+ "hide": true,
+ "interval": "$interval",
+ "legendFormat": "Usage",
+ "range": true,
+ "refId": "C"
}
],
+ "title": "Disk Space Utilization",
+ "type": "gauge"
+ },
+ {
+ "description": "Shows amount of physical IOs (reads and writes) different devices are serving. Spikes in number of IOs served often corresponds to performance problems due to IO subsystem overload.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 4,
+ "w": 4,
+ "x": 12,
+ "y": 1
+ },
+ "id": 1076,
+ "links": [],
+ "options": {
+ "colorMode": "value",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "9.2.20",
"targets": [
{
- "datasource": "Metrics",
- "exemplar": false,
- "expr": "avg by (service_name,engine) (mongodb_mongod_storage_engine{service_name=~\"$service_name\"})",
- "format": "table",
- "hide": true,
- "instant": true,
- "interval": "5m",
+ "calculatedInterval": "2m",
+ "datasourceErrors": {},
+ "editorMode": "code",
+ "errors": {},
+ "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (sum by (node_id)(\n(rate(node_disk_reads_completed_total[$interval]) or \nirate(node_disk_reads_completed_total[5s]))\n)))",
+ "format": "time_series",
+ "interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "{{ engine }}",
+ "legendFormat": "Read",
"metric": "",
+ "range": true,
"refId": "A",
- "step": 300
+ "step": 300,
+ "target": ""
},
{
- "datasource": "Metrics",
- "exemplar": false,
- "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})",
- "format": "table",
- "instant": true,
- "interval": "5m",
- "legendFormat": "{{mongodb}}",
- "refId": "B"
+ "calculatedInterval": "2m",
+ "datasourceErrors": {},
+ "editorMode": "code",
+ "errors": {},
+ "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (sum by(node_id)(\n(rate(node_disk_writes_completed_total[$interval]) or \nirate(node_disk_writes_completed_total[5s])) \n)))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Write",
+ "metric": "",
+ "range": true,
+ "refId": "B",
+ "step": 300,
+ "target": ""
}
],
- "timeFrom": "1m",
- "title": "MongoDB Versions",
- "transform": "table",
- "type": "table-old"
+ "title": "Disk IOPS",
+ "type": "stat"
},
{
- "datasource": "Metrics",
- "description": "ReplSet statuses during the select time range.",
+ "description": "Network traffic refers to the amount of data moving across a network at a given point in time.",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
- "mode": "palette-classic"
- },
- "custom": {
- "fillOpacity": 100,
- "lineWidth": 0,
- "spanNulls": false
+ "mode": "fixed"
},
- "mappings": [
- {
- "options": {
- "0": {
- "index": 11,
- "text": "STARTUP"
- },
- "1": {
- "color": "rgb(107, 152, 102)",
- "index": 4,
- "text": "PRIMARY"
- },
- "2": {
- "color": "rgb(193, 159, 20)",
- "index": 3,
- "text": "SECONDARY"
- },
- "3": {
- "index": 10,
- "text": "RECOVERING"
- },
- "5": {
- "index": 9,
- "text": "STARTUP2"
- },
- "6": {
- "index": 8,
- "text": "UNKNOWN"
- },
- "7": {
- "color": "#8B8000",
- "index": 1,
- "text": "ARBITER"
- },
- "8": {
- "index": 7,
- "text": "DOWN"
- },
- "9": {
- "index": 6,
- "text": "ROLLBACK"
- },
- "10": {
- "index": 5,
- "text": "REMOVED"
- },
- "null": {
- "color": "#FF7383",
- "index": 2,
- "text": "Exporter is not connected"
- }
- },
- "type": "value"
- },
+ "decimals": 0,
+ "links": [
{
- "options": {
- "from": 0,
- "result": {
- "index": 0,
- "text": "N/A"
- },
- "to": 1
- },
- "type": "range"
+ "targetBlank": true,
+ "title": "Network Details - ${__field.labels.node_name}",
+ "url": "/graph/d/node-network/network-details?var-node_name=${__field.labels.node_name}&$__url_time_range"
}
],
+ "mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
- },
- {
- "color": "red",
- "value": 6
}
]
},
- "unit": "short"
+ "unit": "Bps"
},
"overrides": []
},
"gridPos": {
- "h": 8,
- "w": 17,
- "x": 0,
- "y": 4
+ "h": 4,
+ "w": 4,
+ "x": 16,
+ "y": 1
},
- "id": 1559,
+ "id": 1052,
+ "links": [],
"options": {
- "alignValue": "right",
- "legend": {
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
+ "colorMode": "value",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
},
- "mergeValues": true,
- "rowHeight": 0.9,
- "showValue": "auto",
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "textMode": "auto"
},
- "pluginVersion": "6.5.1",
+ "pluginVersion": "9.2.20",
"targets": [
{
- "datasource": "Metrics",
+ "calculatedInterval": "2s",
+ "datasourceErrors": {},
"editorMode": "code",
- "exemplar": false,
- "expr": "max by (service_name) (mongodb_mongod_replset_my_state{set=~\"$replset\",service_name=~\"$service_name\"})",
+ "errors": {},
+ "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_network_receive_bytes_total{device!=\"lo\"}[$interval])) or sum by (node_id) (irate(node_network_receive_bytes_total{device!=\"lo\"}[5m])) or sum by (node_id) (max_over_time(rdsosmetrics_network_rx[$interval])) or sum by (node_id) (max_over_time(rdsosmetrics_network_rx[5m])))",
"format": "time_series",
- "hide": false,
- "instant": false,
"interval": "$interval",
- "legendFormat": "{{service_name}}",
+ "intervalFactor": 1,
+ "legendFormat": "Inbound",
+ "metric": "",
"range": true,
- "refId": "A"
- }
- ],
- "title": "ReplSet States",
- "transformations": [],
- "type": "state-timeline"
- },
- {
- "collapsed": true,
- "datasource": "Metrics",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12
- },
- "id": 1024,
- "panels": [
+ "refId": "B",
+ "step": 300,
+ "target": ""
+ },
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "MongoDB replication lag occurs when the secondary node cannot replicate data fast enough to keep up with the rate that data is being written to the primary node. It could be caused by something as simple as network latency, packet loss within your network, or a routing issue.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__series.name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 34
- },
- "hiddenSeries": false,
- "id": 14,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null as zero",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "Avg",
- "color": "#C4162A",
- "fill": 0,
- "legend": false,
- "stack": false
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) ((max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0) by (service_name,set)) or (max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[5m]) > 0) by (service_name,set)))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}",
- "refId": "A",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) ((max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0) by (service_name,set)) or (max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[5m]) > 0) by (service_name,set)))",
- "hide": true,
- "interval": "$interval",
- "legendFormat": "Avg",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Replication Lag",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
+ "calculatedInterval": "2s",
+ "datasourceErrors": {},
+ "editorMode": "code",
+ "errors": {},
+ "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_network_transmit_bytes_total{device!=\"lo\"}[$interval])) or sum by (node_id) (irate(node_network_transmit_bytes_total{device!=\"lo\"}[5m])) or\nsum by (node_id) (max_over_time(rdsosmetrics_network_tx[$interval])) or sum by (node_id) (max_over_time(rdsosmetrics_network_tx[5m])))",
+ "format": "time_series",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Outbound",
+ "metric": "",
+ "range": true,
+ "refId": "A",
+ "step": 300,
+ "target": ""
+ }
+ ],
+ "title": "Network Traffic",
+ "type": "stat"
+ },
+ {
+ "description": "The parameter shows how long a system has been “up” and running without a shut down or restart.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
},
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
+ "decimals": 1,
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "rgba(245, 54, 54, 0.9)",
+ "value": null
+ },
+ {
+ "color": "rgba(237, 129, 40, 0.89)",
+ "value": 300
+ },
+ {
+ "color": "rgba(50, 172, 45, 0.97)",
+ "value": 3600
+ }
+ ]
},
- "y-axis": true,
- "y_formats": [
- "s",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "s",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
+ "unit": "s"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 4,
+ "w": 2,
+ "x": 20,
+ "y": 1
+ },
+ "id": 321,
+ "interval": "$interval",
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
],
- "yaxis": {
- "align": false
- }
- }
- ],
+ "fields": "",
+ "values": false
+ },
+ "text": {},
+ "textMode": "auto"
+ },
+ "pluginVersion": "9.2.20",
"targets": [
{
- "datasource": "Metrics",
- "refId": "A"
+ "calculatedInterval": "10m",
+ "datasourceErrors": {},
+ "editorMode": "code",
+ "errors": {},
+ "exemplar": true,
+ "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (time() - container_start_time_seconds{id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_id) ((node_time_seconds - node_boot_time_seconds) or (time() - node_boot_time_seconds)))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "metric": "",
+ "range": true,
+ "refId": "A",
+ "step": 300
}
],
- "title": "Replication Lag",
- "type": "row"
+ "title": "Uptime",
+ "type": "stat"
},
{
- "collapsed": true,
- "datasource": "Metrics",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
+ },
+ "unit": "string"
+ },
+ "overrides": []
+ },
"gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 13
+ "h": 4,
+ "w": 2,
+ "x": 22,
+ "y": 1
},
- "id": 1019,
- "panels": [
+ "id": 1039,
+ "interval": "$interval",
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "colorMode": "none",
+ "graphMode": "none",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "/^mongodb$/",
+ "values": false
+ },
+ "text": {
+ "valueSize": 20
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "9.2.20",
+ "targets": [
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "Operations are classified by legacy wire protocol type (insert, update, and delete only).",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 35
- },
- "hiddenSeries": false,
- "id": 1020,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
+ "calculatedInterval": "10m",
+ "datasourceErrors": {},
+ "editorMode": "code",
+ "errors": {},
+ "exemplar": false,
+ "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "5m",
+ "intervalFactor": 1,
+ "legendFormat": "{{mongodb}}",
+ "metric": "",
+ "range": false,
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "title": "Version",
+ "type": "stat"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 15
+ },
+ "id": 1150,
+ "panels": [],
+ "title": "States - $rs_nm",
+ "type": "row"
+ },
+ {
+ "description": "ReplSet statuses during the selected time range.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "palette-classic"
},
- "lines": true,
- "linewidth": 2,
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - $service_name",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=$service_name$__url_time_range"
- }
- ],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
+ "custom": {
+ "fillOpacity": 100,
+ "lineWidth": 0,
+ "spanNulls": false
},
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name,type) (rate(mongodb_op_counters_repl_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_op_counters_repl_total{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "repl - {{type}}",
- "refId": "A",
- "step": 300
- },
+ "mappings": [
{
- "datasource": "Metrics",
- "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_counters_repl_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_op_counters_repl_total{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "repl - {{type}}",
- "refId": "B"
+ "options": {
+ "0": {
+ "index": 11,
+ "text": "STARTUP"
+ },
+ "1": {
+ "color": "rgb(107, 152, 102)",
+ "index": 4,
+ "text": "PRIMARY"
+ },
+ "2": {
+ "color": "rgb(193, 159, 20)",
+ "index": 3,
+ "text": "SECONDARY"
+ },
+ "3": {
+ "index": 10,
+ "text": "RECOVERING"
+ },
+ "5": {
+ "index": 9,
+ "text": "STARTUP2"
+ },
+ "6": {
+ "index": 8,
+ "text": "UNKNOWN"
+ },
+ "7": {
+ "color": "#8B8000",
+ "index": 1,
+ "text": "ARBITER"
+ },
+ "8": {
+ "index": 7,
+ "text": "DOWN"
+ },
+ "9": {
+ "index": 6,
+ "text": "ROLLBACK"
+ },
+ "10": {
+ "index": 5,
+ "text": "REMOVED"
+ },
+ "null": {
+ "color": "#FF7383",
+ "index": 2,
+ "text": "Exporter is not connected"
+ }
+ },
+ "type": "value"
},
{
- "datasource": "Metrics",
- "expr": "avg by (service_name,type) (rate(mongodb_op_counters_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "legendFormat": "{{type}}",
- "refId": "C"
+ "options": {
+ "from": 0,
+ "result": {
+ "index": 0,
+ "text": "N/A"
+ },
+ "to": 1
+ },
+ "type": "range"
}
],
- "thresholds": [],
- "timeRegions": [],
- "title": "Operations - $service_name",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 6
+ }
+ ]
},
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
+ "unit": "short"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 6,
+ "w": 24,
+ "x": 0,
+ "y": 16
+ },
+ "id": 1587,
+ "options": {
+ "alignValue": "right",
+ "legend": {
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "mergeValues": true,
+ "rowHeight": 0.9,
+ "showValue": "auto",
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
}
- ],
+ },
+ "pluginVersion": "6.5.1",
"targets": [
{
- "datasource": "Metrics",
+ "editorMode": "code",
+ "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})",
+ "interval": "$interval",
+ "legendFormat": "{{set}}",
+ "range": true,
"refId": "A"
}
],
- "title": "Operations",
- "type": "row"
+ "title": "Node States",
+ "transformations": [],
+ "type": "state-timeline"
},
{
- "collapsed": true,
- "datasource": "Metrics",
+ "collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 14
+ "y": 22
},
"id": 1170,
- "panels": [
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "This metric can show a correlation with the replication lag value.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 36
- },
- "hiddenSeries": false,
- "id": 13,
- "legend": {
- "alignAsTable": true,
- "avg": false,
- "current": false,
- "max": true,
- "min": false,
- "show": true,
- "sort": "max",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{service_name=~\"$service_name\"})\n* on (name) group_right(state) avg by (service_name,state,name) ((max_over_time(mongodb_mongod_replset_my_name[$interval]) or max_over_time(mongodb_mongod_replset_my_name[5m])))",
- "format": "time_series",
- "hide": true,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}} - {{name}} - {{state}}",
- "refId": "A",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "max by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{set=~\"$replset\",service_name=~\"$service_name\"}) or mongodb_rs_members_pingMs{service_name=~\"$service_name\", member_state!=\"\"}",
- "hide": true,
- "interval": "$interval",
- "legendFormat": "{{service_name}} - {{name}} - {{state}}",
- "refId": "B"
- },
- {
- "datasource": "Metrics",
- "expr": "max by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{set=~\"$replset\",service_name=~\"$service_name\"} or label_replace(label_replace(mongodb_rs_members_pingMs{service_name=~\"$service_name\", member_state!=\"\"},\"state\", \"$1\", \"member_state\", \"(.*)\"),\"name\", \"$1\", \"member_idx\", \"(.*)\"))",
- "interval": "$interval",
- "legendFormat": "{{service_name}} - {{name}}{{member_idx}} - {{state}}{{member_state}}",
- "refId": "D"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Max Member Ping Time - $service_name",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
+ "panels": [],
+ "title": "Details",
+ "type": "row"
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 23
+ },
+ "hiddenSeries": false,
+ "id": 15,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "/repl.*/",
+ "yaxis": 2
+ }
+ ],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "editorMode": "code",
+ "expr": "avg by (legacy_op_type) (rate(mongodb_ss_opcountersRepl{service_name=~\"$service_name\", legacy_op_type!~\"(command|query|getmore)\"}[$interval]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "repl_{{legacy_op_type}}",
+ "range": true,
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "editorMode": "code",
+ "expr": "avg by () (rate(mongodb_ss_metrics_ttl_deletedDocuments{service_name=~\"$service_name\"}[$interval]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "ttl_delete ",
+ "range": true,
+ "refId": "B",
+ "step": 300
+ },
+ {
+ "editorMode": "code",
+ "expr": "avg by (legacy_op_type) (rate(mongodb_ss_opcounters{service_name=~\"$service_name\", legacy_op_type!=\"command\"}[$interval]))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{legacy_op_type}} ",
+ "range": true,
+ "refId": "C",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Command Operations",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 2,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "description": "Show the 5 collections that are most frequently read.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "fixed"
},
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
+ "mappings": [],
+ "noValue": "0",
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
},
- "y-axis": true,
- "y_formats": [
- "ms",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ms",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
+ "unit": "ops"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 23
+ },
+ "id": 1024,
+ "links": [],
+ "options": {
+ "displayMode": "gradient",
+ "minVizHeight": 9,
+ "minVizWidth": 0,
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
],
- "yaxis": {
- "align": false
- }
- }
- ],
+ "fields": "",
+ "values": false
+ },
+ "showUnfilled": true,
+ "text": {}
+ },
+ "pluginVersion": "9.2.20",
+ "repeatDirection": "v",
"targets": [
{
- "datasource": "Metrics",
- "refId": "A"
+ "editorMode": "code",
+ "expr": "topk (5, sum by (database,collection) (rate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\",service_name=~\"$service_name\"})[$interval] or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\",service_name=~\"$service_name\"})[5s]))",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "{{database}}.{{collection}}",
+ "range": true,
+ "refId": "B"
}
],
- "title": "Max Member Ping Time",
- "type": "row"
+ "title": "Top Hottest Collections by Read",
+ "transformations": [],
+ "type": "bargauge"
},
{
- "collapsed": true,
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "Average latency of operations (classified by read, write, or (other) command)",
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
"gridPos": {
- "h": 1,
- "w": 24,
+ "h": 8,
+ "w": 12,
"x": 0,
- "y": 15
+ "y": 31
},
- "id": 1017,
- "panels": [
+ "hiddenSeries": false,
+ "id": 1064,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "editorMode": "code",
+ "expr": "avg by (op_type) (rate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[5m]) > 0))",
+ "interval": "$interval",
+ "legendFormat": "{{op_type}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Query execution times",
+ "tooltip": {
+ "shared": true,
+ "sort": 2,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
"decimals": 2,
- "description": "Time span between now and last heartbeat from replicaset members.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__series.name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 37
- },
- "hiddenSeries": false,
- "id": 75,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "time() - avg by (service_name) (max(mongodb_mongod_replset_member_last_heartbeat{service_name=~\"$service_name\"}) by (name)) * on (name) group_right avg by (service_name) (mongodb_mongod_replset_my_name{service_name=~\"$service_name\"})",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}",
- "metric": "",
- "refId": "J",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (max(mongodb_rs_heartbeatIntervalMillis{service_name=~\"$service_name\"}) by (name) / 1000) * on (name) group_right avg by (service_name) (mongodb_mongod_replset_my_name{service_name=~\"$service_name\"})",
- "hide": true,
- "interval": "$interval",
- "legendFormat": "Interval - {service_name}}",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Max Heartbeat Time",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "individual"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "s",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "s",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
+ "format": "µs",
+ "logBase": 1,
+ "min": "0",
+ "show": true
},
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "Count of elections. Usually zero; 1 count by each healthy node will appear in each election. Happens when the primary role changes due to either normal maintenance or trouble events.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__series.name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 37
- },
- "hiddenSeries": false,
- "id": 12,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "max by (service_name) (changes(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"}[$interval]))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}",
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Elections",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "description": "Show the 5 collections that are most frequently written to.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "fixed"
},
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
},
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
+ "unit": "ops"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 31
+ },
+ "id": 1028,
+ "options": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
],
- "yaxis": {
- "align": false
- }
- }
- ],
+ "fields": "",
+ "values": false
+ },
+ "showUnfilled": true
+ },
+ "pluginVersion": "9.2.20",
"targets": [
{
- "datasource": "Metrics",
+ "editorMode": "code",
+ "expr": "topk (5,sum by (database,collection) ((rate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[$interval]) or (irate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[5s])))",
+ "instant": false,
+ "interval": "",
+ "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0",
+ "legendFormat": "{{database}}.{{collection}}",
+ "range": true,
"refId": "A"
}
],
- "title": "Max Heartbeat Time / Elections",
- "type": "row"
+ "title": "Top Hottest Collections by Write",
+ "type": "bargauge"
},
{
- "collapsed": true,
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "Ratio of Documents (or Index entries) scanned / documents returned. A value of 1 means all documents returned exactly match query criteria for the sample period. A value of 100 means on average for the sample period, a query scans 100 documents to find one that is returned.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
"gridPos": {
- "h": 1,
- "w": 24,
+ "h": 8,
+ "w": 12,
"x": 0,
- "y": 16
+ "y": 39
},
- "id": 1547,
- "panels": [
+ "height": "250px",
+ "hiddenSeries": false,
+ "id": 1066,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "editorMode": "code",
+ "expr": "(sum by ()(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[$interval])) /\nsum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))\nor\nsum by ()(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[5m])) /\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[5m])))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Scanned objects / returned",
+ "range": true,
+ "refId": "J",
+ "step": 300
+ },
+ {
+ "editorMode": "code",
+ "expr": "(sum by ()(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[$interval])) /\nsum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))\nor\nsum by ()(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[5m])) /\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[5m])))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Scanned idx / returned",
+ "range": true,
+ "refId": "A",
+ "step": 300
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Query Efficiency",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": "none",
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "",
+ ""
+ ],
+ "yaxes": [
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
"decimals": 2,
- "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 38
- },
- "hiddenSeries": false,
- "id": 27,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "9.2.20",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [
- {
- "alias": "Oplog Range",
- "yaxis": 2
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "time()-avg by (service_name) (mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Now to End",
- "metric": "",
- "refId": "J",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (mongodb_mongod_replset_oplog_head_timestamp{service_name=~\"$service_name\"}-mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Oplog Range",
- "metric": "",
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Oplog Recovery Window - $service_name",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "s",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "s",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "s",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
+ "format": "",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "",
+ "logBase": 1,
+ "show": false
}
],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "Operations queued due to a lock.",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 39
+ },
+ "height": "250px",
+ "hiddenSeries": false,
+ "id": 1036,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideZero": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": "Metrics",
- "refId": "A"
+ "editorMode": "code",
+ "expr": "max by (type) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{type}}",
+ "range": true,
+ "refId": "J",
+ "step": 300
}
],
- "title": "Oplog Recovery Window",
- "type": "row"
+ "thresholds": [
+ {
+ "colorMode": "critical",
+ "fill": true,
+ "line": true,
+ "op": "gt",
+ "value": 0,
+ "yaxis": "left"
+ }
+ ],
+ "timeRegions": [],
+ "title": "Queued Operations",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "ops",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
- "collapsed": true,
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": []
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
"gridPos": {
- "h": 1,
- "w": 24,
+ "h": 8,
+ "w": 12,
"x": 0,
- "y": 17
+ "y": 47
},
- "id": 1070,
- "panels": [
+ "height": "250px",
+ "hiddenSeries": false,
+ "id": 1067,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null as zero",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": true,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "Repl buffer ops applied per sec.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__series.name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 100
- },
- "hiddenSeries": false,
- "id": 85,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_count{service_name=~\"$service_name\"})",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}",
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Oplog Buffered Operations",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "ms",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "Time spent per second waiting for or fetching oplog docs in replication.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__series.name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 100
- },
- "hiddenSeries": false,
- "id": 79,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}",
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Oplog Getmore Time",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "ms",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ms",
- "label": "",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "Times spent per second A) pre-loading oplog ops into parallel-executable batches B) Times spent pre-loading index values and C) repl batch apply phase.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 108
- },
- "hiddenSeries": false,
- "id": 84,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Document Preload",
- "refId": "A",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Index Preload",
- "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds",
- "refId": "B",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Batch Apply",
- "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds",
- "refId": "C",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Oplog Processing Time - $service_name",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "ms",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ms",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "Current hard-coded max and actual size of repl batch buffer.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 116
- },
- "hiddenSeries": false,
- "id": 80,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [
- {
- "alias": "Max",
- "color": "#C4162A",
- "fill": 0
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_size_bytes{service_name=~\"$service_name\"})",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Used",
- "refId": "A",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_max_size_bytes{service_name=~\"$service_name\"})",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Max",
- "refId": "B",
- "step": 300
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Oplog Buffer Capacity - $service_name",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "ms",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "bytes",
- "label": "",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
+ "editorMode": "code",
+ "expr": "avg by() (mongodb_ss_globalLock_activeClients_readers{service_name=~\"$service_name\"})",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Active Readers",
+ "range": true,
+ "refId": "J",
+ "step": 300
},
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "Metrics",
- "decimals": 2,
- "description": "Count of A) getmores executed B) index values pre-loaded C) oplog docs applied per second against oplog collection in replication.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__field.labels.service_name}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range"
- }
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 124
- },
- "hiddenSeries": false,
- "id": 81,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "show": true,
- "sort": "avg",
- "sortDesc": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "paceLength": 10,
- "percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_docs_num_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_num_total{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Document Preload",
- "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total",
- "refId": "A",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_indexes_num_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_num_total{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Index Preload",
- "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total",
- "refId": "B",
- "step": 300
- },
- {
- "datasource": "Metrics",
- "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_apply_ops_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_ops_total{service_name=~\"$service_name\"}[5m]))",
- "interval": "$interval",
- "intervalFactor": 2,
- "legendFormat": "Batch Apply",
- "refId": "C",
- "step": 120
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Oplog Operations - $service_name",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 5,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "ms",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 2,
- "format": "ops",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": false
- }
- ],
- "yaxis": {
- "align": false
- }
+ "editorMode": "code",
+ "expr": "avg by() (mongodb_ss_globalLock_activeClients_writers{service_name=~\"$service_name\"})",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Active Writers",
+ "range": true,
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "editorMode": "code",
+ "expr": "avg by() (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"readers\"})",
+ "hide": false,
+ "legendFormat": "Queued Readers",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "editorMode": "code",
+ "expr": "avg by() (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"writers\"})",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "Queued Writers",
+ "range": true,
+ "refId": "C"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Reads & Writes",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
+ },
+ "type": "graph",
+ "x-axis": true,
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "y-axis": true,
+ "y_formats": [
+ "short",
+ "short"
+ ],
+ "yaxes": [
+ {
+ "format": "none",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "none",
+ "logBase": 1,
+ "show": false
}
],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "description": "MongoDB Connections",
+ "fieldConfig": {
+ "defaults": {
+ "links": [],
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "fill": 1,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 47
+ },
+ "hiddenSeries": false,
+ "id": 1074,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true,
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
- "datasource": "Metrics",
- "refId": "A"
+ "editorMode": "code",
+ "expr": "avg by () (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"current\"})",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Current",
+ "range": true,
+ "refId": "J",
+ "step": 300
+ },
+ {
+ "editorMode": "code",
+ "expr": "avg by() (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"available\"})",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Available",
+ "range": true,
+ "refId": "A",
+ "step": 300
}
],
- "title": "Oplog Details",
- "type": "row"
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Connections",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "none",
+ "logBase": 1,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
"collapsed": true,
- "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 18
+ "y": 55
},
- "id": 1306,
+ "id": 1056,
"panels": [
{
- "collapsed": false,
- "datasource": "Metrics",
- "default_title_for_rows": "Service Name",
+ "default_title_for_rows": "DB Name",
+ "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
"fieldConfig": {
"defaults": {
"color": {
@@ -2251,128 +2041,248 @@
"mode": "thresholds"
},
"custom": {
- "align": "center",
+ "align": "left",
"displayMode": "auto",
- "filterable": false,
+ "filterable": true,
"inspect": false
},
- "decimals": 2,
"mappings": [
{
"options": {
"0": {
- "color": "#8b0000",
+ "color": "dark-blue",
"index": 0,
- "text": "No Data"
- },
- "-": {
- "index": 1,
- "text": "No Data"
+ "text": "0"
}
},
"type": "value"
}
],
- "noValue": "-",
+ "noValue": "N/A",
"thresholds": {
"mode": "absolute",
"steps": [
- {
- "color": "green"
- },
{
"color": "red",
- "value": 80
+ "value": null
}
]
- }
+ },
+ "unit": "bytes"
},
"overrides": [
{
"matcher": {
- "id": "byName",
- "options": "Value #E"
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
},
"properties": [
{
- "id": "custom.displayMode",
- "value": "color-background-solid"
+ "id": "color",
+ "value": {
+ "fixedColor": "dark-blue",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
"id": "byName",
- "options": "service_name"
+ "options": "Node"
},
"properties": [
{
- "id": "custom.align",
- "value": "left"
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}"
+ }
+ ]
}
]
- },
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 11,
+ "x": 0,
+ "y": 56
+ },
+ "hide_headers": false,
+ "id": 1043,
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "frameIndex": 0,
+ "showHeader": true,
+ "sortBy": [
{
- "matcher": {
- "id": "byName",
- "options": "Value #C"
+ "desc": false,
+ "displayName": "DB Name\\Value"
+ }
+ ]
+ },
+ "pluginVersion": "9.2.20",
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ },
+ "targets": [
+ {
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "max by (environment,cluster,rs_nm,database,collection,service_name) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{collection}}",
+ "range": false,
+ "refId": "A"
+ }
+ ],
+ "title": "Size of Collections",
+ "transformations": [
+ {
+ "id": "groupingToMatrix",
+ "options": {
+ "columnField": "shard",
+ "rowField": "db",
+ "valueField": "Value"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "Time": true,
+ "cluster": true,
+ "environment": false,
+ "rs_nm": true
},
- "properties": [
- {
- "id": "unit",
- "value": "s"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #B"
+ "indexByName": {
+ "Time": 0,
+ "Value": 6,
+ "cluster": 1,
+ "collection": 4,
+ "database": 3,
+ "rs_nm": 5,
+ "service_name": 2
},
- "properties": [
+ "renameByName": {
+ "Value": "Size",
+ "database": "DB Name",
+ "db\\shard": "DB Name",
+ "rs1": "",
+ "service_name": "Node"
+ }
+ }
+ }
+ ],
+ "type": "table"
+ },
+ {
+ "collapsed": false,
+ "default_title_for_rows": "DB Name",
+ "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "fixedColor": "transparent",
+ "mode": "fixed"
+ },
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "filterable": true,
+ "inspect": false
+ },
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "dark-blue",
+ "index": 0
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "noValue": "N/A",
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
{
- "id": "unit",
- "value": "µs"
+ "color": "red",
+ "value": null
}
]
- },
+ }
+ },
+ "overrides": [
{
"matcher": {
- "id": "byName",
- "options": "Value #D"
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
},
"properties": [
{
- "id": "decimals"
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Value #A"
+ "options": "Node"
},
"properties": [
{
- "id": "unit",
- "value": "ops"
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}"
+ }
+ ]
}
]
}
]
},
"gridPos": {
- "h": 10,
- "w": 24,
- "x": 0,
- "y": 101
+ "h": 8,
+ "w": 13,
+ "x": 11,
+ "y": 56
},
- "id": 1352,
+ "id": 1045,
"options": {
"footer": {
+ "enablePagination": true,
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
"show": false
},
- "showHeader": true
+ "frameIndex": 0,
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "DB Name\\Value"
+ }
+ ]
},
"pluginVersion": "9.2.20",
"sorting_props": {
@@ -2381,123 +2291,79 @@
},
"targets": [
{
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "avg by (service_name) (mongodb_instance_uptime_seconds{service_name=~\"$service_name\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{service_name}} | Uptime",
- "range": false,
- "refId": "C"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sum by (service_name) (rate(mongodb_mongod_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_mongod_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m]) or rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m]))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{service_name}} | QPS",
- "range": false,
- "refId": "A"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "avg by (service_name) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\",type=\"command\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\",type=\"command\"}[$interval]) > 0) or\nirate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\",type=\"command\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\",type=\"command\"}[5m]) > 0))",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{service_name}} | Latency",
- "range": false,
- "refId": "B"
- },
- {
- "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
- "expr": "avg by (service_name) (max_over_time(mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or \nmax_over_time(mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"}[5m]) or\nmax_over_time(mongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or\nmax_over_time(mongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"}[5m]) or\nmax_over_time(mongodb_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or\nmax_over_time(mongodb_connections{service_name=~\"$service_name\", state=\"current\"}[5m]))",
+ "expr": "max by (environment,cluster,rs_nm,database,service_name) (mongodb_mongod_db_collections_total{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\"})",
"format": "table",
+ "hide": false,
"instant": true,
"interval": "$interval",
- "legendFormat": "{{service_name}} | Connections",
+ "legendFormat": "__auto",
"range": false,
- "refId": "D"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "avg by (service_name) (max_over_time(mongodb_mongod_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[$interval]) or \nmax_over_time(mongodb_mongos_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{service_name=~\"$service_name\",state=\"total\"}[5m]))",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{service_name}} | Cursors ",
- "refId": "E"
+ "refId": "A"
}
],
- "title": "Services Details",
+ "title": "Number of Collections",
"transformations": [
- {
- "id": "merge",
- "options": {}
- },
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
- "agent_id": true,
- "agent_type": true,
- "environment": true,
- "instance": true,
- "job": true,
- "machine_id": true,
- "node_id": true,
- "node_name": true,
- "node_type": true,
- "service_name": false
+ "cluster": true,
+ "rs_nm": true
},
"indexByName": {
"Time": 0,
- "Value #A": 6,
- "Value #B": 4,
- "Value #C": 3,
- "Value #D": 5,
- "Value #E": 2,
- "service_name": 1
+ "Value": 5,
+ "cluster": 1,
+ "database": 3,
+ "rs_nm": 4,
+ "service_name": 2
},
"renameByName": {
- "Value #A": "QPS",
- "Value #B": "Average Latency",
- "Value #C": "Uptime",
- "Value #D": "Open Connections",
- "Value #E": "Cursors",
- "service_name": "Service Name"
+ "1710776522937": "",
+ "Value": "Count",
+ "database": "DB Name",
+ "service_name": "Node"
}
}
}
],
"type": "table"
- },
+ }
+ ],
+ "title": "Collection Details",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 56
+ },
+ "id": 1049,
+ "panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
"decimals": 2,
- "description": "Average latency of operations (classified by read, write, or (other) command).",
+ "description": "MongoDB replication lag occurs when the secondary node cannot replicate data fast enough to keep up with the rate that data is being written to the primary node. It could be caused by something as simple as network latency, packet loss within your network, or a routing issue.",
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {
- "links": []
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
+ }
+ ]
},
"overrides": []
},
@@ -2509,14 +2375,13 @@
"rightLogBase": 1
},
"gridPos": {
- "h": 8,
- "w": 24,
+ "h": 7,
+ "w": 12,
"x": 0,
- "y": 107
+ "y": 57
},
- "height": "250px",
"hiddenSeries": false,
- "id": 1558,
+ "id": 1038,
"legend": {
"alignAsTable": true,
"avg": true,
@@ -2533,38 +2398,52 @@
"lines": true,
"linewidth": 2,
"links": [],
- "nullPointMode": "null",
+ "nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "Avg",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
- "datasource": "Metrics",
- "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[5m]) > 0))",
- "format": "time_series",
- "hide": false,
+ "editorMode": "code",
+ "expr": "max_over_time(mongodb_mongod_replset_member_replication_lag{environment=~\"$environment\",cluster=~\"$cluster\",set=\"$rs_nm\",service_name=~\"$secondary\"}[$interval]) > 0 ",
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "{{type}}",
- "refId": "J",
+ "legendFormat": "{{service_name}}",
+ "range": true,
+ "refId": "A",
"step": 300
}
],
- "thresholds": [],
+ "thresholds": [
+ {
+ "colorMode": "critical",
+ "fill": false,
+ "line": true,
+ "op": "gt",
+ "value": 10,
+ "yaxis": "left"
+ }
+ ],
"timeRegions": [],
- "title": "Latency Detail - $service_name",
+ "title": "Replication Lag",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -2580,13 +2459,13 @@
},
"y-axis": true,
"y_formats": [
- "short",
+ "s",
"short"
],
"yaxes": [
{
"decimals": 2,
- "format": "µs",
+ "format": "s",
"label": "",
"logBase": 1,
"min": 0,
@@ -2607,14 +2486,19 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
"decimals": 2,
- "description": "Docs per second inserted, updated, deleted or returned. (N.b. not 1-to-1 with operation counts.)",
+ "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.",
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {
- "links": []
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "MongoDB Instance Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range"
+ }
+ ]
},
"overrides": []
},
@@ -2626,14 +2510,13 @@
"rightLogBase": 1
},
"gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 115
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 57
},
- "height": "250px",
"hiddenSeries": false,
- "id": 1397,
+ "id": 1025,
"legend": {
"alignAsTable": true,
"avg": true,
@@ -2650,38 +2533,45 @@
"lines": true,
"linewidth": 2,
"links": [],
- "nullPointMode": "null",
+ "nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "Avg",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
- "datasource": "Metrics",
- "expr": "avg by (service_name,state) (rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[5m]))",
- "format": "time_series",
+ "editorMode": "code",
+ "expr": "mongodb_mongod_replset_oplog_head_timestamp{service_name=~\"$service_name\"}-mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"}",
"hide": false,
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "{{state}}",
- "refId": "J",
+ "legendFormat": "{{ service_name }}",
+ "metric": "",
+ "range": true,
+ "refId": "A",
"step": 300
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Document Operations - $service_name",
+ "title": "Oplog Recovery Window",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -2697,13 +2587,13 @@
},
"y-axis": true,
"y_formats": [
- "short",
+ "s",
"short"
],
"yaxes": [
{
"decimals": 2,
- "format": "ops",
+ "format": "s",
"label": "",
"logBase": 1,
"min": 0,
@@ -2718,17 +2608,28 @@
"yaxis": {
"align": false
}
- },
+ }
+ ],
+ "title": "Replication",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 57
+ },
+ "id": 1054,
+ "panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
"decimals": 2,
- "description": "MongoDB keeps most recently used data in RAM. If you have created indexes for your queries and your working data set fits in RAM, MongoDB serves all queries from memory.",
- "editable": true,
- "error": false,
+ "description": "Average latency of operations (classified by read, write, or (other) command)",
"fieldConfig": {
"defaults": {
"links": []
@@ -2737,20 +2638,14 @@
},
"fill": 2,
"fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
"gridPos": {
- "h": 8,
- "w": 24,
+ "h": 7,
+ "w": 12,
"x": 0,
- "y": 123
+ "y": 58
},
- "height": "250px",
"hiddenSeries": false,
- "id": 1012,
+ "id": 1020,
"legend": {
"alignAsTable": true,
"avg": true,
@@ -2766,60 +2661,167 @@
},
"lines": true,
"linewidth": 2,
- "links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
- "paceLength": 10,
"percentage": false,
- "pluginVersion": "8.3.5",
- "pointradius": 5,
+ "pluginVersion": "9.2.20",
+ "pointradius": 2,
"points": false,
"renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "/fc_count.*/",
+ "yaxis": 2
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
- "datasource": "Metrics",
- "expr": "rate(mongodb_tcmalloc_cache_bytes{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_tcmalloc_cache_bytes{service_name=~\"$service_name\"}[5m])",
- "format": "time_series",
- "hide": false,
+ "editorMode": "code",
+ "expr": "max(rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))",
"interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{cache}} - {{type}}",
- "refId": "J",
- "step": 300
+ "legendFormat": "fc_count",
+ "range": true,
+ "refId": "A"
},
{
- "datasource": "Metrics",
- "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_thread_cache_free_bytes{service_name=~\"$service_name\"})",
+ "editorMode": "code",
+ "expr": "max(rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))",
+ "hide": false,
"interval": "$interval",
- "legendFormat": "Free Thread Cache",
- "refId": "A"
+ "legendFormat": "fc_time",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Flow Control",
+ "tooltip": {
+ "shared": true,
+ "sort": 2,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 2,
+ "format": "µs",
+ "label": "",
+ "logBase": 1,
+ "min": "0",
+ "show": true
},
{
- "datasource": "Metrics",
- "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_central_cache_free_bytes{service_name=~\"$service_name\"})",
+ "format": "short",
+ "logBase": 1,
+ "min": "0",
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
+ "description": "A WT 'ticket' is assigned out for every operation running simultaneously in the WT storage engine. \"Available\" = hardcoded high value - \"Out\".",
+ "editable": true,
+ "error": false,
+ "fieldConfig": {
+ "defaults": {
+ "links": [],
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {},
+ "gridPos": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 58
+ },
+ "hiddenSeries": false,
+ "id": 1041,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 2,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {
+ "alertThreshold": true
+ },
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "write",
+ "transform": "negative-Y"
+ }
+ ],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "editorMode": "code",
+ "expr": "avg by (type) ((max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[5m])) -\n(max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[5m])))",
"interval": "$interval",
- "legendFormat": "Free Central Cache",
- "refId": "B"
+ "intervalFactor": 1,
+ "legendFormat": "read",
+ "metric": "",
+ "range": true,
+ "refId": "B",
+ "step": 300
},
{
- "datasource": "Metrics",
- "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_transfer_cache_free_bytes{service_name=~\"$service_name\"})",
+ "editorMode": "code",
+ "expr": "avg by (type) ((max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[5m])) -\n(max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[5m])))",
+ "hide": false,
"interval": "$interval",
- "legendFormat": "Free Transfer Cache",
- "refId": "C"
+ "intervalFactor": 1,
+ "legendFormat": "write",
+ "metric": "",
+ "range": true,
+ "refId": "A",
+ "step": 300
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Cache - $service_name",
+ "title": "WiredTiger Concurrency Tickets Available",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -2827,24 +2829,17 @@
"value_type": "cumulative"
},
"type": "graph",
- "x-axis": true,
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
"yaxes": [
{
- "decimals": 2,
- "format": "bytes",
+ "decimals": 0,
+ "format": "none",
"label": "",
"logBase": 1,
- "min": 0,
"show": true
},
{
@@ -2858,13 +2853,9 @@
}
}
],
- "targets": [
- {
- "datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "MongoDB Services Summary",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "title": "Performance - $service_name",
"type": "row"
},
{
@@ -2874,7 +2865,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 19
+ "y": 60
},
"id": 1403,
"panels": [
@@ -2917,8 +2908,7 @@
"mode": "absolute",
"steps": [
{
- "color": "red",
- "value": null
+ "color": "red"
},
{
"color": "orange",
@@ -2944,6 +2934,15 @@
},
{
"id": "custom.width"
+ },
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/node-instance-summary/node-summary?orgId=1&${interval:queryparam}&var-region=All&var-node_type=All&var-environment=All&var-node_name=${__value.text}&${__url_time_range}"
+ }
+ ]
}
]
},
@@ -3057,7 +3056,7 @@
"h": 7,
"w": 24,
"x": 0,
- "y": 9
+ "y": 61
},
"id": 1435,
"options": {
@@ -3223,7 +3222,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 20
+ "y": 61
},
"id": 1569,
"panels": [
@@ -3259,7 +3258,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 10
+ "y": 62
},
"height": "",
"hiddenSeries": false,
@@ -3391,7 +3390,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 21
+ "y": 62
},
"id": 1571,
"panels": [
@@ -3426,7 +3425,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 11
+ "y": 63
},
"hiddenSeries": false,
"id": 339,
@@ -3550,7 +3549,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 22
+ "y": 63
},
"id": 1585,
"panels": [
@@ -3581,7 +3580,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 35
+ "y": 64
},
"hiddenSeries": false,
"id": 341,
@@ -3740,7 +3739,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 23
+ "y": 64
},
"id": 1583,
"panels": [
@@ -3767,7 +3766,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 36
+ "y": 65
},
"hiddenSeries": false,
"id": 343,
@@ -3879,7 +3878,7 @@
"type": "row"
}
],
- "refresh": "1m",
+ "refresh": "",
"schemaVersion": 37,
"style": "dark",
"tags": [
@@ -3948,141 +3947,23 @@
}
],
"query": "1s,5s,1m,5m,1h,6h,1d",
+ "queryValue": "",
"refresh": 2,
"skipUrlSync": false,
"type": "interval"
},
- {
- "allFormat": "blob",
- "current": {
- "selected": false,
- "text": "igtest",
- "value": "igtest"
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_up,cluster)",
- "hide": 0,
- "includeAll": false,
- "label": "Cluster",
- "multi": false,
- "multiFormat": "glob",
- "name": "cluster",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up,cluster)",
- "refId": "Metrics-cluster-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "shard0",
- "value": "shard0"
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
- "hide": 0,
- "includeAll": false,
- "label": "Replica Set",
- "multi": false,
- "multiFormat": "glob",
- "name": "replset",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
- "refId": "Metrics-replset-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)",
- "hide": 0,
- "includeAll": true,
- "label": "Node Name",
- "multi": true,
- "multiFormat": "glob",
- "name": "node_name",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)",
- "refId": "Metrics-node_name-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
- },
- "datasource": "Metrics",
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "label": "Service Name",
- "multi": true,
- "multiFormat": "glob",
- "name": "service_name",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}, service_name)",
- "refId": "Metrics-service_name-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
{
"allValue": ".*",
"current": {
"selected": false,
- "text": "All",
- "value": "$__all"
+ "text": "None",
+ "value": ""
},
- "datasource": "Metrics",
"definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
- "hide": 2,
+ "hide": 0,
"includeAll": true,
"label": "Environment",
- "multi": true,
+ "multi": false,
"name": "environment",
"options": [],
"query": {
@@ -4099,163 +3980,108 @@
"useTags": false
},
{
+ "allFormat": "blob",
+ "allValue": ".*",
"current": {
"selected": false,
- "text": "All",
- "value": "$__all"
+ "text": "",
+ "value": ""
},
- "datasource": "Metrics",
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
- "hide": 2,
- "includeAll": true,
- "label": "Replication Set",
- "multi": true,
- "name": "replication_set",
+ "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "Cluster",
+ "multi": false,
+ "multiFormat": "glob",
+ "name": "cluster",
"options": [],
"query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)",
- "refId": "Metrics-replication_set-Variable-Query"
+ "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
+ "refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": "Metrics",
- "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
- "hide": 2,
- "includeAll": true,
- "label": "Database",
- "multi": true,
- "name": "database",
- "options": [],
- "query": {
- "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)",
- "refId": "Metrics-database-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": "Metrics",
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
- "hide": 2,
- "includeAll": true,
- "label": "Type",
- "multi": true,
- "name": "node_type",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)",
- "refId": "Metrics-node_type-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": false,
- "text": "All",
- "value": "$__all"
+ "text": "",
+ "value": ""
},
- "datasource": "Metrics",
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
- "hide": 2,
- "includeAll": true,
- "label": "Type",
- "multi": true,
- "name": "service_type",
+ "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "Replica Set",
+ "multi": false,
+ "name": "rs_nm",
"options": [],
"query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)",
- "refId": "Metrics-service_type-Variable-Query"
+ "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
+ "refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
- "sort": 5,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
+ "sort": 0,
+ "type": "query"
},
{
+ "allFormat": "glob",
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
- "datasource": "Metrics",
- "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)",
- "hide": 2,
+ "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)",
+ "hide": 0,
"includeAll": true,
- "label": "Schema",
- "multi": true,
- "name": "schema",
+ "label": "MongoDB Node",
+ "multi": false,
+ "multiFormat": "glob",
+ "name": "service_name",
"options": [],
"query": {
- "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)",
- "refId": "Metrics-schema-Variable-Query"
+ "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)",
+ "refId": "StandardVariableQuery"
},
- "refresh": 1,
+ "refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
- "tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
+ "allFormat": "glob",
"current": {
"selected": false,
- "text": "All",
- "value": "$__all"
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
- "datasource": "Metrics",
- "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
+ "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
"hide": 2,
"includeAll": true,
- "label": "Username",
+ "label": "Node Name",
"multi": true,
- "name": "username",
+ "name": "node_name",
"options": [],
"query": {
- "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)",
- "refId": "Metrics-username-Variable-Query"
+ "query": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
+ "refId": "Metrics-node_name-Variable-Query"
},
- "refresh": 1,
+ "refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 5,
- "tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
@@ -4263,29 +4089,24 @@
{
"current": {
"selected": false,
- "text": "All",
- "value": "$__all"
+ "text": "",
+ "value": ""
},
- "datasource": "Metrics",
- "definition": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)",
+ "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)",
"hide": 2,
- "includeAll": true,
- "label": "Secondary",
+ "includeAll": false,
"multi": true,
"name": "secondary",
"options": [],
"query": {
- "query": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)",
- "refId": "Metrics-secondary-Variable-Query"
+ "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)",
+ "refId": "StandardVariableQuery"
},
- "refresh": 2,
+ "refresh": 1,
"regex": "/.*service_name=\"(.*)\",service_type.*/",
"skipUrlSync": false,
"sort": 0,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
+ "type": "query"
}
]
},
@@ -4297,15 +4118,12 @@
"hidden": false,
"now": true,
"refresh_intervals": [
+ "1s",
"5s",
- "10s",
- "30s",
"1m",
"5m",
- "15m",
- "30m",
"1h",
- "2h",
+ "6h",
"1d"
],
"time_options": [
@@ -4320,7 +4138,7 @@
"30d"
]
},
- "timezone": "",
+ "timezone": "browser",
"title": "MongoDB ReplSet Summary",
"uid": "mongodb-replicaset-summary",
"version": 1,
diff --git a/pmm-app/src/pmm-qan/panel/components/Filters/Filters.constants.ts b/pmm-app/src/pmm-qan/panel/components/Filters/Filters.constants.ts
index f9aa071c59..601fbd50d0 100644
--- a/pmm-app/src/pmm-qan/panel/components/Filters/Filters.constants.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Filters/Filters.constants.ts
@@ -35,7 +35,7 @@ export const FILTERS_GROUPS = [
if (serviceType === Databases.mysql) {
dashboardURL = `pxc-cluster-summary/pxc-galera-cluster-summary?var-cluster=${value}`;
} else if (serviceType === Databases.mongodb) {
- dashboardURL = `mongodb-cluster-summary/mongodb-cluster-summary?var-cluster=${value}`;
+ dashboardURL = `mongodb-cluster-summary/mongodb-sharded-cluster-summary?var-cluster=${value}`;
}
return dashboardURL ? `${subURL}${dashboardURL}` : '';