From 0f5de47a6f4e1317b53e7c3f24f02bf3a466d3e0 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Wed, 3 Jul 2024 15:17:58 +0530
Subject: [PATCH 01/13] PMM-13176 Qan Plan tooltip not visible (#1610)
* PMM-13176 Replace tippy with grafana tooltip
* PMM-13176 Remove unused code
* PMM-13176 Add test workaround for react 18 hook
---
.../components/Details/Plan/Plan.styles.ts | 5 +----
.../components/Details/Plan/Plan.test.tsx | 8 ++++++++
.../panel/components/Details/Plan/Plan.tsx | 18 ++++++++----------
3 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.styles.ts b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.styles.ts
index f8415f7cde..d1e73f602e 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.styles.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.styles.ts
@@ -1,7 +1,7 @@
import { css } from '@emotion/css';
import { GrafanaTheme } from '@grafana/data';
-export const getStyles = ({ spacing, colors }: GrafanaTheme) => ({
+export const getStyles = ({ spacing }: GrafanaTheme) => ({
planWrapper: css`
position: relative;
`,
@@ -10,7 +10,4 @@ export const getStyles = ({ spacing, colors }: GrafanaTheme) => ({
top: ${spacing.sm};
right: ${spacing.sm};
`,
- tippy: css`
- background-color: ${colors.bg2};
- `,
});
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx
index b7036246b5..46ed13690f 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx
@@ -6,6 +6,14 @@ jest.mock('shared/components/helpers/notification-manager');
jest.mock('./Plan.hooks');
describe('Plan::', () => {
+ beforeEach(() => {
+ console.error = jest.fn();
+ // TODO: Grafana Tooltip component uses a react 18 hook - useId
+ // due to enzyme we are currently stuck at react 17, mocking for now
+ // @ts-ignore
+ React.useId = () => '';
+ });
+
it('renders plan query and tooltip', () => {
const { container } = render();
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.tsx b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.tsx
index f51395fdf5..2af2164a8b 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.tsx
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.tsx
@@ -1,8 +1,7 @@
import React, { FC } from 'react';
-import { Icon, useStyles } from '@grafana/ui';
+import { Icon, useStyles, Tooltip } from '@grafana/ui';
import { Overlay } from 'shared/components/Elements/Overlay/Overlay';
import { Highlight } from 'shared/components/Hightlight/Highlight';
-import Tippy from '@tippyjs/react';
import { getStyles } from './Plan.styles';
import { Messages } from './Plan.messages';
import { usePlan } from './Plan.hooks';
@@ -21,16 +20,15 @@ export const Plan: FC = () => {
{plan?.plan || ''}
>
) : (
From 0a8b41617b3093f4d6facbf789849e2812858c0f Mon Sep 17 00:00:00 2001
From: Matej Kubinec <32638572+matejkubinec@users.noreply.github.com>
Date: Thu, 4 Jul 2024 11:19:48 +0200
Subject: [PATCH 02/13] PMM-13147 Update qan plugin configuration (#1608)
---
pmm-app/src/module.ts | 6 +++---
pmm-app/src/plugin.json | 14 +++++---------
2 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/pmm-app/src/module.ts b/pmm-app/src/module.ts
index 13c8cd1fde..5931dbc9c3 100755
--- a/pmm-app/src/module.ts
+++ b/pmm-app/src/module.ts
@@ -1,3 +1,3 @@
-export class ConfigCtrl {
- static template = 'PMM App
';
-}
+import { AppPlugin } from '@grafana/data';
+
+export const plugin = new AppPlugin();
diff --git a/pmm-app/src/plugin.json b/pmm-app/src/plugin.json
index 2d51026949..675457a6a6 100755
--- a/pmm-app/src/plugin.json
+++ b/pmm-app/src/plugin.json
@@ -17,8 +17,8 @@
"small": "img/pmm-logo.svg",
"large": "img/pmm-logo.svg"
},
- "version": "2.32.0",
- "updated": "2022-11-07"
+ "version": "3.0.0",
+ "updated": "2024-06-20"
},
"includes": [
{
@@ -180,7 +180,7 @@
{
"type": "dashboard",
"name": "NUMA Details",
- "path":"dashboards/OS/NUMA_Details.json"
+ "path": "dashboards/OS/NUMA_Details.json"
},
{
"type": "dashboard",
@@ -192,10 +192,7 @@
"name": "MySQL Group Replication Summary",
"path": "dashboards/MySQL/MySQL_Group_Replication_Summary.json"
},
- { "type": "dashboard",
- "name": "Network Details",
- "path": "dashboards/OS/Network_Details.json"
- },
+ { "type": "dashboard", "name": "Network Details", "path": "dashboards/OS/Network_Details.json" },
{
"type": "dashboard",
"name": "Nodes Compare",
@@ -292,9 +289,8 @@
"path": "dashboards/Experimental/Environments_Overview.json"
}
],
-
"dependencies": {
- "grafanaDependency": ">=7.x.x",
+ "grafanaDependency": ">=10.x.x",
"plugins": []
}
}
From 2e722b784ef8219dc9d4ce0037c0caf1be3b1303 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Thu, 11 Jul 2024 14:46:46 +0530
Subject: [PATCH 03/13] PMM-13159 Remove collection details dashboard (#1607)
(#1611)
* PMM-13159 Remove collection details dashboard
* PMM-13159 Trigger checks
---
.../MongoDB_Collection_Details.json | 1170 -----------------
1 file changed, 1170 deletions(-)
delete mode 100644 dashboards/Experimental/MongoDB_Collection_Details.json
diff --git a/dashboards/Experimental/MongoDB_Collection_Details.json b/dashboards/Experimental/MongoDB_Collection_Details.json
deleted file mode 100644
index ff38524500..0000000000
--- a/dashboards/Experimental/MongoDB_Collection_Details.json
+++ /dev/null
@@ -1,1170 +0,0 @@
-{
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "name": "Annotations & Alerts",
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- },
- {
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "iconColor": "orange",
- "name": "PMM Annotations",
- "target": {
- "limit": 100,
- "matchAny": true,
- "tags": [
- "pmm_annotation",
- " $service_name"
- ],
- "type": "tags"
- }
- }
- ]
- },
- "editable": false,
- "fiscalYearStartMonth": 0,
- "graphTooltip": 1,
- "id": null,
- "links": [
- {
- "asDropdown": false,
- "icon": "doc",
- "includeVars": true,
- "keepTime": true,
- "tags": [],
- "targetBlank": false,
- "title": "Home",
- "tooltip": "",
- "type": "link",
- "url": "/graph/d/pmm-home/home-dashboard"
- },
- {
- "asDropdown": false,
- "icon": "dashboard",
- "includeVars": true,
- "keepTime": true,
- "tags": [],
- "targetBlank": false,
- "title": "Query Analytics",
- "tooltip": "",
- "type": "link",
- "url": "/graph/d/pmm-qan/pmm-query-analytics"
- },
- {
- "asDropdown": false,
- "icon": "bolt",
- "includeVars": true,
- "keepTime": true,
- "tags": [],
- "targetBlank": false,
- "title": "Compare",
- "tooltip": "",
- "type": "link",
- "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare"
- },
- {
- "asDropdown": true,
- "icon": "external link",
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "MongoDB"
- ],
- "targetBlank": false,
- "title": "MongoDB",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
- },
- {
- "asDropdown": true,
- "icon": "external link",
- "includeVars": true,
- "keepTime": true,
- "tags": [
- "MongoDB_HA"
- ],
- "targetBlank": false,
- "title": "HA",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
- },
- {
- "asDropdown": true,
- "icon": "external link",
- "includeVars": false,
- "keepTime": true,
- "tags": [
- "Services"
- ],
- "targetBlank": false,
- "title": "Services",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
- },
- {
- "asDropdown": true,
- "icon": "external link",
- "includeVars": false,
- "keepTime": true,
- "tags": [
- "PMM"
- ],
- "targetBlank": false,
- "title": "PMM",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
- }
- ],
- "liveNow": false,
- "panels": [
- {
- "collapsed": false,
- "datasource": "Metrics",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 2,
- "panels": [],
- "targets": [
- {
- "datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "Largest Collections",
- "type": "row"
- },
- {
- "datasource": "Metrics",
- "description": "Lists the largest collections according to number of documents; helps track growth and look to address possible performance issues.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "displayMode": "auto",
- "inspect": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Time"
- },
- "properties": [
- {
- "id": "unit",
- "value": "short"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 1
- },
- "hideTimeOverride": true,
- "id": 6,
- "links": [],
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true
- },
- "pluginVersion": "9.1.2",
- "targets": [
- {
- "datasource": "Metrics",
- "exemplar": false,
- "expr": "topk(10, avg by (service_name,database,collection) (sum(mongodb_collstats_storageStats_count{service_name=~\"$service_name\"}) by (service_name, database, collection))) > 0",
- "format": "table",
- "instant": true,
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}.{{ schema }}.{{ table }}",
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "5m",
- "title": "Top 10 Largest Collections by Document Count",
- "transformations": [
- {
- "id": "filterFieldsByName",
- "options": {
- "include": {
- "names": [
- "collection",
- "database",
- "service_name",
- "Value"
- ]
- }
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {
- "Value": 3,
- "collection": 1,
- "database": 0,
- "service_name": 2
- },
- "renameByName": {}
- }
- }
- ],
- "type": "table"
- },
- {
- "datasource": "Metrics",
- "description": "Lists the largest collections according to size; helps track growth and assess need to scale or shard.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "displayMode": "auto",
- "inspect": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Time"
- },
- "properties": [
- {
- "id": "unit",
- "value": "short"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 1
- },
- "hideTimeOverride": true,
- "id": 10,
- "links": [],
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true
- },
- "pluginVersion": "9.1.2",
- "targets": [
- {
- "datasource": "Metrics",
- "exemplar": false,
- "expr": "topk(10, avg by (service_name,database,collection) (sum(mongodb_collstats_storageStats_size{service_name=~\"$service_name\"}) by (service_name, database, collection))) > 0",
- "format": "table",
- "instant": true,
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}}.{{ schema }}.{{ table }}",
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "5m",
- "title": "Top 10 Largest Collections by Size",
- "transformations": [
- {
- "id": "filterFieldsByName",
- "options": {
- "include": {
- "names": [
- "database",
- "service_name",
- "Value",
- "collection"
- ]
- }
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {
- "Value": 3,
- "collection": 1,
- "database": 0,
- "service_name": 2
- },
- "renameByName": {}
- }
- }
- ],
- "type": "table"
- },
- {
- "collapsed": false,
- "datasource": "Metrics",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 8
- },
- "id": 12,
- "panels": [],
- "repeat": "service_name",
- "targets": [
- {
- "datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "Size - $service_name",
- "type": "row"
- },
- {
- "datasource": "Metrics",
- "description": "Provides the names and sizes databases in an instance/cluster",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "decimals": 2,
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Data + Index Size"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#65C5DB",
- "mode": "fixed"
- }
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 9
- },
- "id": 14,
- "links": [],
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "8.3.5",
- "targets": [
- {
- "calculatedInterval": "2m",
- "datasource": "Metrics",
- "datasourceErrors": {},
- "errors": {},
- "exemplar": true,
- "expr": "avg by (service_name) (sum(max_over_time(mongodb_collstats_storageStats_size{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mongodb_collstats_storageStats_size{service_name=~\"$service_name\"}[5m])))",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "Data + Index Size",
- "metric": "",
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Total Databases Size - $service_name",
- "type": "timeseries"
- },
- {
- "datasource": "Metrics",
- "description": "Lists the most fragmented collections (storage available for reuse) - ranked by size. Address your largest fragmented collections 1st for performance",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "displayMode": "auto",
- "inspect": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Time"
- },
- "properties": [
- {
- "id": "unit",
- "value": "short"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 9
- },
- "hideTimeOverride": true,
- "id": 16,
- "links": [],
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true
- },
- "pluginVersion": "9.1.2",
- "targets": [
- {
- "datasource": "Metrics",
- "exemplar": false,
- "expr": "topk(5, avg by (service_name,database,collection) (sum(mongodb_collstats_storageStats_freeStorageSize{service_name=~\"$service_name\"}) by (database, collection, service_name)))",
- "format": "table",
- "instant": true,
- "interval": "5m",
- "intervalFactor": 1,
- "legendFormat": "{{ service_name }} - {{ database }}.{{ collection }}",
- "refId": "A",
- "step": 300
- }
- ],
- "timeFrom": "5m",
- "title": "Top 5 Most Fragmented Collections by Freeable Size - $service_name (MongoDB 5.0+)",
- "transformations": [
- {
- "id": "filterFieldsByName",
- "options": {
- "include": {
- "names": [
- "collection",
- "database",
- "service_name",
- "Value"
- ]
- }
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {
- "Value": 3,
- "collection": 1,
- "database": 0,
- "service_name": 2
- },
- "renameByName": {}
- }
- }
- ],
- "type": "table"
- },
- {
- "collapsed": false,
- "datasource": "Metrics",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 17
- },
- "id": 20,
- "panels": [],
- "targets": [
- {
- "datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "Collection Activity",
- "type": "row"
- },
- {
- "datasource": "Metrics",
- "editable": true,
- "error": false,
- "gridPos": {
- "h": 2,
- "w": 24,
- "x": 0,
- "y": 18
- },
- "height": "50px",
- "id": 68,
- "links": [],
- "options": {
- "content": "The next two graphs are available only when `--enable-all-collectors` option is used in pmm-admin. Graph **Top 5 Collection by Documents Changed** displays data only on selecting the Primary node.",
- "mode": "markdown"
- },
- "pluginVersion": "9.1.2",
- "style": {},
- "targets": [
- {
- "datasource": "Metrics",
- "refId": "A"
- }
- ],
- "transparent": true,
- "type": "text"
- },
- {
- "collapsed": false,
- "datasource": "Metrics",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 20
- },
- "id": 18,
- "panels": [],
- "targets": [
- {
- "datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "Documents Read",
- "type": "row"
- },
- {
- "datasource": "Metrics",
- "description": "Show the 5 collections according to read activity",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "decimals": 2,
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 21
- },
- "id": 24,
- "links": [],
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "8.3.5",
- "targets": [
- {
- "calculatedInterval": "2m",
- "datasource": "Metrics",
- "datasourceErrors": {},
- "errors": {},
- "exemplar": true,
- "expr": "topk(5, avg by (service_name,database,collection) (rate(mongodb_top_queries_count{service_name=~\"$service_name\"}[$interval]))>0) or \ntopk(5, avg by (service_name,database,collection) (irate(mongodb_top_queries_count{service_name=~\"$service_name\"}[5m]))>0)",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}} - {{ database }}.{{ collection }}",
- "metric": "",
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Top 5 Collections by Documents Read",
- "type": "timeseries"
- },
- {
- "collapsed": false,
- "datasource": "Metrics",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 29
- },
- "id": 22,
- "panels": [],
- "targets": [
- {
- "datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "Documents Changed",
- "type": "row"
- },
- {
- "datasource": "Metrics",
- "description": "Show the 5 collections according to write activity",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "decimals": 2,
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 30
- },
- "id": 26,
- "interval": "",
- "links": [],
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "8.3.5",
- "targets": [
- {
- "calculatedInterval": "2m",
- "datasource": "Metrics",
- "datasourceErrors": {},
- "errors": {},
- "exemplar": true,
- "expr": "topk(5, avg by (service_name,database,collection) (rate(sum by (service_name,database,collection) ((mongodb_top_insert_count{service_name=~\"$service_name\"}) + (mongodb_top_update_count{service_name=~\"$service_name\"}) + (mongodb_top_remove_count{service_name=~\"$service_name\"}))[$interval])>0)) or topk(5, avg by (service_name,database,collection) (irate(sum by (service_name,database,collection) ((mongodb_top_insert_count{service_name=~\"$service_name\"}) + (mongodb_top_update_count{service_name=~\"$service_name\"}) + (mongodb_top_remove_count{service_name=~\"$service_name\"}))[5m]))>0)",
- "format": "time_series",
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{service_name}} - {{ database }}.{{ collection }}",
- "metric": "",
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Top 5 Collections by Documents Changed",
- "type": "timeseries"
- }
- ],
- "refresh": "1m",
- "schemaVersion": 34,
- "style": "dark",
- "tags": [
- "MongoDB",
- "Percona"
- ],
- "templating": {
- "list": [
- {
- "auto": true,
- "auto_count": 200,
- "auto_min": "1s",
- "current": {
- "selected": false,
- "text": "auto",
- "value": "$__auto_interval_interval"
- },
- "hide": 0,
- "label": "Interval",
- "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"
- },
- {
- "allValue": ".*",
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "definition": "label_values({__name__=~\"mongodb_up\"}, environment)",
- "hide": 0,
- "includeAll": true,
- "label": "Environment",
- "multi": true,
- "name": "environment",
- "options": [],
- "query": {
- "query": "label_values({__name__=~\"mongodb_up\"}, environment)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query"
- },
- {
- "allValue": ".*",
- "current": {
- "selected": false,
- "text": "",
- "value": ""
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_up{environment=~\"$environment\"},cluster)",
- "hide": 0,
- "includeAll": true,
- "label": "Cluster",
- "multi": true,
- "name": "cluster",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up{environment=~\"$environment\"},cluster)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query"
- },
- {
- "current": {
- "isNone": true,
- "selected": false,
- "text": "None",
- "value": ""
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
- "hide": 0,
- "includeAll": false,
- "label": "Replica Set",
- "multi": true,
- "name": "replset",
- "options": [],
- "query": {
- "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query"
- },
- {
- "current": {
- "selected": false,
- "text": "None",
- "value": ""
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)",
- "hide": 0,
- "includeAll": false,
- "label": "Service Name",
- "multi": true,
- "name": "service_name",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query"
- },
- {
- "current": {
- "selected": false,
- "text": "None",
- "value": ""
- },
- "datasource": "Metrics",
- "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\"}, node_name)",
- "hide": 2,
- "includeAll": false,
- "label": "Node Name",
- "multi": true,
- "name": "node_name",
- "options": [],
- "query": {
- "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\"}, node_name)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 5,
- "type": "query"
- }
- ]
- },
- "time": {
- "from": "now-12h",
- "to": "now"
- },
- "timepicker": {
- "collapse": false,
- "enable": true,
- "hidden": false,
- "notice": false,
- "now": true,
- "refresh_intervals": [
- "5s",
- "10s",
- "30s",
- "1m",
- "5m",
- "15m",
- "30m",
- "1h",
- "2h",
- "1d"
- ],
- "status": "Stable",
- "time_options": [
- "5m",
- "15m",
- "1h",
- "6h",
- "12h",
- "24h",
- "2d",
- "7d",
- "30d"
- ],
- "type": "timepicker"
- },
- "timezone": "",
- "title": "MongoDB Collection Details",
- "uid": "mongodb-collection-details",
- "version": 1,
- "weekStart": ""
-}
From 7d7d29909497836faaa0222c73627d67b1823ae0 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Wed, 17 Jul 2024 15:35:50 +0530
Subject: [PATCH 04/13] PMM-13183 Update discrete to state timeline panel
(#1612) (#1616)
* PMM-13183 Update discrete to state timeline panel
* PMM-13183 fix hight and id
* PMM-13183 Trigger checks
* PMM-13183 Fix typo
---
.../MongoDB_ReplSet_Summary_(New).json | 255 ++++++++----------
1 file changed, 115 insertions(+), 140 deletions(-)
diff --git a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json b/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
index 348236fe06..8964e8f5b9 100644
--- a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
+++ b/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
@@ -924,50 +924,127 @@
"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,
+ "id": null,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 17
},
- "highlightOnMouseover": true,
- "id": 1018,
- "legendSortBy": "-ms",
- "lineColor": "rgba(0,0,0,0.1)",
- "metricNameColor": "#000000",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
+ "type": "state-timeline",
+ "title": "ReplSet States",
+ "transformations": [],
+ "pluginVersion": "6.5.1",
+ "description": "ReplSet statuses during the selected time range.",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "lineWidth": 0,
+ "fillOpacity": 100,
+ "spanNulls": false
+ },
+ "color": {
+ "mode": "palette-classic",
+ "fixedColor": "blue"
+ },
+ "mappings": [
+ {
+ "type": "value",
+ "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": "range",
+ "options": {
+ "from": 0,
+ "to": 1,
+ "result": {
+ "index": 0,
+ "text": "N/A"
+ }
+ }
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 6
+ }
+ ]
+ },
+ "unit": "short"
+ },
+ "overrides": []
+ },
+ "options": {
+ "mergeValues": true,
+ "showValue": "auto",
+ "alignValue": "right",
+ "rowHeight": 0.9,
+ "legend": {
+ "showLegend": true,
+ "displayMode": "list",
+ "placement": "bottom"
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
}
- ],
- "rowHeight": 50,
- "showDistinctCount": false,
- "showLegend": true,
- "showLegendCounts": false,
- "showLegendNames": true,
- "showLegendPercent": true,
- "showLegendTime": true,
- "showLegendValues": true,
- "showTimeAxis": true,
- "showTransitionCount": false,
+ },
"targets": [
{
"editorMode": "code",
@@ -977,109 +1054,7 @@
"range": true,
"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": "$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
+ ]
},
{
"collapsed": true,
From 50ca07eb9ee28ab51f0454aa5be0dbca3d4cb263 Mon Sep 17 00:00:00 2001
From: Dora <103416234+doracretu3pillar@users.noreply.github.com>
Date: Thu, 18 Jul 2024 12:05:20 +0300
Subject: [PATCH 05/13] PMM-12710: API breaking changes (#1594)
* Action service, QAN service API changes
* PMM-12710 Update actions endpoints
* PMM-12710 fix lint issue
* PMM-12710 Update settings endpoint
* PMM-12710 Update api request body
* PMM-12710 fix api paths
* PMM-12710 fix actions according to updated response
* PMM-12710 Update mysql api functions
* PMM-12710 Update method names
---------
Co-authored-by: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Co-authored-by: Yash Sartanpara
Co-authored-by: Matej Kubinec
---
.../components/Details/Details.service.ts | 2 +-
.../Details/Explain/Explain.tools.ts | 2 +-
.../Details/Metrics/Metrics.service.ts | 6 ++---
.../components/Details/Plan/Plan.service.ts | 2 +-
.../database-models/mongodb/mongodb.ts | 2 +-
.../database-models/mongodb/service.ts | 6 +++--
.../Details/database-models/mysql/mysql.ts | 16 ++++++------
.../Details/database-models/mysql/service.ts | 26 +++++++++++++------
.../database-models/postgresql/postgresql.ts | 4 +--
.../database-models/postgresql/service.ts | 10 ++++---
.../components/Filters/Filters.service.ts | 2 +-
.../components/Overview/Overview.service.ts | 2 +-
.../components/Actions/Actions.service.ts | 4 +--
pmm-app/src/shared/components/helpers/api.ts | 2 +-
pmm-app/src/shared/core/Settings.service.ts | 6 ++---
.../shared/core/__mocks__/Settings.service.ts | 2 +-
pmm-app/src/shared/core/constants.ts | 3 +--
pmm-app/src/shared/core/types.ts | 4 +--
setup-page/src/App.jsx | 9 +++----
19 files changed, 61 insertions(+), 49 deletions(-)
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Details.service.ts b/pmm-app/src/pmm-qan/panel/components/Details/Details.service.ts
index 6bc68c17a9..1f981d5f59 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Details.service.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Details.service.ts
@@ -14,7 +14,7 @@ const getExample = async ({
tables,
};
- return apiRequestQAN.post('/ObjectDetails/GetQueryExample', data);
+ return apiRequestQAN.post('/query:getExample', data);
};
export default {
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts b/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts
index 0da80a4f70..24e2c4ae05 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts
@@ -80,7 +80,7 @@ export const fetchExplains = async (
};
const [classicResult, jsonResult] = await Promise.all([
- mysqlMethods.getExplainTraditional(payload).then(getActionResult),
+ mysqlMethods.getExplain(payload).then(getActionResult),
mysqlMethods.getExplainJSON(payload).then(getActionResult),
]);
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Metrics/Metrics.service.ts b/pmm-app/src/pmm-qan/panel/components/Details/Metrics/Metrics.service.ts
index 6ebbe8dcd1..7f1b6da853 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Metrics/Metrics.service.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Metrics/Metrics.service.ts
@@ -1,4 +1,4 @@
-import { apiRequestQAN } from 'shared/components/helpers/api';
+import { apiRequest } from 'shared/components/helpers/api';
import { getLabelQueryParams } from 'pmm-qan/panel/QueryAnalytics.tools';
import { HistogramRequest, HistogramResponse } from './Metrics.types';
@@ -15,7 +15,7 @@ export const getMetrics = async ({
totals,
};
- return apiRequestQAN.post('/ObjectDetails/GetMetrics', body);
+ return apiRequest.post('/v1/qan:getMetrics', body);
};
export const getHistogram = async ({
@@ -28,7 +28,7 @@ export const getHistogram = async ({
period_start_to: to,
};
- return apiRequestQAN.post('/ObjectDetails/GetHistogram', body);
+ return apiRequest.post('/v1/qan:getHistogram', body);
};
export default {
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.service.ts b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.service.ts
index 5f51b13d86..3ad61b3732 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.service.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.service.ts
@@ -8,7 +8,7 @@ export const PlanService = {
};
return apiRequestQAN
- .post('/ObjectDetails/GetQueryPlan', body)
+ .get(`/query/${body.queryid}/plan`)
.then(({ planid, query_plan }) => (
planid && query_plan ? { id: planid, plan: query_plan } : undefined
));
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/mongodb.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/mongodb.ts
index 5f4a62e483..e748aa4e4a 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/mongodb.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/mongodb.ts
@@ -9,7 +9,7 @@ export const mongodbMethods = {
query: example.example,
});
- return result.action_id;
+ return result.mongodb_explain.action_id;
} catch (e) {
console.error(e);
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts
index 61d9218d6b..e5ff2d592c 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts
@@ -1,7 +1,9 @@
-import { apiRequestManagement } from 'shared/components/helpers/api';
+import { apiRequest } from 'shared/components/helpers/api';
export default {
getTraditionalExplainJSONMongo(body) {
- return apiRequestManagement.post('/Actions/StartMongoDBExplain', body);
+ const requestBody = { mongodb_explain: body };
+
+ return apiRequest.post('/v1/actions:startServiceAction', requestBody);
},
};
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts
index 5e812a3329..315b50e0b5 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts
@@ -13,7 +13,7 @@ export const mysqlMethods = {
service_id: example.service_id,
});
- return result.action_id;
+ return result.mysql_show_create_table.action_id;
},
getIndexes: async ({ example, tableName, database }) => {
@@ -27,7 +27,7 @@ export const mysqlMethods = {
service_id: example.service_id,
});
- return result.action_id;
+ return result.mysql_show_index.action_id;
},
getStatuses: async ({ example, tableName, database }) => {
@@ -41,16 +41,16 @@ export const mysqlMethods = {
service_id: example.service_id,
});
- return result.action_id;
+ return result.mysql_show_table_status.action_id;
},
getExplainJSON: async ({ example, queryId, placeholders }) => {
try {
const payload = getExplainPayload(example, queryId, placeholders);
- const result = await MysqlDatabaseService.getTraditionalExplainJSONMysql(payload);
+ const result = await MysqlDatabaseService.getExplainJSON(payload);
- return result.action_id;
+ return result.mysql_explain_json.action_id;
} catch (e) {
console.error(e);
@@ -58,13 +58,13 @@ export const mysqlMethods = {
}
},
- getExplainTraditional: async ({ example, queryId, placeholders }) => {
+ getExplain: async ({ example, queryId, placeholders }) => {
try {
const payload = getExplainPayload(example, queryId, placeholders);
- const result = await MysqlDatabaseService.getTraditionalExplainMysql(payload);
+ const result = await MysqlDatabaseService.getExplain(payload);
- return result.action_id;
+ return result.mysql_explain.action_id;
} catch (e) {
console.error(e);
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts
index 30e7284062..13c0e8b491 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts
@@ -1,23 +1,33 @@
-import { apiRequestManagement } from 'shared/components/helpers/api';
+import { apiRequest } from 'shared/components/helpers/api';
export default {
getShowCreateTableMySQL(body) {
- return apiRequestManagement.post('/Actions/StartMySQLShowCreateTable', body);
+ const requestBody = { mysql_show_create_table: body };
+
+ return apiRequest.post('/v1/actions:startServiceAction', requestBody);
},
getMysqlTableStatus(body) {
- return apiRequestManagement.post('/Actions/StartMySQLShowTableStatus', body);
+ const requestBody = { mysql_show_table_status: body };
+
+ return apiRequest.post('/v1/actions:startServiceAction', requestBody);
},
getMysqlIndex(body) {
- return apiRequestManagement.post('/Actions/StartMySQLShowIndex', body);
+ const requestBody = { mysql_show_index: body };
+
+ return apiRequest.post('/v1/actions:startServiceAction', requestBody);
},
- getTraditionalExplainJSONMysql(body) {
- return apiRequestManagement.post('/Actions/StartMySQLExplainJSON', body);
+ getExplainJSON(body) {
+ const requestBody = { mysql_explain_json: body };
+
+ return apiRequest.post('/v1/actions:startServiceAction', requestBody);
},
- getTraditionalExplainMysql(body) {
- return apiRequestManagement.post('/Actions/StartMySQLExplain', body);
+ getExplain(body) {
+ const requestBody = { mysql_explain: body };
+
+ return apiRequest.post('/v1/actions:startServiceAction', requestBody);
},
};
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/postgresql.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/postgresql.ts
index 3d7494e80e..c44a775176 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/postgresql.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/postgresql.ts
@@ -12,7 +12,7 @@ export const postgresqlMethods = {
database,
});
- return result.action_id;
+ return result.postgresql_show_create_table.action_id;
},
getIndexes: async ({ example, tableName, database }) => {
if (!tableName) {
@@ -25,6 +25,6 @@ export const postgresqlMethods = {
database,
});
- return result.action_id;
+ return result.postgresql_show_index.action_id;
},
};
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts
index d65c0bce5e..43559f8201 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts
@@ -1,10 +1,14 @@
-import { apiRequestManagement } from 'shared/components/helpers/api';
+import { apiRequest } from 'shared/components/helpers/api';
export default {
getPostgreSQLIndex(body) {
- return apiRequestManagement.post('/Actions/StartPostgreSQLShowIndex', body);
+ const requestBody = { postgres_show_index: body };
+
+ return apiRequest.post('/v1/actions:startServiceAction', requestBody);
},
getShowCreateTablePostgreSQL(body) {
- return apiRequestManagement.post('/Actions/StartPostgreSQLShowCreateTable', body);
+ const requestBody = { postgres_show_create_table: body };
+
+ return apiRequest.post('/v1/actions:startServiceAction', requestBody);
},
};
diff --git a/pmm-app/src/pmm-qan/panel/components/Filters/Filters.service.ts b/pmm-app/src/pmm-qan/panel/components/Filters/Filters.service.ts
index ca0ea0189f..59f279393b 100644
--- a/pmm-app/src/pmm-qan/panel/components/Filters/Filters.service.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Filters/Filters.service.ts
@@ -29,7 +29,7 @@ export const markCheckedLabels = (labels, paramLabels) => {
export default {
getQueryOverviewFiltersList: async (paramLabels, from, to, mainMetric) => {
- const { labels } = await apiRequestQAN.post('/Filters/Get', {
+ const { labels } = await apiRequestQAN.post('/metrics:getFilters', {
labels: getLabelQueryParams(paramLabels),
main_metric_name: mainMetric,
period_start_from: from,
diff --git a/pmm-app/src/pmm-qan/panel/components/Overview/Overview.service.ts b/pmm-app/src/pmm-qan/panel/components/Overview/Overview.service.ts
index 504024e78f..56a8455938 100644
--- a/pmm-app/src/pmm-qan/panel/components/Overview/Overview.service.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Overview/Overview.service.ts
@@ -20,6 +20,6 @@ export default {
search: body.dimensionSearchText,
};
- return apiRequestQAN.post('/GetReport', request);
+ return apiRequestQAN.post('/metrics:getReport', request);
},
};
diff --git a/pmm-app/src/shared/components/Actions/Actions.service.ts b/pmm-app/src/shared/components/Actions/Actions.service.ts
index 73dacd4db8..d6054df6e4 100644
--- a/pmm-app/src/shared/components/Actions/Actions.service.ts
+++ b/pmm-app/src/shared/components/Actions/Actions.service.ts
@@ -1,8 +1,8 @@
-import { apiRequestManagement } from '../helpers/api';
+import { apiRequest } from '../helpers/api';
import { ActionRequest, ActionResponse } from './Actions.types';
export const ActionsService = {
getActionResult(body: ActionRequest): Promise {
- return apiRequestManagement.post('/Actions/Get', body);
+ return apiRequest.get(`/v1/actions/${body.action_id}`);
},
};
diff --git a/pmm-app/src/shared/components/helpers/api.ts b/pmm-app/src/shared/components/helpers/api.ts
index eb1f9c3885..f4d7fafd4c 100644
--- a/pmm-app/src/shared/components/helpers/api.ts
+++ b/pmm-app/src/shared/components/helpers/api.ts
@@ -60,7 +60,7 @@ export class ApiRequest {
}
export const apiRequest = new ApiRequest({});
-export const apiRequestQAN = new ApiRequest({ baseURL: '/v0/qan' });
+export const apiRequestQAN = new ApiRequest({ baseURL: '/v1/qan' });
export const apiRequestManagement = new ApiRequest({ baseURL: '/v1/management' });
export const apiRequestInventory = new ApiRequest({ baseURL: '/v1/inventory' });
export const apiRequestSettings = new ApiRequest({ baseURL: '/v1/Settings' });
diff --git a/pmm-app/src/shared/core/Settings.service.ts b/pmm-app/src/shared/core/Settings.service.ts
index cc279855e8..e97570c7dc 100644
--- a/pmm-app/src/shared/core/Settings.service.ts
+++ b/pmm-app/src/shared/core/Settings.service.ts
@@ -3,13 +3,13 @@ import { API } from './constants';
import { Settings, SettingsAPIResponse, SettingsPayload } from './types';
export const SettingsService = {
- async getSettings(disableNotifications = false): Promise {
- const { settings } = await apiRequest.post(API.SETTINGS, {}, disableNotifications) as SettingsAPIResponse;
+ async getSettings(): Promise {
+ const { settings } = await apiRequest.get(API.SETTINGS) as SettingsAPIResponse;
return toModel(settings);
},
};
const toModel = (response: SettingsPayload): Settings => ({
- updatesDisabled: response.updates_disabled,
+ updatesEnabled: response.updates_enabled,
});
diff --git a/pmm-app/src/shared/core/__mocks__/Settings.service.ts b/pmm-app/src/shared/core/__mocks__/Settings.service.ts
index b2ae50393d..5d545c0f43 100644
--- a/pmm-app/src/shared/core/__mocks__/Settings.service.ts
+++ b/pmm-app/src/shared/core/__mocks__/Settings.service.ts
@@ -2,6 +2,6 @@ import { Settings } from '../types';
export const SettingsService = {
async getSettings(): Promise {
- return Promise.resolve({ updatesDisabled: false });
+ return Promise.resolve({ updatesEnabled: true });
},
};
diff --git a/pmm-app/src/shared/core/constants.ts b/pmm-app/src/shared/core/constants.ts
index 44f1491f77..db430ec958 100644
--- a/pmm-app/src/shared/core/constants.ts
+++ b/pmm-app/src/shared/core/constants.ts
@@ -1,8 +1,7 @@
import { Databases } from './types';
export const API = {
- ALERTMANAGER: '/alertmanager/api/v2',
- SETTINGS: '/v1/Settings/Get',
+ SETTINGS: '/v1/server/settings',
};
export const DATABASE_LABELS = {
diff --git a/pmm-app/src/shared/core/types.ts b/pmm-app/src/shared/core/types.ts
index c96009c23a..7d7ccbde08 100644
--- a/pmm-app/src/shared/core/types.ts
+++ b/pmm-app/src/shared/core/types.ts
@@ -7,7 +7,7 @@ export enum Databases {
}
export interface Settings {
- updatesDisabled?: boolean;
+ updatesEnabled?: boolean;
}
export interface SettingsAPIResponse {
@@ -15,7 +15,7 @@ export interface SettingsAPIResponse {
}
export interface SettingsPayload {
- updates_disabled: boolean;
+ updates_enabled: boolean;
}
export interface PaginatedPayload {
diff --git a/setup-page/src/App.jsx b/setup-page/src/App.jsx
index a48c4fd2f9..78f6f9e3a3 100644
--- a/setup-page/src/App.jsx
+++ b/setup-page/src/App.jsx
@@ -16,16 +16,13 @@ export function App() {
setLoading(true);
try {
- const response = await fetch('/v1/AWSInstanceCheck', {
- method: 'POST',
+ const response = await fetch(`/v1/server/AWSInstance?instance_id${instanceId.trim()}`, {
+ method: 'GET',
credentials: "include",
cache: "no-cache",
headers: {
"Content-Type": "application/json",
- },
- body: JSON.stringify({
- instance_id: instanceId.trim(),
- }),
+ }
});
if (!response.ok) {
From de050300e6c30a19ea387164e28aebc9d6aaffc5 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Tue, 13 Aug 2024 14:25:03 +0530
Subject: [PATCH 06/13] Attempt to fix PMM-13002 & PMM-13003 (#1614) (#1619)
Co-authored-by: Santo <31849787+sleto-it@users.noreply.github.com>
---
.../MongoDB/MongoDB_ReplSet_Summary.json | 2222 +++++++++--------
1 file changed, 1225 insertions(+), 997 deletions(-)
diff --git a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
index 066e4ccc3d..678f58083d 100644
--- a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
+++ b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
@@ -3,7 +3,10 @@
"list": [
{
"builtIn": 1,
- "datasource": "-- Grafana --",
+ "datasource": {
+ "type": "datasource",
+ "uid": "grafana"
+ },
"enable": true,
"hide": false,
"iconColor": "#e0752d",
@@ -28,7 +31,10 @@
},
{
"builtIn": 1,
- "datasource": "-- Grafana --",
+ "datasource": {
+ "type": "datasource",
+ "uid": "grafana"
+ },
"enable": true,
"hide": true,
"iconColor": "#6ed0e0",
@@ -49,8 +55,6 @@
"editable": false,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
- "id": null,
- "iteration": 1656496368829,
"links": [
{
"icon": "doc",
@@ -137,6 +141,7 @@
"panels": [
{
"collapsed": false,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
@@ -145,10 +150,17 @@
},
"id": 1022,
"panels": [],
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
"title": "Overview",
"type": "row"
},
{
+ "datasource": "Metrics",
"description": "",
"gridPos": {
"h": 3,
@@ -159,13 +171,19 @@
"id": 1228,
"links": [],
"options": {
+ "code": {
+ "language": "plaintext",
+ "showLineNumbers": false,
+ "showMiniMap": false
+ },
"content": "",
"mode": "html"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
"calculatedInterval": "10m",
+ "datasource": "Metrics",
"datasourceErrors": {},
"errors": {},
"expr": "mysql_global_variables_innodb_buffer_pool_size{service_name=~\"$service_name\"} ",
@@ -182,6 +200,7 @@
"type": "text"
},
{
+ "datasource": "Metrics",
"description": "This shows how many members are configured in the replica set.",
"fieldConfig": {
"defaults": {
@@ -235,9 +254,10 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "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",
"intervalFactor": 1,
@@ -251,6 +271,7 @@
"type": "stat"
},
{
+ "datasource": "Metrics",
"description": "This shows the time since the last election.",
"fieldConfig": {
"defaults": {
@@ -304,9 +325,10 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
+ "datasource": "Metrics",
"expr": "time() - max(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"})",
"interval": "5m",
"intervalFactor": 1,
@@ -320,6 +342,7 @@
"type": "stat"
},
{
+ "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": {
@@ -373,7 +396,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -393,6 +416,7 @@
},
{
"columns": [],
+ "datasource": "Metrics",
"description": "",
"fontSize": "100%",
"gridPos": {
@@ -502,32 +526,21 @@
"type": "table-old"
},
{
- "id": null,
- "gridPos": {
- "h": 8,
- "w": 17,
- "x": 0,
- "y": 4
- },
- "type": "state-timeline",
- "title": "ReplSet States",
- "transformations": [],
- "pluginVersion": "6.5.1",
+ "datasource": "Metrics",
"description": "ReplSet statuses during the select time range.",
"fieldConfig": {
"defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "palette-classic"
+ },
"custom": {
- "lineWidth": 0,
"fillOpacity": 100,
+ "lineWidth": 0,
"spanNulls": false
},
- "color": {
- "mode": "palette-classic",
- "fixedColor": "blue"
- },
"mappings": [
{
- "type": "value",
"options": {
"0": {
"index": 11,
@@ -577,18 +590,19 @@
"index": 2,
"text": "Exporter is not connected"
}
- }
+ },
+ "type": "value"
},
{
- "type": "range",
"options": {
"from": 0,
- "to": 1,
"result": {
"index": 0,
"text": "N/A"
- }
- }
+ },
+ "to": 1
+ },
+ "type": "range"
}
],
"thresholds": {
@@ -608,23 +622,32 @@
},
"overrides": []
},
+ "gridPos": {
+ "h": 8,
+ "w": 17,
+ "x": 0,
+ "y": 4
+ },
+ "id": 1559,
"options": {
- "mergeValues": true,
- "showValue": "auto",
"alignValue": "right",
- "rowHeight": 0.9,
"legend": {
- "showLegend": true,
"displayMode": "list",
- "placement": "bottom"
+ "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",
"exemplar": false,
"expr": "max by (service_name) (mongodb_mongod_replset_my_state{set=~\"$replset\",service_name=~\"$service_name\"})",
@@ -636,10 +659,14 @@
"range": true,
"refId": "A"
}
- ]
+ ],
+ "title": "ReplSet States",
+ "transformations": [],
+ "type": "state-timeline"
},
{
- "collapsed": false,
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
@@ -647,841 +674,900 @@
"y": 12
},
"id": 1024,
- "panels": [],
- "title": "Replication Lag",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "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": [
+ "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.",
+ "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": [
{
- "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"
+ "alias": "Avg",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
}
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 13
- },
- "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": "8.3.5",
- "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"
+ },
+ "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
+ }
}
],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
"targets": [
{
- "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
- },
- {
- "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"
+ "datasource": "Metrics",
+ "refId": "A"
}
],
- "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
- }
+ "type": "row"
},
{
- "collapsed": false,
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 21
+ "y": 13
},
"id": 1019,
- "panels": [],
- "title": "Operations",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "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": 24,
- "x": 0,
- "y": 22
- },
- "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": [
- {
- "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": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "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
- },
- {
- "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"
- },
- {
- "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": [],
- "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": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
+ "panels": [
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "format": "ops",
- "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": 30
- },
- "id": 1170,
- "panels": [],
- "title": "Max Member Ping Time",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "This metric can show a correlation with the replication lag value.",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
+ "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
+ },
+ "lines": true,
+ "linewidth": 2,
"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"
+ "title": "MongoDB Instance Summary - $service_name",
+ "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=$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": 31
- },
- "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": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "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
- },
- {
- "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"
- },
- {
- "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"
+ ],
+ "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
+ },
+ {
+ "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": [],
+ "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": []
+ },
+ "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
+ }
}
],
- "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
- },
+ "targets": [
{
- "format": "short",
- "logBase": 1,
- "show": false
+ "datasource": "Metrics",
+ "refId": "A"
}
],
- "yaxis": {
- "align": false
- }
+ "title": "Operations",
+ "type": "row"
},
{
- "collapsed": false,
+ "collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 39
- },
- "id": 1017,
- "panels": [],
- "title": "Max Heartbeat Time / Elections",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "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": 40
- },
- "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": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "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
- },
- {
- "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": 14
},
- "y-axis": true,
- "y_formats": [
- "s",
- "short"
- ],
- "yaxes": [
+ "id": 1170,
+ "panels": [
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "format": "s",
- "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": "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": [
+ "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"
+ },
+ "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": [
+ {
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
+ "title": "Max Member Ping Time",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "datasource": "Metrics",
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 15
+ },
+ "id": 1017,
+ "panels": [
+ {
+ "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
+ }
+ },
+ {
+ "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": [
+ {
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
+ "title": "Max Heartbeat Time / Elections",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "datasource": "Metrics",
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 16
+ },
+ "id": 1547,
+ "panels": [
+ {
+ "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
+ },
{
- "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"
+ "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
}
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 40
- },
- "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": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "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
- }
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 48
- },
- "id": 1547,
- "panels": [],
- "title": "Oplog Recovery Window",
- "type": "row"
- },
- {
- "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": [
+ ],
+ "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": [
{
- "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"
+ "decimals": 2,
+ "format": "s",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "s",
+ "logBase": 1,
+ "show": true
}
- ]
- },
- "overrides": []
- },
- "fill": 2,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 49
- },
- "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": "8.3.5",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "service_name",
- "repeatDirection": "h",
- "seriesOverrides": [
- {
- "alias": "Oplog Range",
- "yaxis": 2
+ ],
+ "yaxis": {
+ "align": false
+ }
}
],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
"targets": [
{
- "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
- },
- {
- "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
+ "datasource": "Metrics",
+ "refId": "A"
}
],
- "yaxis": {
- "align": false
- }
+ "title": "Oplog Recovery Window",
+ "type": "row"
},
{
"collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 57
+ "y": 17
},
"id": 1070,
"panels": [
@@ -1490,6 +1576,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
"description": "Repl buffer ops applied per sec.",
"editable": true,
@@ -1517,7 +1604,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 60
+ "y": 100
},
"hiddenSeries": false,
"id": 85,
@@ -1553,6 +1640,7 @@
"steppedLine": false,
"targets": [
{
+ "datasource": "Metrics",
"expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_count{service_name=~\"$service_name\"})",
"interval": "$interval",
"intervalFactor": 1,
@@ -1606,6 +1694,7 @@
"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,
@@ -1633,7 +1722,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 60
+ "y": 100
},
"hiddenSeries": false,
"id": 79,
@@ -1669,6 +1758,7 @@
"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,
@@ -1722,6 +1812,7 @@
"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,
@@ -1749,7 +1840,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 68
+ "y": 108
},
"hiddenSeries": false,
"id": 84,
@@ -1786,6 +1877,7 @@
"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,
@@ -1794,6 +1886,7 @@
"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,
@@ -1803,6 +1896,7 @@
"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,
@@ -1857,6 +1951,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
"description": "Current hard-coded max and actual size of repl batch buffer.",
"editable": true,
@@ -1884,7 +1979,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 76
+ "y": 116
},
"hiddenSeries": false,
"id": 80,
@@ -1927,6 +2022,7 @@
"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,
@@ -1935,6 +2031,7 @@
"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,
@@ -1988,6 +2085,7 @@
"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,
@@ -2015,7 +2113,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 84
+ "y": 124
},
"hiddenSeries": false,
"id": 81,
@@ -2052,6 +2150,7 @@
"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,
@@ -2061,6 +2160,7 @@
"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,
@@ -2070,6 +2170,7 @@
"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,
@@ -2119,40 +2220,43 @@
}
}
],
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
"title": "Oplog Details",
"type": "row"
},
{
"collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 58
+ "y": 18
},
"id": 1306,
"panels": [
{
"collapsed": false,
- "gridPos": {
- "h": 10,
- "w": 24,
- "x": 0,
- "y": 61
- },
- "id": 1352,
- "pluginVersion": "9.2.20",
+ "datasource": "Metrics",
"default_title_for_rows": "Service Name",
- "title": "Services Details",
- "type": "table",
"fieldConfig": {
"defaults": {
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
"custom": {
"align": "center",
"displayMode": "auto",
- "inspect": false,
- "filterable": false
+ "filterable": false,
+ "inspect": false
},
+ "decimals": 2,
"mappings": [
{
"options": {
@@ -2169,25 +2273,19 @@
"type": "value"
}
],
+ "noValue": "-",
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
"value": 80
}
]
- },
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "noValue": "-",
- "decimals": 2
+ }
},
"overrides": [
{
@@ -2263,55 +2361,27 @@
}
]
},
+ "gridPos": {
+ "h": 10,
+ "w": 24,
+ "x": 0,
+ "y": 101
+ },
+ "id": 1352,
"options": {
- "showHeader": true,
"footer": {
"show": false
- }
- },
- "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
- },
- "indexByName": {
- "Time": 0,
- "Value #A": 6,
- "Value #B": 4,
- "Value #C": 3,
- "Value #D": 5,
- "Value #E": 2,
- "service_name": 1
- },
- "renameByName": {
- "Value #A": "QPS",
- "Value #B": "Average Latency",
- "Value #C": "Uptime",
- "Value #D": "Open Connections",
- "Value #E": "Cursors",
- "service_name": "Service Name"
- }
- }
- }
- ],
+ "showHeader": true
+ },
+ "pluginVersion": "9.2.20",
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ },
"targets": [
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
"expr": "avg by (service_name) (mongodb_instance_uptime_seconds{service_name=~\"$service_name\"})",
@@ -2323,6 +2393,7 @@
"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]))",
@@ -2335,6 +2406,7 @@
"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))",
@@ -2346,6 +2418,7 @@
"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]))",
@@ -2357,6 +2430,7 @@
"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]))",
@@ -2367,16 +2441,56 @@
"refId": "E"
}
],
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- }
+ "title": "Services Details",
+ "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
+ },
+ "indexByName": {
+ "Time": 0,
+ "Value #A": 6,
+ "Value #B": 4,
+ "Value #C": 3,
+ "Value #D": 5,
+ "Value #E": 2,
+ "service_name": 1
+ },
+ "renameByName": {
+ "Value #A": "QPS",
+ "Value #B": "Average Latency",
+ "Value #C": "Uptime",
+ "Value #D": "Open Connections",
+ "Value #E": "Cursors",
+ "service_name": "Service Name"
+ }
+ }
+ }
+ ],
+ "type": "table"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
"description": "Average latency of operations (classified by read, write, or (other) command).",
"editable": true,
@@ -2398,7 +2512,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 67
+ "y": 107
},
"height": "250px",
"hiddenSeries": false,
@@ -2437,6 +2551,7 @@
"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,
@@ -2492,6 +2607,7 @@
"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.)",
"editable": true,
@@ -2513,7 +2629,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 75
+ "y": 115
},
"height": "250px",
"hiddenSeries": false,
@@ -2552,6 +2668,7 @@
"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",
"hide": false,
@@ -2607,6 +2724,7 @@
"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,
@@ -2628,7 +2746,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 83
+ "y": 123
},
"height": "250px",
"hiddenSeries": false,
@@ -2667,6 +2785,7 @@
"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,
@@ -2677,18 +2796,21 @@
"step": 300
},
{
+ "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",
"legendFormat": "Free Transfer Cache",
@@ -2736,41 +2858,44 @@
}
}
],
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
"title": "MongoDB Services Summary",
"type": "row"
},
{
"collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 59
+ "y": 19
},
"id": 1403,
"panels": [
{
"collapsed": false,
- "gridPos": {
- "h": 6,
- "w": 24,
- "x": 0,
- "y": 62
- },
- "id": 1435,
- "pluginVersion": "9.2.20",
+ "datasource": "Metrics",
"default_title_for_rows": "Node Name",
- "title": "Nodes Overview",
- "type": "table",
"fieldConfig": {
"defaults": {
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
+ },
"custom": {
"align": "center",
"displayMode": "auto",
- "inspect": false,
"filterable": false,
+ "inspect": false,
"width": 100
},
+ "decimals": 2,
"mappings": [
{
"options": {
@@ -2787,6 +2912,7 @@
"type": "value"
}
],
+ "noValue": "-",
"thresholds": {
"mode": "absolute",
"steps": [
@@ -2803,13 +2929,7 @@
"value": 20
}
]
- },
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "decimals": 2,
- "noValue": "-"
+ }
},
"overrides": [
{
@@ -2933,60 +3053,31 @@
}
]
},
+ "gridPos": {
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 9
+ },
+ "id": 1435,
"options": {
- "showHeader": true,
"footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
"show": false
- }
- },
- "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": false,
- "node_type": true,
- "service_name": false
- },
- "indexByName": {
- "Time": 0,
- "Value #A": 3,
- "Value #B": 5,
- "Value #C": 6,
- "Value #D": 2,
- "Value #E": 8,
- "Value #F": 4,
- "Value #G": 7,
- "node_name": 1
- },
- "renameByName": {
- "Value #A": "Uptime",
- "Value #B": "Load Average",
- "Value #C": "Memory Available",
- "Value #D": "RAM",
- "Value #E": "Virtual Memory",
- "Value #F": "Disk Space",
- "Value #G": "Min Space Available",
- "node_name": "Node Name",
- "service_name": "Service Name"
- }
- }
- }
- ],
+ "showHeader": true
+ },
+ "pluginVersion": "9.2.20",
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ },
"targets": [
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
"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\"}))",
@@ -2998,6 +3089,7 @@
"refId": "A"
},
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
"expr": "max by (node_name) (avg_over_time(node_load1{node_name=~\"$node_name\"}[$interval]) or avg_over_time(node_load1{node_name=~\"$node_name\"}[5m]))",
@@ -3009,6 +3101,7 @@
"refId": "B"
},
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
"expr": "clamp_max(avg by (node_name) (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 avg by (node_name) ((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)",
@@ -3020,6 +3113,7 @@
"refId": "C"
},
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
"expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"})",
@@ -3031,6 +3125,7 @@
"refId": "D"
},
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
"expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}+container_spec_memory_swap_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"}+node_memory_SwapTotal_bytes{node_name=~\"$node_name\"})",
@@ -3041,6 +3136,7 @@
"refId": "E"
},
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
"expr": "avg by (node_name) (sum(avg(node_filesystem_size_bytes{node_name=~\"$node_name\",fstype=~\"(ext.|xfs|vfat|)\"}) without (mountpoint)) without (device,fstype))",
@@ -3051,6 +3147,7 @@
"refId": "F"
},
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
"expr": "min by (node_name) (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",
@@ -3061,11 +3158,75 @@
"refId": "G"
}
],
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- }
- },
+ "title": "Nodes Overview",
+ "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": false,
+ "node_type": true,
+ "service_name": false
+ },
+ "indexByName": {
+ "Time": 0,
+ "Value #A": 3,
+ "Value #B": 5,
+ "Value #C": 6,
+ "Value #D": 2,
+ "Value #E": 8,
+ "Value #F": 4,
+ "Value #G": 7,
+ "node_name": 1
+ },
+ "renameByName": {
+ "Value #A": "Uptime",
+ "Value #B": "Load Average",
+ "Value #C": "Memory Available",
+ "Value #D": "RAM",
+ "Value #E": "Virtual Memory",
+ "Value #F": "Disk Space",
+ "Value #G": "Min Space Available",
+ "node_name": "Node Name",
+ "service_name": "Service Name"
+ }
+ }
+ }
+ ],
+ "type": "table"
+ }
+ ],
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
+ "title": "Nodes Summary",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 20
+ },
+ "id": 1569,
+ "panels": [
{
"aliasColors": {
"Max Core Utilization": "#bf1b00",
@@ -3080,6 +3241,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"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,
@@ -3095,9 +3257,9 @@
"grid": {},
"gridPos": {
"h": 8,
- "w": 24,
+ "w": 8,
"x": 0,
- "y": 68
+ "y": 10
},
"height": "",
"hiddenSeries": false,
@@ -3126,7 +3288,7 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -3146,6 +3308,7 @@
"steppedLine": true,
"targets": [
{
+ "datasource": "Metrics",
"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",
@@ -3154,6 +3317,7 @@
"refId": "B"
},
{
+ "datasource": "Metrics",
"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,
@@ -3163,6 +3327,7 @@
"refId": "C"
},
{
+ "datasource": "Metrics",
"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,
@@ -3171,6 +3336,7 @@
"refId": "A"
},
{
+ "datasource": "Metrics",
"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,
@@ -3214,7 +3380,21 @@
"yaxis": {
"align": false
}
- },
+ }
+ ],
+ "title": "CPU Usage",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 21
+ },
+ "id": 1571,
+ "panels": [
{
"aliasColors": {
"Allocated": "#E0752D",
@@ -3228,6 +3408,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"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,
@@ -3243,9 +3424,9 @@
"grid": {},
"gridPos": {
"h": 8,
- "w": 24,
+ "w": 8,
"x": 0,
- "y": 76
+ "y": 11
},
"hiddenSeries": false,
"id": 339,
@@ -3272,7 +3453,7 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -3293,6 +3474,7 @@
"targets": [
{
"calculatedInterval": "2s",
+ "datasource": "Metrics",
"datasourceErrors": {},
"errors": {},
"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\"})))",
@@ -3308,6 +3490,7 @@
},
{
"calculatedInterval": "2s",
+ "datasource": "Metrics",
"datasourceErrors": {},
"errors": {},
"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)",
@@ -3356,7 +3539,21 @@
"yaxis": {
"align": false
}
- },
+ }
+ ],
+ "title": "CPU Saturation",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 22
+ },
+ "id": 1585,
+ "panels": [
{
"aliasColors": {
"Swap In (Reads)": "#6ed0e0",
@@ -3366,6 +3563,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"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,
@@ -3381,9 +3579,9 @@
"grid": {},
"gridPos": {
"h": 8,
- "w": 24,
+ "w": 8,
"x": 0,
- "y": 84
+ "y": 35
},
"hiddenSeries": false,
"id": 341,
@@ -3415,7 +3613,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -3442,6 +3640,7 @@
"targets": [
{
"calculatedInterval": "2s",
+ "datasource": "Metrics",
"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)",
@@ -3456,6 +3655,7 @@
},
{
"calculatedInterval": "2s",
+ "datasource": "Metrics",
"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))",
@@ -3469,6 +3669,7 @@
"target": ""
},
{
+ "datasource": "Metrics",
"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",
@@ -3477,6 +3678,7 @@
"refId": "C"
},
{
+ "datasource": "Metrics",
"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",
@@ -3485,6 +3687,7 @@
"refId": "D"
},
{
+ "datasource": "Metrics",
"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",
@@ -3526,12 +3729,27 @@
"yaxis": {
"align": false
}
- },
+ }
+ ],
+ "title": "Disk I/O and Swap Activity",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 23
+ },
+ "id": 1583,
+ "panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
"description": "Network traffic refers to the amount of data moving across a network at a given point in time.",
"editable": true,
@@ -3547,9 +3765,9 @@
"grid": {},
"gridPos": {
"h": 8,
- "w": 24,
+ "w": 8,
"x": 0,
- "y": 92
+ "y": 36
},
"hiddenSeries": false,
"id": 343,
@@ -3575,7 +3793,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "8.3.5",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -3593,6 +3811,7 @@
"targets": [
{
"calculatedInterval": "2s",
+ "datasource": "Metrics",
"datasourceErrors": {},
"errors": {},
"expr": "sum(rate(container_network_receive_bytes_total{node_name=\"$node_name\",id=~\"/kubepods/.*\"}[$interval]) or \nirate(container_network_receive_bytes_total{node_name=\"$node_name\",id=~\"/kubepods/.*\"}[5m])) or\nsum(rate(node_network_receive_bytes_total{node_name=\"$node_name\", device!=\"lo\"}[$interval])) or \nsum(irate(node_network_receive_bytes_total{node_name=\"$node_name\", device!=\"lo\"}[5m])) or \nsum(max_over_time(rdsosmetrics_network_rx{node_name=\"$node_name\"}[$interval])) or \nsum(max_over_time(rdsosmetrics_network_rx{node_name=\"$node_name\"}[5m]))",
@@ -3607,6 +3826,7 @@
},
{
"calculatedInterval": "2s",
+ "datasource": "Metrics",
"datasourceErrors": {},
"errors": {},
"expr": "sum(rate(container_network_transmit_bytes_total{node_name=\"$node_name\",id=~\"/kubepods/.*\"}[$interval]) or \nirate(container_network_transmit_bytes_total{node_name=\"$node_name\",id=~\"/kubepods/.*\"}[5m])) or \nsum(rate(node_network_transmit_bytes_total{node_name=\"$node_name\", device!=\"lo\"}[$interval])) or \nsum(irate(node_network_transmit_bytes_total{node_name=\"$node_name\", device!=\"lo\"}[5m])) or\nsum(max_over_time(rdsosmetrics_network_tx{node_name=\"$node_name\"}[$interval])) or \nsum(max_over_time(rdsosmetrics_network_tx{node_name=\"$node_name\"}[5m]))",
@@ -3655,12 +3875,12 @@
}
}
],
- "title": "Nodes Summary",
+ "title": "Network Traffic",
"type": "row"
}
],
"refresh": "1m",
- "schemaVersion": 34,
+ "schemaVersion": 37,
"style": "dark",
"tags": [
"MongoDB_HA",
@@ -3736,8 +3956,8 @@
"allFormat": "blob",
"current": {
"selected": false,
- "text": "",
- "value": ""
+ "text": "igtest",
+ "value": "igtest"
},
"datasource": "Metrics",
"definition": "label_values(mongodb_up,cluster)",
@@ -3763,8 +3983,8 @@
"allFormat": "glob",
"current": {
"selected": false,
- "text": "",
- "value": ""
+ "text": "shard0",
+ "value": "shard0"
},
"datasource": "Metrics",
"definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
@@ -3789,16 +4009,20 @@
{
"allFormat": "glob",
"current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
"datasource": "Metrics",
"definition": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)",
- "hide": 2,
- "includeAll": false,
+ "hide": 0,
+ "includeAll": true,
"label": "Node Name",
- "multi": false,
+ "multi": true,
"multiFormat": "glob",
"name": "node_name",
"options": [],
@@ -3817,9 +4041,13 @@
{
"allFormat": "glob",
"current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
"datasource": "Metrics",
"definition": "",
From 4c541a4e1388fb719e8781538a15f89161015a75 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Tue, 13 Aug 2024 15:00:04 +0530
Subject: [PATCH 07/13] PMM-13217 Show mongos version and rename the dashboard
(#1618)
* PMM-13217 Show mongos version and rename the dashboard
* PMM-13217 remove current selections
* PMM-13217 Trigger checks
---
.../MongoDB_Cluster_Summary_(new).json | 3040 ++++++++---------
1 file changed, 1340 insertions(+), 1700 deletions(-)
diff --git a/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json b/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
index b96f7c811e..8b6c354f64 100644
--- a/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
+++ b/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
@@ -50,10 +50,10 @@
}
]
},
- "editable": true,
+ "editable": false,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
- "id": 73,
+ "id": null,
"links": [
{
"icon": "doc",
@@ -138,66 +138,26 @@
],
"liveNow": false,
"panels": [
- {
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 1275,
- "panels": [
- {
- "description": "",
- "gridPos": {
- "h": 4,
- "w": 24,
- "x": 0,
- "y": 41
- },
- "id": 1277,
- "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
+ "y": 0
},
"id": 1069,
"panels": [],
- "targets": [
- {
- "refId": "A"
- }
- ],
"title": "Overview",
"type": "row"
},
{
- "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": "Queries per second of all shards + config server replica set",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"decimals": 0,
"mappings": [],
@@ -207,10 +167,6 @@
{
"color": "green",
"value": null
- },
- {
- "color": "red",
- "value": 80
}
]
},
@@ -222,7 +178,7 @@
"h": 5,
"w": 24,
"x": 0,
- "y": 2
+ "y": 1
},
"id": 1227,
"options": {
@@ -242,7 +198,7 @@
{
"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!~\"\"}[1s]))",
+ "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,
@@ -250,13 +206,21 @@
"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.",
+ "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": {
@@ -286,7 +250,7 @@
"h": 2,
"w": 2,
"x": 0,
- "y": 7
+ "y": 6
},
"hideTimeOverride": true,
"id": 36,
@@ -327,7 +291,7 @@
"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": "Number of mongos routers registered as part of the cluster",
"fieldConfig": {
"defaults": {
"color": {
@@ -357,10 +321,10 @@
"h": 2,
"w": 2,
"x": 2,
- "y": 7
+ "y": 6
},
"hideTimeOverride": true,
- "id": 1028,
+ "id": 1298,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -384,21 +348,21 @@
"targets": [
{
"editorMode": "code",
- "expr": "max(mongodb_mongos_sharding_shards_draining_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
+ "expr": "sum(group by (service_name)(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}))",
"interval": "5m",
"intervalFactor": 1,
- "legendFormat": "Draining Total",
+ "legendFormat": "__auto",
"range": true,
"refId": "A",
"step": 300
}
],
"timeFrom": "1m",
- "title": "Draining Shards",
+ "title": "Mongos",
"type": "stat"
},
{
- "description": "",
+ "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": {
@@ -428,10 +392,10 @@
"h": 2,
"w": 2,
"x": 4,
- "y": 7
+ "y": 6
},
"hideTimeOverride": true,
- "id": 35,
+ "id": 1028,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -455,21 +419,21 @@
"targets": [
{
"editorMode": "code",
- "expr": "sum(mongodb_mongos_sharding_databases_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
+ "expr": "max(mongodb_mongos_sharding_shards_draining_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
"interval": "5m",
"intervalFactor": 1,
- "legendFormat": "Shards",
+ "legendFormat": "Draining Total",
"range": true,
"refId": "A",
"step": 300
}
],
"timeFrom": "1m",
- "title": "DBs",
+ "title": "Draining Shards",
"type": "stat"
},
{
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
+ "description": "Total number of user-created databases",
"fieldConfig": {
"defaults": {
"color": {
@@ -497,12 +461,12 @@
},
"gridPos": {
"h": 2,
- "w": 3,
+ "w": 2,
"x": 6,
- "y": 7
+ "y": 6
},
"hideTimeOverride": true,
- "id": 10,
+ "id": 35,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -526,7 +490,7 @@
"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\"})",
+ "expr": "sum(mongodb_mongos_sharding_databases_total{environment=~\"$environment\",cluster=~\"$cluster\"})",
"interval": "5m",
"intervalFactor": 1,
"legendFormat": "Shards",
@@ -536,11 +500,11 @@
}
],
"timeFrom": "1m",
- "title": "Sharded Collections",
+ "title": "DBs",
"type": "stat"
},
{
- "description": "A MongoDB sharded cluster deployment can contain collections that are either unsharded (the default when created) or sharded.",
+ "description": "Number of collections that are sharded",
"fieldConfig": {
"defaults": {
"color": {
@@ -569,11 +533,11 @@
"gridPos": {
"h": 2,
"w": 3,
- "x": 9,
- "y": 7
+ "x": 8,
+ "y": 6
},
"hideTimeOverride": true,
- "id": 1244,
+ "id": 10,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -597,7 +561,7 @@
"targets": [
{
"editorMode": "code",
- "expr": "max(mongodb_mongos_sharding_databases_total{environment=~\"$environment\",cluster=~\"$cluster\", type=\"unpartitioned\"})",
+ "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",
@@ -607,7 +571,7 @@
}
],
"timeFrom": "1m",
- "title": "Unsharded Collections",
+ "title": "Sharded Collections",
"type": "stat"
},
{
@@ -654,9 +618,9 @@
},
"gridPos": {
"h": 2,
- "w": 2,
- "x": 12,
- "y": 7
+ "w": 3,
+ "x": 11,
+ "y": 6
},
"hideTimeOverride": true,
"id": 5,
@@ -726,9 +690,9 @@
},
"gridPos": {
"h": 2,
- "w": 5,
+ "w": 7,
"x": 14,
- "y": 7
+ "y": 6
},
"hideTimeOverride": true,
"id": 11,
@@ -769,14 +733,14 @@
"type": "stat"
},
{
- "description": "This shows the time since the last election.",
+ "description": "Time since the most recent election of any member of the cluster",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "rgb(31, 120, 193)",
"mode": "fixed"
},
- "decimals": 2,
+ "decimals": 1,
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -797,9 +761,9 @@
},
"gridPos": {
"h": 2,
- "w": 5,
- "x": 19,
- "y": 7
+ "w": 3,
+ "x": 21,
+ "y": 6
},
"hideTimeOverride": false,
"id": 1293,
@@ -836,25 +800,19 @@
"step": 300
}
],
- "title": "ReplSet Last Election",
+ "title": "Last Election",
"type": "stat"
},
{
- "id": 1267,
- "gridPos": {
- "h": 5,
- "w": 24,
- "x": 0,
- "y": 9
- },
- "type": "bargauge",
- "title": "Chunks distribution",
- "repeatDirection": "v",
- "pluginVersion": "9.2.20",
"description": "Show the chunk distribution between all the shards involved",
"fieldConfig": {
"defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
"mappings": [],
+ "max": 1,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -864,29 +822,33 @@
}
]
},
- "color": {
- "mode": "thresholds"
- },
- "unit": "percentunit",
- "max": 1,
- "min": 0
+ "unit": "percentunit"
},
"overrides": []
},
+ "gridPos": {
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 8
+ },
+ "id": 1267,
"options": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "auto",
"reduceOptions": {
- "values": false,
"calcs": [
"lastNotNull"
],
- "fields": ""
+ "fields": "",
+ "values": false
},
- "orientation": "auto",
- "displayMode": "gradient",
- "showUnfilled": true,
- "minVizWidth": 0,
- "minVizHeight": 10
+ "showUnfilled": true
},
+ "pluginVersion": "9.2.20",
+ "repeatDirection": "v",
"targets": [
{
"editorMode": "code",
@@ -900,7 +862,9 @@
"range": false,
"refId": "A"
}
- ]
+ ],
+ "title": "Chunks distribution",
+ "type": "bargauge"
},
{
"aliasColors": {},
@@ -928,20 +892,20 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 14
+ "y": 15
},
"hiddenSeries": false,
"id": 1269,
"legend": {
"alignAsTable": true,
- "avg": false,
- "current": true,
+ "avg": true,
+ "current": false,
"hideZero": false,
- "max": false,
- "min": false,
+ "max": true,
+ "min": true,
"rightSide": false,
"show": true,
- "sort": "current",
+ "sort": "avg",
"sortDesc": true,
"total": false,
"values": true
@@ -1053,7 +1017,8 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"mappings": [],
"thresholds": {
@@ -1073,7 +1038,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 14
+ "y": 15
},
"id": 1271,
"links": [],
@@ -1098,10 +1063,19 @@
{
"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": false,
+ "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",
@@ -1127,19 +1101,19 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 22
+ "y": 23
},
"hiddenSeries": false,
"id": 1297,
"legend": {
"alignAsTable": true,
"avg": true,
- "current": true,
- "max": false,
- "min": false,
+ "current": false,
+ "max": true,
+ "min": true,
"rightSide": false,
"show": true,
- "sort": "current",
+ "sort": "avg",
"sortDesc": true,
"total": false,
"values": true
@@ -1162,7 +1136,7 @@
"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\", ervice_name=~\"$service_name\"}[5m]) > 0))",
+ "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,
@@ -1186,7 +1160,7 @@
"yaxes": [
{
"decimals": 2,
- "format": "µs",
+ "format": "\u00b5s",
"logBase": 1,
"min": "0",
"show": true
@@ -1202,10 +1176,12 @@
}
},
{
+ "description": "Show the 5 collections that are most frequently written to.",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"mappings": [],
"thresholds": {
@@ -1214,10 +1190,6 @@
{
"color": "green",
"value": null
- },
- {
- "color": "red",
- "value": 80
}
]
},
@@ -1229,7 +1201,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 22
+ "y": 23
},
"id": 1273,
"options": {
@@ -1250,12 +1222,21 @@
"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\"})[1m]))",
+ "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",
@@ -1289,7 +1270,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 30
+ "y": 31
},
"hiddenSeries": false,
"id": 30,
@@ -1320,8 +1301,7 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [
- ],
+ "seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
@@ -1392,10 +1372,6 @@
{
"color": "green",
"value": null
- },
- {
- "color": "red",
- "value": 80
}
]
}
@@ -1465,7 +1441,11 @@
"value": 2
},
{
- "id": "custom.align"
+ "id": "custom.align",
+ "value": "auto"
+ },
+ {
+ "id": "custom.width"
}
]
},
@@ -1480,6 +1460,17 @@
"value": true
}
]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Service Name"
+ },
+ "properties": [
+ {
+ "id": "custom.width"
+ }
+ ]
}
]
},
@@ -1487,7 +1478,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 30
+ "y": 31
},
"hideTimeOverride": true,
"id": 1289,
@@ -1501,26 +1492,15 @@
],
"show": false
},
- "showHeader": true
+ "showHeader": true,
+ "sortBy": []
},
"pluginVersion": "9.2.20",
"targets": [
{
+ "editorMode": "code",
"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": "{{ engine }}",
- "metric": "",
- "refId": "A",
- "step": 300
- },
- {
- "exemplar": false,
- "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})",
+ "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",
@@ -1548,1436 +1528,1278 @@
"type": "table"
},
{
- "collapsed": true,
+ "collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 38
+ "y": 39
},
"id": 1285,
- "panels": [
- {
- "backgroundColor": "rgba(128,128,128,0.1)",
- "colorMaps": [
- {
- "color": "rgb(107, 152, 102)",
- "text": "PRIMARY"
- },
- {
- "color": "rgb(193, 159, 20)",
- "text": "SECONDARY"
- },
- {
- "color": "#FF7383",
- "text": "Exporter is not connected"
- },
- {
- "color": "#8B8000",
- "text": "ARBITER"
- }
- ],
- "crosshairColor": "#8F070C",
- "description": "ReplSet statuses during the select time range.",
- "display": "timeline",
- "expandFromQueryS": 0,
- "extendLastValue": true,
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 39
- },
- "highlightOnMouseover": true,
- "id": 1281,
- "legendSortBy": "count",
- "lineColor": "rgba(0,0,0,0.1)",
- "metricNameColor": "#000000",
- "pluginVersion": "6.5.1",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": "set",
- "repeatDirection": "h",
- "rowHeight": 50,
- "showDistinctCount": false,
- "showLegend": false,
- "showLegendCounts": false,
- "showLegendNames": true,
- "showLegendPercent": true,
- "showLegendTime": true,
- "showLegendValues": true,
- "showTimeAxis": true,
- "showTransitionCount": false,
- "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"
- }
- ],
- "textSize": 20,
- "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": "$set Node States",
- "type": "natel-discrete-panel",
- "units": "short",
- "use12HourClock": false,
- "useTimePrecision": false,
- "valueMaps": [
- {
- "op": "=",
- "text": "Exporter is not connected",
- "value": "null"
- },
- {
- "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": true
- }
- ],
+ "panels": [],
"title": "Node States",
"type": "row"
},
{
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 39
- },
- "id": 1279,
- "panels": [
- {
- "id": 1030,
- "gridPos": {
- "h": 8,
- "w": 11,
- "x": 0,
- "y": 40
+ "description": "ReplSet statuses during the select time range.",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
},
- "type": "table",
- "title": "Size of Collections in Shards",
- "transformations": [
+ "custom": {
+ "fillOpacity": 100,
+ "lineWidth": 0,
+ "spanNulls": true
+ },
+ "mappings": [
{
- "id": "calculateField",
"options": {
- "mode": "reduceRow",
- "reduce": {
- "reducer": "allValues",
- "include": [
- "database",
- "collection"
- ]
+ "0": {
+ "index": 11,
+ "text": "STARTUP"
},
- "replaceFields": false,
- "binary": {
- "left": "collection",
- "reducer": "sum",
- "right": "database"
- }
- }
- },
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "rs_nm",
- "rowField": "All values",
- "valueField": "Value"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "db\\shard": "DB Name",
- "rs1": "",
- "collection\\rs_nm": "Collection Name",
- "All values\\rs_nm": "All values"
+ "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"
}
- }
- },
- {
- "id": "extractFields",
- "options": {
- "source": "All values"
- }
+ },
+ "type": "value"
},
{
- "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"
+ "result": {
+ "index": 0,
+ "text": "N/A"
}
- }
+ },
+ "type": "range"
}
],
- "pluginVersion": "9.2.20",
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
- "default_title_for_rows": "DB Name",
- "fieldConfig": {
- "defaults": {
- "custom": {
- "align": "left",
- "displayMode": "auto",
- "inspect": false,
- "filterable": false
- },
- "mappings": [
- {
- "options": {
- "0": {
- "color": "dark-blue",
- "index": 0,
- "text": "0"
- }
- },
- "type": "value"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- },
- {
- "color": "green",
- "value": 20
- }
- ]
- },
- "color": {
- "fixedColor": "text",
- "mode": "thresholds"
- },
- "noValue": "N/A",
- "unit": "bytes"
- },
- "overrides": [
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
{
- "matcher": {
- "id": "byRegexp",
- "options": "^((?!(Name)).)*$"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "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": "noValue",
- "value": "0"
- }
- ]
+ "color": "green",
+ "value": null
},
{
- "matcher": {
- "id": "byName",
- "options": "Collection Name"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "auto"
- }
- ]
+ "color": "red",
+ "value": 80
}
]
},
- "options": {
- "showHeader": true,
- "footer": {
- "show": false,
- "reducer": [
- "sum"
- ],
- "fields": ""
- },
- "frameIndex": 0,
- "sortBy": []
- },
- "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\", rs_nm=~\"$shard\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
- "range": false,
- "refId": "A"
- }
- ],
- "hide_headers": false
+ "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": [
{
- "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": "N/A",
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- },
- {
- "color": "green",
- "value": 20
- }
- ]
- }
- },
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "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}"
- }
- ]
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 13,
- "x": 11,
- "y": 47
- },
- "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 (db,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\",db!~\"admin|config\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Collections",
- "range": false,
- "refId": "A"
- },
- {
- "editorMode": "code",
- "exemplar": false,
- "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}",
- "format": "table",
- "hide": true,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{db}} | {{shard}} | Size",
- "range": false,
- "refId": "B"
- }
- ],
- "title": "Number of Collections in Shards",
- "transformations": [
- {
- "id": "groupingToMatrix",
- "options": {
- "columnField": "shard",
- "rowField": "db",
- "valueField": "Value"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {},
- "indexByName": {},
- "renameByName": {
- "db\\shard": "DB Name",
- "rs1": ""
- }
- }
- }
- ],
- "type": "table"
+ "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": "Collection Details",
- "type": "row"
+ "title": "$set Node States",
+ "type": "state-timeline"
},
{
- "collapsed": true,
+ "collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 40
+ "y": 47
},
- "id": 81,
- "panels": [
- {
- "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": 56
- },
- "hiddenSeries": false,
- "id": 37,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "hideEmpty": false,
- "hideZero": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "sort": "current",
- "sortDesc": true,
- "total": false,
- "values": true
+ "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"
},
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "filterable": false,
+ "inspect": 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": [
+ "mappings": [
{
- "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
+ "options": {
+ "0": {
+ "color": "dark-blue",
+ "index": 0,
+ "text": "0"
+ }
+ },
+ "type": "value"
}
],
- "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": []
+ "noValue": "0",
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ }
+ ]
},
- "yaxes": [
- {
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
+ "unit": "bytes"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Collection Name"
},
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
+ "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"
},
{
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "decimals": 2,
- "description": "",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
+ "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"
},
- "overrides": []
- },
- "fill": 6,
- "fillGradient": 0,
- "grid": {},
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 63
- },
- "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",
+ "mode": "reduceRow",
+ "reduce": {
+ "include": [
+ "database",
+ "collection"
+ ],
+ "reducer": "allValues"
+ },
+ "replaceFields": false
+ }
+ },
+ {
+ "id": "groupingToMatrix",
"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"
+ "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": ""
}
- ],
- "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
+ }
+ },
+ {
+ "id": "extractFields",
+ "options": {
+ "source": "All values"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "All values": true
},
- {
- "format": "short",
- "logBase": 1,
- "show": false
+ "indexByName": {
+ "0": 1,
+ "1": 0,
+ "All values": 2,
+ "s1": 3,
+ "s2": 4
+ },
+ "renameByName": {
+ "0": "Collection Name",
+ "1": "DB Name"
}
- ],
- "yaxis": {
- "align": false
}
}
],
- "targets": [
- {
- "refId": "A"
- }
- ],
- "title": "Connections",
- "type": "row"
+ "type": "table"
},
{
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 41
- },
- "id": 1199,
- "panels": [
- {
- "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",
- "value": null
- },
- {
- "color": "green",
- "value": 20
- }
- ]
- }
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Chunks"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "id": "color",
- "value": {
- "fixedColor": "dark-blue",
- "mode": "fixed"
- }
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 8,
- "w": 6,
- "x": 0,
- "y": 71
- },
- "hide_headers": false,
- "id": 1200,
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true
+ "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"
},
- "pluginVersion": "9.2.20",
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
+ "custom": {
+ "align": "left",
+ "displayMode": "auto",
+ "filterable": false,
+ "inspect": false
},
- "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": [
+ "mappings": [
{
- "id": "organize",
"options": {
- "excludeByName": {
- "Time": true
- },
- "indexByName": {},
- "renameByName": {
- "Value": "Chunks",
- "shard": "Shard Name"
+ "0": {
+ "color": "dark-blue",
+ "index": 0
}
- }
+ },
+ "type": "value"
}
],
- "type": "table"
+ "noValue": "0",
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ }
+ ]
+ }
},
- {
- "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": 71
- },
- "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
- }
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 13,
+ "x": 11,
+ "y": 48
+ },
+ "id": 1043,
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
],
- "yaxis": {
- "align": false
- }
+ "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": [
{
- "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": 79
- },
- "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",
+ "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": {
- "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
+ "columnField": "rs_nm",
+ "rowField": "database",
+ "valueField": "Value"
}
},
{
- "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": 86
- },
- "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",
+ "id": "organize",
"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"
+ "excludeByName": {},
+ "indexByName": {},
+ "renameByName": {
+ "database\\rs_nm": "DB Name",
+ "shard0": ""
}
- ],
- "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
- },
+ }
+ }
+ ],
+ "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": [
{
- "format": "short",
- "logBase": 1,
- "show": false
+ "targetBlank": true,
+ "title": "MongoDB ReplSet Summary - ${__series.name}",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range"
}
- ],
- "yaxis": {
- "align": false
- }
+ ]
+ },
+ "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": true,
+ "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",
+ "value": null
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "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": [
{
- "refId": "A"
+ "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
}
],
- "title": "Chunks in Shards",
- "type": "row"
- },
- {
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 42
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "Oplog Range by Shard",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "value_type": "cumulative"
},
- "id": 97,
- "panels": [
- {
- "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": 94
- },
- "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": [
- {
- "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 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
- }
- },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
{
- "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": 94
- },
- "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
- }
- }
- ],
- "targets": [
+ "format": "s",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
{
- "refId": "A"
+ "format": "short",
+ "logBase": 1,
+ "show": true
}
],
- "title": "Replication",
- "type": "row"
+ "yaxis": {
+ "align": false
+ }
}
],
"refresh": false,
@@ -3056,13 +2878,9 @@
},
{
"current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
},
"definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
"hide": 0,
@@ -3088,8 +2906,8 @@
"allFormat": "glob",
"current": {
"selected": false,
- "text": "mycluster2",
- "value": "mycluster2"
+ "text": "",
+ "value": ""
},
"definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
"hide": 0,
@@ -3112,13 +2930,9 @@
},
{
"current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
},
"definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)",
"hide": 2,
@@ -3140,36 +2954,6 @@
"type": "query",
"useTags": false
},
- {
- "current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
- },
- "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": true,
@@ -3183,7 +2967,7 @@
"definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
"hide": 0,
"includeAll": true,
- "label": "Replication Set",
+ "label": "Replica Set",
"multi": true,
"name": "set",
"options": [],
@@ -3202,13 +2986,9 @@
},
{
"current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
},
"definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)",
"hide": 0,
@@ -3229,151 +3009,11 @@
"tagsQuery": "",
"type": "query",
"useTags": false
- },
- {
- "current": {
- "selected": true,
- "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": [
- ""
- ],
- "value": [
- ""
- ]
- },
- "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": [
- ""
- ],
- "value": [
- ""
- ]
- },
- "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": true,
- "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": [
- "All"
- ],
- "value": [
- "All"
- ]
- },
- "hide": 2,
- "includeAll": true,
- "label": "Schema",
- "multi": true,
- "name": "schema",
- "options": [],
- "query": "",
- "skipUrlSync": false,
- "type": "custom"
}
]
},
"time": {
- "from": "now-15m",
+ "from": "now-12h",
"to": "now"
},
"timepicker": {
@@ -3400,8 +3040,8 @@
"30d"
]
},
- "timezone": "",
- "title": "MongoDB Cluster Summary (New)",
+ "timezone": "browser",
+ "title": "MongoDB Sharded Cluster Summary (New)",
"uid": "mongodb-cluster-summary-new",
"version": 1,
"weekStart": ""
From f59b3426e01d0c9bc242cdbf61211d423bdf49e0 Mon Sep 17 00:00:00 2001
From: Santo <31849787+sleto-it@users.noreply.github.com>
Date: Tue, 13 Aug 2024 09:37:59 +0000
Subject: [PATCH 08/13] PMM-13030 MongoDB Collections Overview improvements
(#1613)
* Implement PMM-13030
* remove selected node
* revert selected mongo conf server
---------
Co-authored-by: Roman Novikov
Co-authored-by: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
---
.../MongoDB_Collections_Overview.json | 109 +++++++++++-------
1 file changed, 67 insertions(+), 42 deletions(-)
diff --git a/dashboards/Experimental/MongoDB_Collections_Overview.json b/dashboards/Experimental/MongoDB_Collections_Overview.json
index 4f3a2f35cf..2a2f21d800 100644
--- a/dashboards/Experimental/MongoDB_Collections_Overview.json
+++ b/dashboards/Experimental/MongoDB_Collections_Overview.json
@@ -41,8 +41,6 @@
"editable": false,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
- "id": null,
- "iteration": 1659441366721,
"links": [
{
"asDropdown": false,
@@ -147,6 +145,11 @@
},
"id": 29,
"panels": [],
+ "targets": [
+ {
+ "refId": "A"
+ }
+ ],
"title": "Datasize",
"type": "row"
},
@@ -158,6 +161,8 @@
"mode": "palette-classic"
},
"custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -226,7 +231,6 @@
},
"targets": [
{
- "datasource": "Metrics",
"exemplar": true,
"expr": "avg by (database) (topk(5, mongodb_dbstats_dataSize{rs_state=\"1\",cluster=~\"$cluster\"})/1024/1024)",
"interval": "$interval",
@@ -283,7 +287,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -343,7 +347,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -660,7 +664,6 @@
"type": "row"
},
{
- "datasource": "Metrics",
"description": "Show summary information on the top 5 collections that are most frequently read.",
"fieldConfig": {
"defaults": {
@@ -732,12 +735,13 @@
},
"showHeader": true
},
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": false,
- "expr": "topk (5,sum by (collection) (mongodb_top_queries_count))",
+ "expr": "topk (5,sum by (database, collection) (mongodb_top_queries_count{database =~ \"$database\"}))",
"format": "table",
"hide": false,
"instant": true,
@@ -755,8 +759,9 @@
"options": {
"include": {
"names": [
- "collection",
- "Value"
+ "Value",
+ "database",
+ "collection"
]
}
}
@@ -767,12 +772,23 @@
"regex": "(.*)",
"renamePattern": "$1"
}
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {
+ "Value": 2,
+ "collection": 1,
+ "database": 0
+ },
+ "renameByName": {}
+ }
}
],
"type": "table"
},
{
- "datasource": "Metrics",
"description": "Show summary information on the top 5 collections that are most frequently written to (insert, update, delete, etc.).",
"fieldConfig": {
"defaults": {
@@ -861,13 +877,14 @@
}
]
},
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"repeatDirection": "v",
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": false,
- "expr": "topk(5,sum by (collection) (mongodb_top_insert_count)+sum by (collection) (mongodb_top_insert_count)+sum by (collection) (mongodb_top_remove_count)+sum by (collection) (mongodb_top_update_count))",
+ "expr": "topk(5,sum by (database,collection) (mongodb_top_insert_count{database =~ \"$database\"})+sum by (database,collection) (mongodb_top_insert_count{database =~ \"$database\"})+sum by (database,collection) (mongodb_top_remove_count{database =~ \"$database\"})+sum by (database,collection) (mongodb_top_update_count{database =~ \"$database\"}))",
"format": "table",
"hide": false,
"instant": true,
@@ -886,7 +903,8 @@
"include": {
"names": [
"collection",
- "Value"
+ "Value",
+ "database"
]
}
}
@@ -896,12 +914,23 @@
"options": {
"reducers": []
}
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {
+ "Value": 2,
+ "collection": 1,
+ "database": 0
+ },
+ "renameByName": {}
+ }
}
],
"type": "table"
},
{
- "datasource": "Metrics",
"description": "Show the 5 collections that are most frequently read.",
"fieldConfig": {
"defaults": {
@@ -944,19 +973,20 @@
"showUnfilled": true,
"text": {}
},
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"repeatDirection": "v",
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": false,
- "expr": "topk (5, rate(sum by (collection) (mongodb_top_queries_count)[$interval]))",
+ "expr": "topk (5, rate(sum by (environment, cluster, database, collection) (mongodb_top_queries_count{database =~ \"$database\"})[$interval]))",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "{{collection}}",
+ "legendFormat": "{{ database }}.{{ collection }}",
"refId": "A",
"step": 10
}
@@ -966,7 +996,6 @@
"type": "bargauge"
},
{
- "datasource": "Metrics",
"description": "Show the 5 collections that are most frequently written to (insert, update, delete, etc.).",
"fieldConfig": {
"defaults": {
@@ -1009,19 +1038,20 @@
"showUnfilled": true,
"text": {}
},
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"repeatDirection": "v",
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": false,
- "expr": "topk (5, rate(sum by (collection) (mongodb_top_insert_count)+sum by (collection) (mongodb_top_insert_count)+sum by (collection) (mongodb_top_remove_count)+sum by (collection) (mongodb_top_update_count)))",
+ "expr": "topk (5, rate(sum by (environment, cluster, database, collection) (mongodb_top_insert_count{database =~ \"$database\"})+sum by (environment, cluster, database, collection) (mongodb_top_insert_count{database =~ \"$database\"})+sum by (environment, cluster, database, collection) (mongodb_top_remove_count{database =~ \"$database\"})+sum by (environment, cluster, database, collection) (mongodb_top_update_count{database =~ \"$database\"})))",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 2,
- "legendFormat": "{{database}}",
+ "legendFormat": "{{ database }}.{{ collection }}",
"refId": "A",
"step": 10
}
@@ -1463,7 +1493,7 @@
}
]
},
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"repeat": "database",
"repeatDirection": "v",
"targets": [
@@ -1549,7 +1579,7 @@
}
],
"refresh": "1m",
- "schemaVersion": 34,
+ "schemaVersion": 37,
"style": "dark",
"tags": [
"Percona",
@@ -1645,10 +1675,9 @@
"allValue": ".*",
"current": {
"selected": false,
- "text": "",
- "value": ""
+ "text": "All",
+ "value": "$__all"
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_up{environment=~\"$environment\"},cluster)",
"hide": 0,
"includeAll": true,
@@ -1673,7 +1702,6 @@
"text": "All",
"value": "$__all"
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\"}, node_name)",
"hide": 2,
"includeAll": true,
@@ -1697,7 +1725,6 @@
"text": "",
"value": ""
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)",
"hide": 0,
"includeAll": false,
@@ -1717,12 +1744,10 @@
},
{
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
+ "text": "",
"value": ""
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
"hide": 0,
"includeAll": false,
@@ -1742,15 +1767,17 @@
},
{
"current": {
- "isNone": true,
- "selected": false,
- "text": "None",
- "value": ""
+ "selected": true,
+ "text": [
+ "admin"
+ ],
+ "value": [
+ "admin"
+ ]
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\"}, database)",
"hide": 0,
- "includeAll": false,
+ "includeAll": true,
"label": "Database",
"multi": true,
"name": "database",
@@ -1770,12 +1797,10 @@
},
{
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
- "value": ""
+ "text": "$cmd.aggregate",
+ "value": "$cmd.aggregate"
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_top_commands_count{database=~\"$database\"}, collection)",
"hide": 2,
"includeAll": false,
From d2c2337203170117474a42e90e8446abef170b0a Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Tue, 13 Aug 2024 18:31:55 +0530
Subject: [PATCH 09/13] PMM-12982 Add roles and Cleanup the dashboard (#1617)
* PMM-12982 Add roles and Cleanup the dashboard
* PMM-12982 fix legend sorting
* PMM-12982 fix text size
* PMM-12982 fix url
* PMM-12982 remove current selections
* PMM-12982 update link
---
.../MongoDB_ReplSet_Summary_(New).json | 3504 ++++++++++-------
1 file changed, 2187 insertions(+), 1317 deletions(-)
diff --git a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json b/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
index 8964e8f5b9..50290da80f 100644
--- a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
+++ b/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
@@ -55,7 +55,7 @@
"editable": false,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
- "id": 78,
+ "id": null,
"links": [
{
"icon": "doc",
@@ -141,55 +141,129 @@
"liveNow": false,
"panels": [
{
- "collapsed": true,
+ "collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
- "id": 1032,
- "panels": [
- {
- "description": "",
- "gridPos": {
- "h": 4,
- "w": 24,
- "x": 0,
- "y": 193
- },
- "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",
+ "id": 1030,
+ "panels": [],
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "title": "Overview - $service_name",
"type": "row"
},
{
- "collapsed": false,
+ "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": 1,
- "w": 24,
+ "h": 4,
+ "w": 2,
"x": 0,
"y": 1
},
- "id": 1030,
- "panels": [],
- "repeat": "service_name",
- "repeatDirection": "h",
- "title": "Overview - $service_name",
- "type": "row"
+ "id": 1586,
+ "options": {
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "center",
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "textMode": "value"
+ },
+ "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\"})",
+ "interval": "$interval",
+ "legendFormat": "{{set}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "State",
+ "type": "stat"
},
{
"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.",
@@ -357,9 +431,9 @@
},
"gridPos": {
"h": 4,
- "w": 3,
- "x": 0,
- "y": 2
+ "w": 2.5,
+ "x": 2,
+ "y": 1
},
"id": 1071,
"links": [],
@@ -379,7 +453,7 @@
"targets": [
{
"editorMode": "code",
- "expr": "100 - (avg by (instance) (rate(node_cpu_seconds_total{node_name=\"$node_name\",mode=\"idle\"}[1m])) * 100)",
+ "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,
@@ -421,9 +495,9 @@
},
"gridPos": {
"h": 4,
- "w": 3,
- "x": 3,
- "y": 2
+ "w": 2.5,
+ "x": 4.5,
+ "y": 1
},
"id": 1060,
"links": [],
@@ -444,7 +518,7 @@
{
"editorMode": "code",
"exemplar": false,
- "expr": "1 - avg(node_memory_MemAvailable_bytes{node_name=~\"$node_name\"})/ avg(node_memory_MemTotal_bytes{node_name=~\"$node_name\"})",
+ "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",
@@ -486,9 +560,9 @@
},
"gridPos": {
"h": 4,
- "w": 3,
- "x": 6,
- "y": 2
+ "w": 2.5,
+ "x": 7,
+ "y": 1
},
"id": 1073,
"links": [],
@@ -508,7 +582,7 @@
"targets": [
{
"editorMode": "code",
- "expr": "sum by (node_name) (rate(node_disk_io_time_seconds_total{node_name=~\"$node_name\"}[$interval]) or irate(node_disk_io_time_seconds_total{node_name=~\"$node_name\"}[5m]))",
+ "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": "{{ node_name }}",
"range": true,
@@ -548,9 +622,9 @@
},
"gridPos": {
"h": 4,
- "w": 3,
- "x": 9,
- "y": 2
+ "w": 2.5,
+ "x": 9.5,
+ "y": 1
},
"id": 1062,
"options": {
@@ -595,7 +669,8 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"mappings": [],
"thresholds": {
@@ -618,7 +693,7 @@
"h": 4,
"w": 4,
"x": 12,
- "y": 2
+ "y": 1
},
"id": 1076,
"links": [],
@@ -643,7 +718,7 @@
"datasourceErrors": {},
"editorMode": "code",
"errors": {},
- "expr": "avg by (node_name) (sum(\n(rate(node_disk_reads_completed_total{node_name=~\"$node_name\"}[$interval]) or \nirate(node_disk_reads_completed_total{node_name=~\"$node_name\"}[5m]))\n))",
+ "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,
@@ -659,7 +734,7 @@
"datasourceErrors": {},
"editorMode": "code",
"errors": {},
- "expr": "avg by (node_name) (sum(\n(rate(node_disk_writes_completed_total{node_name=~\"$node_name\"}[$interval]) or \nirate(node_disk_writes_completed_total{node_name=~\"$node_name\"}[5m])) \n))",
+ "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",
@@ -680,7 +755,8 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"decimals": 0,
"links": [
@@ -708,7 +784,7 @@
"h": 4,
"w": 4,
"x": 16,
- "y": 2
+ "y": 1
},
"id": 1052,
"links": [],
@@ -731,13 +807,15 @@
{
"calculatedInterval": "2s",
"datasourceErrors": {},
+ "editorMode": "code",
"errors": {},
- "expr": "sum by (node_name) (rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or sum by (node_name) (irate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or sum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or sum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[5m])) ",
+ "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": ""
@@ -745,13 +823,15 @@
{
"calculatedInterval": "2s",
"datasourceErrors": {},
+ "editorMode": "code",
"errors": {},
- "expr": "sum by (node_name) (rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or sum by (node_name) (irate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or\nsum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[$interval])) or sum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[5m]))",
+ "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": ""
@@ -767,7 +847,7 @@
"color": {
"mode": "thresholds"
},
- "decimals": 2,
+ "decimals": 1,
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -794,7 +874,7 @@
"h": 4,
"w": 2,
"x": 20,
- "y": 2
+ "y": 1
},
"id": 321,
"interval": "$interval",
@@ -812,9 +892,7 @@
"fields": "",
"values": false
},
- "text": {
- "valueSize": 20
- },
+ "text": {},
"textMode": "auto"
},
"pluginVersion": "9.2.20",
@@ -822,15 +900,17 @@
{
"calculatedInterval": "10m",
"datasourceErrors": {},
+ "editorMode": "code",
"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\"}))",
+ "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
}
@@ -863,14 +943,14 @@
"h": 4,
"w": 2,
"x": 22,
- "y": 2
+ "y": 1
},
"id": 1039,
"interval": "$interval",
"links": [],
"maxDataPoints": 100,
"options": {
- "colorMode": "value",
+ "colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
@@ -916,40 +996,28 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 16
+ "y": 15
},
"id": 1150,
"panels": [],
- "title": "Node States",
+ "title": "States - $rs_nm",
"type": "row"
},
{
- "id": null,
- "gridPos": {
- "h": 6,
- "w": 24,
- "x": 0,
- "y": 17
- },
- "type": "state-timeline",
- "title": "ReplSet States",
- "transformations": [],
- "pluginVersion": "6.5.1",
"description": "ReplSet statuses during the selected time range.",
"fieldConfig": {
"defaults": {
+ "color": {
+ "fixedColor": "blue",
+ "mode": "palette-classic"
+ },
"custom": {
- "lineWidth": 0,
"fillOpacity": 100,
+ "lineWidth": 0,
"spanNulls": false
},
- "color": {
- "mode": "palette-classic",
- "fixedColor": "blue"
- },
"mappings": [
{
- "type": "value",
"options": {
"0": {
"index": 11,
@@ -999,18 +1067,19 @@
"index": 2,
"text": "Exporter is not connected"
}
- }
+ },
+ "type": "value"
},
{
- "type": "range",
"options": {
"from": 0,
- "to": 1,
"result": {
"index": 0,
"text": "N/A"
- }
- }
+ },
+ "to": 1
+ },
+ "type": "range"
}
],
"thresholds": {
@@ -1030,21 +1099,29 @@
},
"overrides": []
},
+ "gridPos": {
+ "h": 6,
+ "w": 24,
+ "x": 0,
+ "y": 16
+ },
+ "id": 1587,
"options": {
- "mergeValues": true,
- "showValue": "auto",
"alignValue": "right",
- "rowHeight": 0.9,
"legend": {
- "showLegend": true,
"displayMode": "list",
- "placement": "bottom"
+ "placement": "bottom",
+ "showLegend": true
},
+ "mergeValues": true,
+ "rowHeight": 0.9,
+ "showValue": "auto",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
+ "pluginVersion": "6.5.1",
"targets": [
{
"editorMode": "code",
@@ -1054,32 +1131,1223 @@
"range": true,
"refId": "A"
}
- ]
+ ],
+ "title": "Node States",
+ "transformations": [],
+ "type": "state-timeline"
},
{
- "collapsed": true,
+ "collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 23
+ "y": 22
},
"id": 1170,
- "panels": [
+ "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": [
{
- "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": []
+ "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"
+ },
+ "mappings": [],
+ "noValue": "0",
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
+ },
+ "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"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showUnfilled": true,
+ "text": {}
+ },
+ "pluginVersion": "9.2.20",
+ "repeatDirection": "v",
+ "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"
+ }
+ ],
+ "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": 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": []
+ },
+ "yaxes": [
+ {
+ "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"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
+ },
+ "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"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showUnfilled": true
+ },
+ "pluginVersion": "9.2.20",
+ "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,
+ "refId": "A"
+ }
+ ],
+ "title": "Top Hottest Collections by Write",
+ "type": "bargauge"
+ },
+ {
+ "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": 8,
+ "w": 12,
+ "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
+ },
+ "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": [
+ {
+ "decimals": 2,
+ "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": [
+ {
+ "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
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "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": 8,
+ "w": 12,
+ "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
+ },
+ "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
+ },
+ {
+ "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": [
+ {
+ "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
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 55
+ },
+ "id": 1056,
+ "panels": [
+ {
+ "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": true,
+ "inspect": false
+ },
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "dark-blue",
+ "index": 0,
+ "text": "0"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "noValue": "N/A",
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red"
+ }
+ ]
+ },
+ "unit": "bytes"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
+ },
+ "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}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "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
+ },
+ "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": [
+ {
+ "color": "red"
+ }
+ ]
+ }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "^((?!(DB Name)).)*$"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
+ },
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 13,
+ "x": 11,
+ "y": 56
+ },
+ "id": 1045,
+ "options": {
+ "footer": {
+ "enablePagination": true,
+ "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,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": "__auto",
+ "range": false,
+ "refId": "A"
+ }
+ ],
+ "title": "Number of Collections",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "Time": true,
+ "cluster": true,
+ "rs_nm": true
+ },
+ "indexByName": {
+ "Time": 0,
+ "Value": 5,
+ "cluster": 1,
+ "database": 3,
+ "rs_nm": 4,
+ "service_name": 2
+ },
+ "renameByName": {
+ "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,
+ "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,
@@ -1092,20 +2360,19 @@
"h": 7,
"w": 12,
"x": 0,
- "y": 24
+ "y": 57
},
"hiddenSeries": false,
- "id": 15,
+ "id": 1038,
"legend": {
"alignAsTable": true,
- "avg": false,
- "current": true,
- "hideZero": false,
- "max": false,
- "min": false,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
"rightSide": false,
"show": true,
- "sort": "current",
+ "sort": "avg",
"sortDesc": true,
"total": false,
"values": true
@@ -1113,7 +2380,7 @@
"lines": true,
"linewidth": 2,
"links": [],
- "nullPointMode": "null",
+ "nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
@@ -1125,8 +2392,11 @@
"renderer": "flot",
"seriesOverrides": [
{
- "alias": "/repl.*/",
- "yaxis": 2
+ "alias": "Avg",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
}
],
"spaceLength": 10,
@@ -1135,49 +2405,32 @@
"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,
+ "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": "repl_{{legacy_op_type}} - {{ service_name }}",
+ "legendFormat": "{{service_name}}",
"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 - {{ service_name }}",
- "range": true,
- "refId": "B",
- "step": 300
- },
+ }
+ ],
+ "thresholds": [
{
- "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}} - {{ service_name }}",
- "range": true,
- "refId": "C",
- "step": 300
+ "colorMode": "critical",
+ "fill": false,
+ "line": true,
+ "op": "gt",
+ "value": 10,
+ "yaxis": "left"
}
],
- "thresholds": [],
"timeRegions": [],
- "title": "Command Operations",
+ "title": "Replication Lag",
"tooltip": {
"msResolution": false,
"shared": true,
- "sort": 2,
- "value_type": "individual"
+ "sort": 5,
+ "value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
@@ -1188,172 +2441,144 @@
},
"y-axis": true,
"y_formats": [
- "short",
+ "s",
"short"
],
"yaxes": [
{
"decimals": 2,
- "format": "ops",
+ "format": "s",
"label": "",
"logBase": 1,
"min": 0,
"show": true
},
{
- "decimals": 2,
- "format": "ops",
- "label": "",
+ "format": "short",
"logBase": 1,
- "min": "0",
- "show": true
+ "show": false
}
],
"yaxis": {
"align": false
}
},
- {
- "description": "Show the 5 collections that are most frequently read.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- }
- ]
- },
- "unit": "ops"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 24
- },
- "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,
- "interval": "",
- "legendFormat": "{{service_name}} - {{database}}.{{collection}}",
- "range": true,
- "refId": "B"
- }
- ],
- "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)",
+ "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": []
},
"fill": 2,
"fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
"gridPos": {
- "h": 8,
+ "h": 7,
"w": 12,
- "x": 0,
- "y": 31
+ "x": 12,
+ "y": 57
},
"hiddenSeries": false,
- "id": 1064,
+ "id": 1025,
"legend": {
"alignAsTable": true,
"avg": true,
- "current": true,
- "max": false,
- "min": false,
+ "current": false,
+ "max": true,
+ "min": true,
"rightSide": false,
"show": true,
- "sort": "current",
+ "sort": "avg",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
- "nullPointMode": "null",
+ "links": [],
+ "nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
+ "paceLength": 10,
"percentage": false,
"pluginVersion": "9.2.20",
- "pointradius": 2,
+ "pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "Avg",
+ "color": "#C4162A",
+ "fill": 0,
+ "legend": false,
+ "stack": false
+ }
+ ],
"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))",
+ "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",
- "legendFormat": "{{op_type}} - {{ service_name }}",
+ "intervalFactor": 1,
+ "legendFormat": "{{ service_name }}",
+ "metric": "",
"range": true,
- "refId": "A"
+ "refId": "A",
+ "step": 300
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Query execution times",
+ "title": "Oplog Recovery Window",
"tooltip": {
+ "msResolution": false,
"shared": true,
- "sort": 2,
- "value_type": "individual"
+ "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",
+ "format": "s",
+ "label": "",
"logBase": 1,
- "min": "0",
+ "min": 0,
"show": true
},
{
@@ -1365,187 +2590,28 @@
"yaxis": {
"align": false
}
- },
- {
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "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"
- ],
- "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,
- "interval": "",
- "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0",
- "legendFormat": "{{service_name}} - {{database}}.{{collection}}",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "Top Hottest Collections by Write",
- "type": "bargauge"
- },
- {
- "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.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 39
- },
- "id": 1066,
- "links": [],
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "(sum by (service_name)(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 (service_name)(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 - {{ service_name }}",
- "range": true,
- "refId": "J",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "(sum by (service_name)(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 (service_name)(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 - {{ service_name }}",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Query Efficiency",
- "type": "timeseries"
- },
+ }
+ ],
+ "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": "Operations queued due to a lock.",
- "editable": true,
- "error": false,
+ "description": "Average latency of operations (classified by read, write, or (other) command)",
"fieldConfig": {
"defaults": {
"links": []
@@ -1554,27 +2620,21 @@
},
"fill": 2,
"fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
"gridPos": {
- "h": 8,
+ "h": 7,
"w": 12,
- "x": 12,
- "y": 39
+ "x": 0,
+ "y": 58
},
- "height": "250px",
"hiddenSeries": false,
- "id": 1036,
+ "id": 1020,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
- "hideZero": false,
"max": true,
"min": true,
+ "rightSide": false,
"show": true,
"sort": "avg",
"sortDesc": true,
@@ -1583,78 +2643,71 @@
},
"lines": true,
"linewidth": 2,
- "links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
- "paceLength": 10,
"percentage": false,
"pluginVersion": "9.2.20",
- "pointradius": 5,
+ "pointradius": 2,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "/fc_count.*/",
+ "yaxis": 2
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"editorMode": "code",
- "expr": "avg by (service_name,type) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})",
- "format": "time_series",
+ "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",
- "intervalFactor": 1,
- "legendFormat": "{{type}} - {{ service_name }}",
+ "legendFormat": "fc_time",
"range": true,
- "refId": "J",
- "step": 300
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 0,
- "yaxis": "left"
+ "refId": "B"
}
],
+ "thresholds": [],
"timeRegions": [],
- "title": "Queued Operations",
+ "title": "Flow Control",
"tooltip": {
- "msResolution": false,
"shared": true,
- "sort": 5,
- "value_type": "cumulative"
+ "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",
+ "format": "µs",
"label": "",
"logBase": 1,
- "min": 0,
+ "min": "0",
"show": true
},
{
"format": "short",
"logBase": 1,
- "show": false
+ "min": "0",
+ "show": true
}
],
"yaxis": {
@@ -1667,37 +2720,34 @@
"dashLength": 10,
"dashes": false,
"decimals": 2,
- "description": "",
+ "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": []
+ "links": [],
+ "unit": "none"
},
"overrides": []
},
"fill": 2,
"fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
+ "grid": {},
"gridPos": {
- "h": 8,
+ "h": 7,
"w": 12,
- "x": 0,
- "y": 47
+ "x": 12,
+ "y": 58
},
- "height": "250px",
"hiddenSeries": false,
- "id": 1067,
+ "id": 1041,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
+ "rightSide": false,
"show": true,
"sort": "avg",
"sortDesc": true,
@@ -1707,66 +2757,53 @@
"lines": true,
"linewidth": 2,
"links": [],
- "nullPointMode": "null as zero",
+ "nullPointMode": "null",
"options": {
"alertThreshold": true
},
"paceLength": 10,
- "percentage": true,
+ "percentage": false,
"pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "write",
+ "transform": "negative-Y"
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"editorMode": "code",
- "expr": "mongodb_ss_globalLock_activeClients_readers{service_name=~\"$service_name\"}",
- "format": "time_series",
- "hide": false,
+ "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",
"intervalFactor": 1,
- "legendFormat": "Active Readers - {{ service_name }}",
+ "legendFormat": "read",
+ "metric": "",
"range": true,
- "refId": "J",
+ "refId": "B",
"step": 300
},
{
"editorMode": "code",
- "expr": "mongodb_ss_globalLock_activeClients_writers{service_name=~\"$service_name\"}",
- "format": "time_series",
+ "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",
"intervalFactor": 1,
- "legendFormat": "Active Writers - {{ service_name }}",
+ "legendFormat": "write",
+ "metric": "",
"range": true,
"refId": "A",
"step": 300
- },
- {
- "editorMode": "code",
- "expr": "mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"readers\"}",
- "hide": false,
- "legendFormat": "Queued Readers - {{ service_name }}",
- "range": true,
- "refId": "B"
- },
- {
- "editorMode": "code",
- "expr": "mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"writers\"}",
- "hide": false,
- "interval": "",
- "legendFormat": "Queued Writers - {{ service_name }}",
- "range": true,
- "refId": "C"
}
],
"thresholds": [],
"timeRegions": [],
- "title": "Reads & Writes",
+ "title": "WiredTiger Concurrency Tickets Available",
"tooltip": {
"msResolution": false,
"shared": true,
@@ -1774,27 +2811,21 @@
"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",
"label": "",
"logBase": 1,
- "min": 0,
"show": true
},
{
- "format": "none",
+ "format": "short",
"logBase": 1,
"show": false
}
@@ -1802,131 +2833,28 @@
"yaxis": {
"align": false
}
- },
- {
- "description": "MongoDB Connections",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 19,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "decimals": 2,
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 47
- },
- "id": 1074,
- "links": [],
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "editorMode": "code",
- "expr": "mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"current\"}",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{ service_name}} - Current",
- "range": true,
- "refId": "J",
- "step": 300
- },
- {
- "editorMode": "code",
- "expr": "mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"available\"}",
- "format": "time_series",
- "hide": false,
- "interval": "$interval",
- "intervalFactor": 1,
- "legendFormat": "{{ service_name}} - Available",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Connections",
- "type": "timeseries"
}
],
- "title": "Details",
+ "repeat": "service_name",
+ "repeatDirection": "h",
+ "title": "Performance - $service_name",
"type": "row"
},
{
"collapsed": true,
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 24
+ "y": 60
},
- "id": 1056,
+ "id": 1403,
"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": "Node Name",
"fieldConfig": {
"defaults": {
"color": {
@@ -1934,93 +2862,194 @@
"mode": "thresholds"
},
"custom": {
- "align": "left",
+ "align": "center",
"displayMode": "auto",
"filterable": false,
- "inspect": false
+ "inspect": false,
+ "width": 100
},
+ "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": "orange",
+ "value": 10
+ },
{
"color": "green",
"value": 20
}
]
- },
- "unit": "bytes"
+ }
},
"overrides": [
{
"matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
+ "id": "byName",
+ "options": "node_name"
},
"properties": [
{
- "id": "custom.displayMode",
- "value": "color-background-solid"
+ "id": "custom.align",
+ "value": "left"
},
{
- "id": "color",
- "value": {
- "fixedColor": "dark-blue",
- "mode": "fixed"
- }
+ "id": "custom.width"
},
{
"id": "links",
"value": [
{
"title": "",
- "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}"
+ "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}"
}
]
}
]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #A"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "s"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #D"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "decbytes"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #F"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "decbytes"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #C"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "percent"
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ },
+ {
+ "id": "custom.width",
+ "value": 160
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #G"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "percent"
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ },
+ {
+ "id": "custom.width",
+ "value": 170
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #E"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "decbytes"
+ },
+ {
+ "id": "custom.width",
+ "value": 160
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #B"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 120
+ }
+ ]
}
]
},
"gridPos": {
- "h": 8,
- "w": 11,
+ "h": 7,
+ "w": 24,
"x": 0,
- "y": 25
+ "y": 61
},
- "hide_headers": false,
- "id": 1043,
+ "id": 1435,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
- ],
- "show": false
- },
- "frameIndex": 0,
- "showHeader": true,
- "sortBy": [
- {
- "desc": false,
- "displayName": "DB Name\\Value"
- }
- ]
+ ],
+ "show": false
+ },
+ "showHeader": true
},
"pluginVersion": "9.2.20",
"sorting_props": {
@@ -2029,196 +3058,312 @@
},
"targets": [
{
+ "datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
- "expr": "max by (environment,cluster,rs_nm, collection) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\"})",
+ "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": "table",
"hide": false,
"instant": true,
"interval": "$interval",
- "legendFormat": "{{collection}}",
- "range": false,
+ "legendFormat": "{{node_name}} | Uptime",
"refId": "A"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "max by (node_name) (avg_over_time(node_load1{node_name=~\"$node_name\"}[$interval]) or avg_over_time(node_load1{node_name=~\"$node_name\"}[5m]))",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{node_name}} | Load",
+ "range": false,
+ "refId": "B"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "clamp_max(avg by (node_name) (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 avg by (node_name) ((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)",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{node_name}} | Memory",
+ "range": false,
+ "refId": "C"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"})",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{node_name}} | RAM",
+ "range": false,
+ "refId": "D"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}+container_spec_memory_swap_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"}+node_memory_SwapTotal_bytes{node_name=~\"$node_name\"})",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{node_name}} | Virtual",
+ "refId": "E"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "avg by (node_name) (sum(avg(node_filesystem_size_bytes{node_name=~\"$node_name\",fstype=~\"(ext.|xfs|vfat|)\"}) without (mountpoint)) without (device,fstype))",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{node_name}} | Disk",
+ "refId": "F"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "min by (node_name) (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",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{node_name}} | Min Space",
+ "refId": "G"
}
],
- "title": "Size of Collections",
+ "title": "Nodes Overview",
"transformations": [
{
- "id": "groupingToMatrix",
- "options": {
- "columnField": "shard",
- "rowField": "db",
- "valueField": "Value"
- }
+ "id": "merge",
+ "options": {}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
- "cluster": false,
- "environment": false,
- "rs_nm": true
+ "agent_id": true,
+ "agent_type": true,
+ "environment": true,
+ "instance": true,
+ "job": true,
+ "machine_id": true,
+ "node_id": true,
+ "node_name": false,
+ "node_type": true,
+ "service_name": false
},
"indexByName": {
- "Time": 1,
- "Value": 5,
- "cluster": 2,
- "collection": 3,
- "environment": 0,
- "rs_nm": 4
+ "Time": 0,
+ "Value #A": 3,
+ "Value #B": 5,
+ "Value #C": 6,
+ "Value #D": 2,
+ "Value #E": 8,
+ "Value #F": 4,
+ "Value #G": 7,
+ "node_name": 1
},
"renameByName": {
- "Value": "Size",
- "db\\shard": "DB Name",
- "rs1": ""
+ "Value #A": "Uptime",
+ "Value #B": "Load Average",
+ "Value #C": "Memory Available",
+ "Value #D": "RAM",
+ "Value #E": "Virtual Memory",
+ "Value #F": "Disk Space",
+ "Value #G": "Min Space Available",
+ "node_name": "Node Name",
+ "service_name": "Service Name"
}
}
}
],
"type": "table"
- },
+ }
+ ],
+ "targets": [
{
- "collapsed": false,
- "default_title_for_rows": "DB Name",
- "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.",
+ "datasource": "Metrics",
+ "refId": "A"
+ }
+ ],
+ "title": "Nodes Summary",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 61
+ },
+ "id": 1569,
+ "panels": [
+ {
+ "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,
+ "datasource": "Metrics",
+ "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": {
- "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": "N/A",
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red"
- },
- {
- "color": "green",
- "value": 20
- }
- ]
- }
+ "links": []
},
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "^((?!(DB Name)).)*$"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "color-background-solid"
- },
- {
- "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}"
- }
- ]
- }
- ]
- }
- ]
+ "overrides": []
},
+ "fill": 6,
+ "fillGradient": 0,
+ "grid": {},
"gridPos": {
"h": 8,
- "w": 13,
- "x": 11,
- "y": 25
+ "w": 8,
+ "x": 0,
+ "y": 62
},
- "id": 1045,
+ "height": "",
+ "hiddenSeries": false,
+ "id": 337,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "hideEmpty": true,
+ "hideZero": true,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "null",
"options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "frameIndex": 0,
- "showHeader": true,
- "sortBy": [
- {
- "desc": false,
- "displayName": "DB Name\\Value"
- }
- ]
+ "alertThreshold": true
},
+ "paceLength": 10,
+ "percentage": false,
"pluginVersion": "9.2.20",
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- },
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeat": "node_name",
+ "repeatDirection": "h",
+ "seriesOverrides": [
+ {
+ "alias": "Max Core Utilization",
+ "lines": false,
+ "pointradius": 1,
+ "points": true,
+ "stack": false
+ }
+ ],
+ "spaceLength": 10,
+ "stack": true,
+ "steppedLine": true,
"targets": [
{
- "editorMode": "code",
- "exemplar": false,
- "expr": "max by (environment,cluster,rs_nm) (mongodb_mongod_db_collections_total{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\"})",
- "format": "table",
+ "datasource": "Metrics",
+ "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"
+ },
+ {
+ "datasource": "Metrics",
+ "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"
+ },
+ {
+ "datasource": "Metrics",
+ "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,
- "instant": true,
"interval": "$interval",
- "legendFormat": "__auto",
- "range": false,
+ "legendFormat": "system",
"refId": "A"
+ },
+ {
+ "datasource": "Metrics",
+ "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"
}
],
- "title": "Number of Collections",
- "transformations": [
+ "thresholds": [],
+ "timeRegions": [],
+ "title": "CPU Usage - $node_name",
+ "tooltip": {
+ "msResolution": false,
+ "shared": true,
+ "sort": 5,
+ "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
+ },
{
- "id": "organize",
- "options": {
- "excludeByName": {
- "Time": true
- },
- "indexByName": {
- "Time": 0,
- "Value": 4,
- "cluster": 2,
- "environment": 1,
- "rs_nm": 3
- },
- "renameByName": {
- "1710776522937": "",
- "Value": "Count"
- }
- }
+ "format": "short",
+ "logBase": 1,
+ "min": 0,
+ "show": false
}
],
- "type": "table"
+ "yaxis": {
+ "align": false
+ }
}
],
- "title": "Collection Details",
+ "title": "CPU Usage",
"type": "row"
},
{
@@ -2227,50 +3372,50 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 25
+ "y": 62
},
- "id": 1049,
+ "id": 1571,
"panels": [
{
- "aliasColors": {},
+ "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,
+ "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": "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": [
- {
- "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": []
},
"fill": 2,
"fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "leftMin": 0,
- "rightLogBase": 1
- },
+ "grid": {},
"gridPos": {
- "h": 7,
- "w": 12,
+ "h": 8,
+ "w": 8,
"x": 0,
- "y": 26
+ "y": 63
},
"hiddenSeries": false,
- "id": 1038,
+ "id": 339,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
+ "hideEmpty": false,
"max": true,
"min": true,
"rightSide": false,
@@ -2283,7 +3428,7 @@
"lines": true,
"linewidth": 2,
"links": [],
- "nullPointMode": "null as zero",
+ "nullPointMode": "null",
"options": {
"alertThreshold": true
},
@@ -2293,180 +3438,91 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
+ "repeat": "node_name",
+ "repeatDirection": "h",
"seriesOverrides": [
{
- "alias": "Avg",
- "color": "#C4162A",
- "fill": 0,
- "legend": false,
- "stack": false
+ "alias": "Max CPU Core Utilization",
+ "lines": false,
+ "pointradius": 1,
+ "points": true,
+ "yaxis": 2
}
],
"spaceLength": 10,
"stack": false,
- "steppedLine": false,
+ "steppedLine": true,
"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 ",
+ "calculatedInterval": "2s",
+ "datasource": "Metrics",
+ "datasourceErrors": {},
+ "errors": {},
+ "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": "{{service_name}}",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "thresholds": [
+ "legendFormat": "Normalized CPU Load",
+ "metric": "",
+ "refId": "B",
+ "step": 300,
+ "target": ""
+ },
{
- "colorMode": "critical",
- "fill": false,
- "line": true,
- "op": "gt",
- "value": 10,
- "yaxis": "left"
+ "calculatedInterval": "2s",
+ "datasource": "Metrics",
+ "datasourceErrors": {},
+ "errors": {},
+ "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": "Replication Lag",
+ "title": "CPU Saturation and Max Core Usage - $node_name",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 5,
- "value_type": "cumulative"
+ "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",
+ "format": "short",
"label": "",
"logBase": 1,
"min": 0,
"show": true
},
{
- "format": "short",
+ "format": "percentunit",
"logBase": 1,
+ "max": "1",
+ "min": 0,
"show": false
}
],
"yaxis": {
"align": false
}
- },
- {
- "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "decimals": 2,
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 26
- },
- "id": 1025,
- "links": [],
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.20",
- "targets": [
- {
- "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": "Oplog Range - {{ service_name }}",
- "metric": "",
- "range": true,
- "refId": "A",
- "step": 300
- }
- ],
- "title": "Oplog Recovery Window",
- "type": "timeseries"
}
],
- "title": "Replication",
+ "title": "CPU Saturation",
"type": "row"
},
{
@@ -2475,17 +3531,24 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 26
+ "y": 63
},
- "id": 1054,
+ "id": 1585,
"panels": [
{
- "aliasColors": {},
+ "aliasColors": {
+ "Swap In (Reads)": "#6ed0e0",
+ "Swap Out (Writes)": "#ef843c",
+ "Total": "#bf1b00"
+ },
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": "Metrics",
"decimals": 2,
- "description": "Average latency of operations (classified by read, write, or (other) command)",
+ "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": []
@@ -2494,72 +3557,133 @@
},
"fill": 2,
"fillGradient": 0,
+ "grid": {},
"gridPos": {
- "h": 7,
- "w": 12,
+ "h": 8,
+ "w": 8,
"x": 0,
- "y": 27
+ "y": 64
},
"hiddenSeries": false,
- "id": 1020,
+ "id": 341,
"legend": {
"alignAsTable": true,
"avg": true,
- "current": true,
- "max": false,
- "min": false,
+ "current": false,
+ "hideEmpty": false,
+ "max": true,
+ "min": true,
"rightSide": false,
"show": true,
- "sort": "current",
+ "sort": "avg",
"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": 2,
+ "pointradius": 5,
"points": false,
"renderer": "flot",
+ "repeat": "node_name",
+ "repeatDirection": "h",
"seriesOverrides": [
{
- "alias": "fc_count",
- "yaxis": 2
+ "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": false,
+ "steppedLine": true,
"targets": [
{
- "editorMode": "code",
- "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))",
+ "calculatedInterval": "2s",
+ "datasource": "Metrics",
+ "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",
- "legendFormat": "fc_count {{ service_name }}",
- "range": true,
- "refId": "A"
+ "intervalFactor": 1,
+ "legendFormat": "Disk Reads (Page In)",
+ "metric": "",
+ "refId": "A",
+ "step": 300,
+ "target": ""
},
{
- "editorMode": "code",
- "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))",
- "hide": false,
+ "calculatedInterval": "2s",
+ "datasource": "Metrics",
+ "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",
- "legendFormat": "fc_time {{ service_name }}",
- "range": true,
- "refId": "B"
+ "intervalFactor": 1,
+ "legendFormat": "Disk Writes (Page Out)",
+ "metric": "",
+ "refId": "B",
+ "step": 300,
+ "target": ""
+ },
+ {
+ "datasource": "Metrics",
+ "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"
+ },
+ {
+ "datasource": "Metrics",
+ "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"
+ },
+ {
+ "datasource": "Metrics",
+ "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": "Flow Control",
+ "title": "Disk I/O and Swap Activity - $node_name",
"tooltip": {
+ "msResolution": false,
"shared": true,
- "sort": 2,
+ "sort": 5,
"value_type": "individual"
},
"type": "graph",
@@ -2571,35 +3695,49 @@
"yaxes": [
{
"decimals": 2,
- "format": "µs",
+ "format": "Bps",
+ "label": "Page Out (-) / Page In (+)",
"logBase": 1,
- "min": "0",
"show": true
},
{
- "format": "short",
+ "format": "bytes",
"logBase": 1,
- "min": "0",
- "show": true
+ "min": 0,
+ "show": false
}
],
"yaxis": {
"align": false
}
- },
+ }
+ ],
+ "title": "Disk I/O and Swap Activity",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 64
+ },
+ "id": 1583,
+ "panels": [
{
"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": "Network traffic refers to the amount of data moving across a network at a given point in time.",
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {
- "links": [],
- "unit": "none"
+ "links": []
},
"overrides": []
},
@@ -2607,17 +3745,18 @@
"fillGradient": 0,
"grid": {},
"gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 27
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 65
},
"hiddenSeries": false,
- "id": 1041,
+ "id": 343,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
+ "hideEmpty": false,
"max": true,
"min": true,
"rightSide": false,
@@ -2634,54 +3773,62 @@
"options": {
"alertThreshold": true
},
- "paceLength": 10,
"percentage": false,
"pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
+ "repeat": "node_name",
+ "repeatDirection": "h",
"seriesOverrides": [
{
- "alias": "write",
+ "alias": "Outbound",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
- "steppedLine": false,
+ "steppedLine": true,
"targets": [
{
- "editorMode": "code",
- "expr": "avg by (service_name,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])))",
+ "calculatedInterval": "2s",
+ "datasource": "Metrics",
+ "datasourceErrors": {},
+ "errors": {},
+ "expr": "sum(rate(container_network_receive_bytes_total{node_name=\"$node_name\",id=~\"/kubepods/.*\"}[$interval]) or \nirate(container_network_receive_bytes_total{node_name=\"$node_name\",id=~\"/kubepods/.*\"}[5m])) or\nsum(rate(node_network_receive_bytes_total{node_name=\"$node_name\", device!=\"lo\"}[$interval])) or \nsum(irate(node_network_receive_bytes_total{node_name=\"$node_name\", device!=\"lo\"}[5m])) or \nsum(max_over_time(rdsosmetrics_network_rx{node_name=\"$node_name\"}[$interval])) or \nsum(max_over_time(rdsosmetrics_network_rx{node_name=\"$node_name\"}[5m]))",
+ "format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "read - {{ service_name }}",
+ "legendFormat": "Inbound",
"metric": "",
- "range": true,
"refId": "B",
- "step": 300
+ "step": 300,
+ "target": ""
},
- {
- "editorMode": "code",
- "expr": "avg by (service_name,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,
+ {
+ "calculatedInterval": "2s",
+ "datasource": "Metrics",
+ "datasourceErrors": {},
+ "errors": {},
+ "expr": "sum(rate(container_network_transmit_bytes_total{node_name=\"$node_name\",id=~\"/kubepods/.*\"}[$interval]) or \nirate(container_network_transmit_bytes_total{node_name=\"$node_name\",id=~\"/kubepods/.*\"}[5m])) or \nsum(rate(node_network_transmit_bytes_total{node_name=\"$node_name\", device!=\"lo\"}[$interval])) or \nsum(irate(node_network_transmit_bytes_total{node_name=\"$node_name\", device!=\"lo\"}[5m])) or\nsum(max_over_time(rdsosmetrics_network_tx{node_name=\"$node_name\"}[$interval])) or \nsum(max_over_time(rdsosmetrics_network_tx{node_name=\"$node_name\"}[5m]))",
+ "format": "time_series",
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "write - {{ service_name }}",
+ "legendFormat": "Outbound",
"metric": "",
- "range": true,
"refId": "A",
- "step": 300
+ "step": 300,
+ "target": ""
}
],
"thresholds": [],
"timeRegions": [],
- "title": "WiredTiger Concurrency Tickets Available",
+ "title": "Network Traffic - $node_name",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 5,
- "value_type": "cumulative"
+ "value_type": "individual"
},
"type": "graph",
"xaxis": {
@@ -2691,15 +3838,16 @@
},
"yaxes": [
{
- "decimals": 0,
- "format": "none",
- "label": "",
+ "decimals": 2,
+ "format": "Bps",
+ "label": "Outbound (-) / Inbound (+)",
"logBase": 1,
"show": true
},
{
- "format": "short",
+ "format": "bytes",
"logBase": 1,
+ "min": 0,
"show": false
}
],
@@ -2708,14 +3856,17 @@
}
}
],
- "title": "Performance",
+ "title": "Network Traffic",
"type": "row"
}
],
- "refresh": false,
+ "refresh": "",
"schemaVersion": 37,
"style": "dark",
- "tags": [],
+ "tags": [
+ "MongoDB_HA",
+ "Percona"
+ ],
"templating": {
"list": [
{
@@ -2786,9 +3937,10 @@
{
"allValue": ".*",
"current": {
+ "isNone": true,
"selected": false,
- "text": "dev",
- "value": "dev"
+ "text": "None",
+ "value": ""
},
"definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
"hide": 0,
@@ -2815,8 +3967,8 @@
"allValue": ".*",
"current": {
"selected": false,
- "text": "mycluster",
- "value": "mycluster"
+ "text": "",
+ "value": ""
},
"definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)",
"hide": 0,
@@ -2840,8 +3992,8 @@
{
"current": {
"selected": false,
- "text": "s1",
- "value": "s1"
+ "text": "",
+ "value": ""
},
"definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
"hide": 0,
@@ -2870,8 +4022,8 @@
"definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)",
"hide": 0,
"includeAll": true,
- "label": "Node",
- "multi": true,
+ "label": "MongoDB Node",
+ "multi": false,
"multiFormat": "glob",
"name": "service_name",
"options": [],
@@ -2889,182 +4041,6 @@
},
{
"allFormat": "glob",
- "current": {
- "selected": false,
- "text": "mongodb-t1",
- "value": "mongodb-t1"
- },
- "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
- },
- {
- "current": {
- "selected": true,
- "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": true,
- "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": true,
- "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": true,
- "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": true,
- "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": true,
"text": [
@@ -3074,70 +4050,16 @@
"$__all"
]
},
- "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",
- "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": "s1",
- "value": "s1"
- },
- "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/4b741fe5-1e3b-4f52-ac69-afebf0cd81ec",
- "value": "/service_id/4b741fe5-1e3b-4f52-ac69-afebf0cd81ec"
- },
- "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",
+ "name": "node_name",
"options": [],
"query": {
- "query": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)",
- "refId": "Metrics-service_id-Variable-Query"
+ "query": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
+ "refId": "Metrics-node_name-Variable-Query"
},
"refresh": 2,
"regex": "",
@@ -3148,38 +4070,11 @@
"useTags": false
},
{
- "allFormat": "glob",
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
+ "text": "",
"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
- },
- {
- "current": {
- "selected": false,
- "text": "mongodb-27020",
- "value": "mongodb-27020"
- },
"definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)",
"hide": 2,
"includeAll": false,
@@ -3195,48 +4090,23 @@
"skipUrlSync": false,
"sort": 0,
"type": "query"
- },
- {
- "current": {
- "selected": false,
- "text": "/",
- "value": "/"
- },
- "definition": "label_values(node_filesystem_avail_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}, mountpoint)",
- "hide": 2,
- "includeAll": false,
- "multi": false,
- "name": "mountpoint",
- "options": [],
- "query": {
- "query": "label_values(node_filesystem_avail_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}, mountpoint)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
}
]
},
"time": {
- "from": "now-15m",
+ "from": "now-12h",
"to": "now"
},
"timepicker": {
"hidden": false,
"now": true,
"refresh_intervals": [
+ "1s",
"5s",
- "10s",
- "30s",
"1m",
"5m",
- "15m",
- "30m",
"1h",
- "2h",
+ "6h",
"1d"
],
"time_options": [
@@ -3251,8 +4121,8 @@
"30d"
]
},
- "timezone": "",
- "title": "MongoDB ReplSet Summary (New)",
+ "timezone": "browser",
+ "title": "MongoDB ReplSet Summary_(New)",
"uid": "mongodb-replset-summary-new",
"version": 1,
"weekStart": ""
From 20c6a7fc838ec03f41d3dde042d5e4eee8288bd1 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara
Date: Wed, 14 Aug 2024 17:25:32 +0530
Subject: [PATCH 10/13] PMM-10198 Trigger checks
From afed246b32a576da9083e330f681a3d1ba559715 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Tue, 27 Aug 2024 16:14:30 +0530
Subject: [PATCH 11/13] PMM-13257 Cleanup dashboards (#1620) (#1623)
---
.../MongoDB_Cluster_Summary_(new).json | 54 +-
.../MongoDB_Collections_Overview.json | 1147 +++++++++--------
.../Experimental/MongoDB_Oplog_Details.json | 409 +++---
3 files changed, 869 insertions(+), 741 deletions(-)
diff --git a/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json b/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
index 8b6c354f64..ed37171916 100644
--- a/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
+++ b/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json
@@ -160,6 +160,12 @@
"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",
@@ -808,7 +814,8 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"mappings": [],
"max": 1,
@@ -1409,13 +1416,7 @@
},
{
"id": "links",
- "value": [
- {
- "targetBlank": true,
- "title": "MongoDB Instance Summary - ${__cell}",
- "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__cell}"
- }
- ]
+ "value": []
},
{
"id": "custom.align"
@@ -1464,7 +1465,7 @@
{
"matcher": {
"id": "byName",
- "options": "Service Name"
+ "options": "service_name"
},
"properties": [
{
@@ -1717,8 +1718,7 @@
"mode": "absolute",
"steps": [
{
- "color": "red",
- "value": null
+ "color": "red"
}
]
},
@@ -1892,8 +1892,7 @@
"mode": "absolute",
"steps": [
{
- "color": "red",
- "value": null
+ "color": "red"
}
]
}
@@ -2014,7 +2013,7 @@
"legend": {
"alignAsTable": true,
"avg": true,
- "current": true,
+ "current": false,
"hideEmpty": false,
"hideZero": false,
"max": true,
@@ -2234,13 +2233,30 @@
"mode": "absolute",
"steps": [
{
- "color": "red",
- "value": null
+ "color": "red"
}
]
}
},
- "overrides": []
+ "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,
@@ -2965,7 +2981,7 @@
]
},
"definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)",
- "hide": 0,
+ "hide": 2,
"includeAll": true,
"label": "Replica Set",
"multi": true,
@@ -2991,7 +3007,7 @@
"value": "$__all"
},
"definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)",
- "hide": 0,
+ "hide": 2,
"includeAll": true,
"label": "Node",
"multi": true,
diff --git a/dashboards/Experimental/MongoDB_Collections_Overview.json b/dashboards/Experimental/MongoDB_Collections_Overview.json
index 2a2f21d800..a1585b1613 100644
--- a/dashboards/Experimental/MongoDB_Collections_Overview.json
+++ b/dashboards/Experimental/MongoDB_Collections_Overview.json
@@ -41,46 +41,46 @@
"editable": false,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
+ "id": null,
"links": [
{
- "asDropdown": false,
"icon": "doc",
"includeVars": true,
"keepTime": true,
- "tags": [],
+ "tags": [
+ "Home"
+ ],
"targetBlank": false,
"title": "Home",
- "tooltip": "",
"type": "link",
"url": "/graph/d/pmm-home/home-dashboard"
},
{
- "asDropdown": false,
"icon": "dashboard",
"includeVars": true,
"keepTime": true,
- "tags": [],
+ "tags": [
+ "Query Analytics"
+ ],
"targetBlank": false,
"title": "Query Analytics",
- "tooltip": "",
"type": "link",
"url": "/graph/d/pmm-qan/pmm-query-analytics"
},
{
- "asDropdown": false,
"icon": "bolt",
"includeVars": true,
"keepTime": true,
- "tags": [],
+ "tags": [
+ "Compare"
+ ],
"targetBlank": false,
"title": "Compare",
- "tooltip": "",
"type": "link",
"url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare"
},
{
"asDropdown": true,
- "icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
@@ -88,13 +88,10 @@
],
"targetBlank": false,
"title": "MongoDB",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
+ "type": "dashboards"
},
{
"asDropdown": true,
- "icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
@@ -102,13 +99,10 @@
],
"targetBlank": false,
"title": "HA",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
+ "type": "dashboards"
},
{
"asDropdown": true,
- "icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
@@ -116,21 +110,18 @@
],
"targetBlank": false,
"title": "Services",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
+ "type": "dashboards"
},
{
"asDropdown": true,
- "icon": "external link",
"includeVars": false,
"keepTime": true,
- "tags": [],
+ "tags": [
+ "PMM"
+ ],
"targetBlank": false,
"title": "PMM",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
+ "type": "dashboards"
}
],
"liveNow": false,
@@ -145,68 +136,25 @@
},
"id": 29,
"panels": [],
- "targets": [
- {
- "refId": "A"
- }
- ],
"title": "Datasize",
"type": "row"
},
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
"description": "Provides the names and sizes of the 5 largest databases in an instance/cluster. Data showing only from Primary node in replica set.",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "decmbytes"
- },
- "overrides": []
+ "editable": true,
+ "error": false,
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
"gridPos": {
"h": 8,
@@ -214,21 +162,38 @@
"x": 0,
"y": 1
},
+ "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": {
- "legend": {
- "calcs": [
- "last"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "alertThreshold": true
},
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"exemplar": true,
@@ -238,16 +203,53 @@
"refId": "A"
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Top 5 Databases By Size",
- "type": "timeseries"
+ "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": "decmbytes",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
- "datasource": "Metrics",
"description": "Provides the number of collections in the selected databases",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"mappings": [],
"thresholds": {
@@ -291,10 +293,12 @@
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "count(mongodb_top_commands_time{database=~\"$database\"})",
+ "expr": "count(mongodb_top_commands_time{database=~\"$database\",service_name=~\"$service_name\"})",
"interval": "$interval",
"legendFormat": "",
+ "range": true,
"refId": "A"
}
],
@@ -302,12 +306,12 @@
"type": "stat"
},
{
- "datasource": "Metrics",
"description": "Provides the number of indexes in the selected databases",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"mappings": [],
"thresholds": {
@@ -351,10 +355,12 @@
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum(mongodb_dbstats_indexes{database=~\"$database\"})",
+ "expr": "sum(mongodb_dbstats_indexes{database=~\"$database\",service_name=~\"$service_name\"})",
"interval": "$interval",
"legendFormat": "",
+ "range": true,
"refId": "A"
}
],
@@ -362,286 +368,328 @@
"type": "stat"
},
{
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
"description": "Average size of each document in bytes. dataSize divided by number of documents",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
+ "editable": true,
+ "error": false,
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
"gridPos": {
- "h": 9,
- "w": 12,
+ "h": 8,
+ "w": 24,
"x": 0,
"y": 12
},
+ "hiddenSeries": false,
"id": 37,
+ "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": {
- "legend": {
- "calcs": [
- "mean",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "alertThreshold": true
},
- "pluginVersion": "8.3.5",
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum(mongodb_dbstats_avgObjSize{database=~\"$database\"})",
+ "expr": "sum(mongodb_dbstats_avgObjSize{ service_name=~\"$service_name\", database=~\"$database\"})",
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "$database",
+ "legendFormat": "{{database}}",
+ "range": true,
"refId": "A",
"step": 300
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Avg Object Size in Database ($database)",
- "type": "timeseries"
+ "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": "decmbytes",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
"description": "Total size of all indexes in a given database",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
+ "editable": true,
+ "error": false,
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
"gridPos": {
- "h": 9,
- "w": 12,
- "x": 12,
- "y": 12
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 20
},
+ "hiddenSeries": false,
"id": 39,
+ "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": {
- "legend": {
- "calcs": [
- "mean",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "alertThreshold": true
},
- "pluginVersion": "8.3.5",
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum(mongodb_dbstats_indexSize{database=~\"$database\"})",
+ "expr": "sum(mongodb_dbstats_indexSize{database=~\"$database\", service_name=~\"$service_name\"})",
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "$database",
+ "legendFormat": "{{database}}",
+ "range": true,
"refId": "A",
"step": 300
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Index Size in Database ($database)",
- "type": "timeseries"
+ "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": "decmbytes",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
"description": "Total size of uncompressed data in a database in bytes. May be larger than storageSize due to WT compression. ",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 2,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
+ "editable": true,
+ "error": false,
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
"gridPos": {
- "h": 7,
+ "h": 8,
"w": 24,
"x": 0,
- "y": 21
+ "y": 28
},
+ "hiddenSeries": false,
"id": 41,
+ "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": {
- "legend": {
- "calcs": [
- "mean",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "alertThreshold": true
},
- "pluginVersion": "8.3.5",
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "repeatDirection": "h",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum(mongodb_dbstats_dataSize{database=~\"$database\"})",
+ "expr": "sum(mongodb_dbstats_dataSize{database=~\"$database\",service_name=~\"$service_name\"})",
"interval": "$interval",
"intervalFactor": 1,
- "legendFormat": "$database",
+ "legendFormat": "{{database}}",
+ "range": true,
"refId": "A",
"step": 300
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Data Size for Database ($database)",
- "type": "timeseries"
+ "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": "decmbytes",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
"collapsed": false,
@@ -650,7 +698,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 28
+ "y": 36
},
"id": 16,
"panels": [],
@@ -681,8 +729,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
@@ -721,7 +768,7 @@
"h": 7,
"w": 12,
"x": 0,
- "y": 29
+ "y": 37
},
"id": 3,
"links": [],
@@ -741,7 +788,7 @@
"datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
- "expr": "topk (5,sum by (database, collection) (mongodb_top_queries_count{database =~ \"$database\"}))",
+ "expr": "topk (5,sum by (database, collection) (mongodb_top_queries_count{database =~ \"$database\",service_name=~\"$service_name\"}))",
"format": "table",
"hide": false,
"instant": true,
@@ -806,8 +853,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
@@ -857,7 +903,7 @@
"h": 7,
"w": 12,
"x": 12,
- "y": 29
+ "y": 37
},
"id": 19,
"links": [],
@@ -884,7 +930,7 @@
"datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
- "expr": "topk(5,sum by (database,collection) (mongodb_top_insert_count{database =~ \"$database\"})+sum by (database,collection) (mongodb_top_insert_count{database =~ \"$database\"})+sum by (database,collection) (mongodb_top_remove_count{database =~ \"$database\"})+sum by (database,collection) (mongodb_top_update_count{database =~ \"$database\"}))",
+ "expr": "topk(5,sum by (database,collection) (mongodb_top_insert_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (database,collection) (mongodb_top_insert_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (database,collection) (mongodb_top_remove_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (database,collection) (mongodb_top_update_count{database =~ \"$database\",service_name=~\"$service_name\"}))",
"format": "table",
"hide": false,
"instant": true,
@@ -935,15 +981,15 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
}
]
}
@@ -954,7 +1000,7 @@
"h": 7,
"w": 12,
"x": 0,
- "y": 36
+ "y": 44
},
"id": 24,
"links": [],
@@ -980,7 +1026,7 @@
"datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
- "expr": "topk (5, rate(sum by (environment, cluster, database, collection) (mongodb_top_queries_count{database =~ \"$database\"})[$interval]))",
+ "expr": "topk (5, rate(sum by (environment, cluster, database, collection) (mongodb_top_queries_count{database =~ \"$database\",service_name=~\"$service_name\"})[$interval]))",
"format": "time_series",
"hide": false,
"instant": true,
@@ -1000,15 +1046,15 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "fixedColor": "blue",
+ "mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
}
]
}
@@ -1019,7 +1065,7 @@
"h": 7,
"w": 12,
"x": 12,
- "y": 36
+ "y": 44
},
"id": 20,
"links": [],
@@ -1045,7 +1091,7 @@
"datasource": "Metrics",
"editorMode": "code",
"exemplar": false,
- "expr": "topk (5, rate(sum by (environment, cluster, database, collection) (mongodb_top_insert_count{database =~ \"$database\"})+sum by (environment, cluster, database, collection) (mongodb_top_insert_count{database =~ \"$database\"})+sum by (environment, cluster, database, collection) (mongodb_top_remove_count{database =~ \"$database\"})+sum by (environment, cluster, database, collection) (mongodb_top_update_count{database =~ \"$database\"})))",
+ "expr": "topk (5, rate(sum by (environment, cluster, database, collection) (mongodb_top_insert_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (environment, cluster, database, collection) (mongodb_top_insert_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (environment, cluster, database, collection) (mongodb_top_remove_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (environment, cluster, database, collection) (mongodb_top_update_count{database =~ \"$database\",service_name=~\"$service_name\"})))",
"format": "time_series",
"hide": false,
"instant": true,
@@ -1067,7 +1113,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 43
+ "y": 51
},
"id": 12,
"panels": [],
@@ -1081,287 +1127,328 @@
"type": "row"
},
{
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
"description": "Provides information on the rate of activity against the database then breaks down into activity type over the selected time period",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
+ "editable": true,
+ "error": false,
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
- "y": 44
+ "y": 52
},
+ "hiddenSeries": false,
"id": 8,
+ "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": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "alertThreshold": true
},
- "pluginVersion": "8.3.5",
- "repeat": "Database",
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
"repeatDirection": "v",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "rate(sum by (database) (mongodb_top_commands_count {database=~\"$database\"}[$interval]))",
+ "expr": "rate(sum by (database) (mongodb_top_commands_count{database=~\"$database\",service_name=~\"$service_name\"}[$interval]))",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 2,
- "legendFormat": "Commands",
+ "legendFormat": "Commands - {{database}}",
"refId": "A",
"step": 10
},
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "rate(sum by (database) (mongodb_top_insert_count {database=~\"$database\"}[$interval]))",
+ "expr": "rate(sum by (database) (mongodb_top_insert_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval]))",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 2,
- "legendFormat": "Insert",
+ "legendFormat": "Insert - {{database}}",
"refId": "B",
"step": 10
},
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "rate(sum by (database) (mongodb_top_update_count {database=~\"$database\"}[$interval]))",
+ "expr": "rate(sum by (database) (mongodb_top_update_count {database=~\"$database\", service_name=~\"$service_name\"}[$interval]))",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
- "legendFormat": "Update",
+ "legendFormat": "Update - {{database}}",
"refId": "C"
},
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "rate(sum by (database) (mongodb_top_remove_count {database=~\"$database\"}[$interval]))",
+ "expr": "rate(sum by (database) (mongodb_top_remove_count {database=~\"$database\", service_name=~\"$service_name\"}[$interval]))",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
- "legendFormat": "Remove",
+ "legendFormat": "Remove - {{database}}",
"refId": "D"
},
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "rate(sum by (database) (mongodb_top_getmore_count {database=~\"$database\"}[$interval]))",
+ "expr": "rate(sum by (database) (mongodb_top_getmore_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval]))",
"hide": false,
"interval": "",
- "legendFormat": "Getmore",
+ "legendFormat": "Getmore - {{database}}",
+ "range": true,
"refId": "E"
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Collections statistics for $database (rate)",
- "transformations": [],
- "type": "timeseries"
+ "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": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
"description": "Provides summary information on the activity running against the database then breaks down into activity type over the selected time period",
+ "editable": true,
+ "error": false,
"fieldConfig": {
"defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
"unit": "short"
},
"overrides": []
},
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
- "y": 52
+ "y": 60
},
+ "hiddenSeries": false,
"id": 25,
+ "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": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "alertThreshold": true
},
- "pluginVersion": "8.3.5",
+ "paceLength": 10,
+ "percentage": false,
+ "pluginVersion": "9.2.20",
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
"repeatDirection": "v",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum by (database) (mongodb_top_commands_count {database=~\"$database\"}[$interval])",
+ "expr": "sum by (database) (mongodb_top_commands_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 2,
- "legendFormat": "Commands",
+ "legendFormat": "Commands - {{database}}",
"refId": "A",
"step": 10
},
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum by (database) (mongodb_top_insert_count {database=~\"$database\"}[$interval])",
+ "expr": "sum by (database) (mongodb_top_insert_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 2,
- "legendFormat": "Insert",
+ "legendFormat": "Insert - {{database}}",
"refId": "B",
"step": 10
},
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum by (database) (mongodb_top_update_count {database=~\"$database\"}[$interval])",
+ "expr": "sum by (database) (mongodb_top_update_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
- "legendFormat": "Update",
+ "legendFormat": "Update - {{database}}",
"refId": "C"
},
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum by (database) (mongodb_top_remove_count {database=~\"$database\"}[$interval])",
+ "expr": "sum by (database) (mongodb_top_remove_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
- "legendFormat": "Remove",
+ "legendFormat": "Remove - {{database}}",
"refId": "D"
},
{
"datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
- "expr": "sum by (database) (mongodb_top_getmore_count {database=~\"$database\"}[$interval])",
+ "expr": "sum by (database) (mongodb_top_getmore_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])",
"hide": false,
"interval": "",
- "legendFormat": "Getmore",
+ "legendFormat": "Getmore - {{database}}",
+ "range": true,
"refId": "E"
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Collections statistics for $database (summary)",
- "transformations": [],
- "type": "timeseries"
+ "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": "short",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
"datasource": "Metrics",
@@ -1382,8 +1469,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
}
]
},
@@ -1474,7 +1560,7 @@
"h": 7,
"w": 24,
"x": 0,
- "y": 60
+ "y": 68
},
"id": 27,
"options": {
@@ -1650,9 +1736,13 @@
{
"allValue": ".*",
"current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
"definition": "label_values({__name__=~\"mongodb_up\"}, environment)",
"hide": 0,
@@ -1674,9 +1764,13 @@
{
"allValue": ".*",
"current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
"definition": "label_values(mongodb_up{environment=~\"$environment\"},cluster)",
"hide": 0,
@@ -1721,19 +1815,23 @@
},
{
"current": {
- "selected": false,
- "text": "",
- "value": ""
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
- "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)",
+ "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
"hide": 0,
- "includeAll": false,
- "label": "Service Name",
+ "includeAll": true,
+ "label": "Replication Set",
"multi": true,
- "name": "service_name",
+ "name": "replication_set",
"options": [],
"query": {
- "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)",
+ "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
@@ -1744,19 +1842,23 @@
},
{
"current": {
- "selected": false,
- "text": "",
- "value": ""
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
},
- "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
+ "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\",replication_set=~\"$replication_set\"}, service_name)",
"hide": 0,
- "includeAll": false,
- "label": "Replication Set",
+ "includeAll": true,
+ "label": "MongoDB Node",
"multi": true,
- "name": "replication_set",
+ "name": "service_name",
"options": [],
"query": {
- "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
+ "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\",replication_set=~\"$replication_set\"}, service_name)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
@@ -1769,13 +1871,13 @@
"current": {
"selected": true,
"text": [
- "admin"
+ "All"
],
"value": [
- "admin"
+ "$__all"
]
},
- "definition": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\"}, database)",
+ "definition": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\",service_name=~\"$service_name\"}, database)",
"hide": 0,
"includeAll": true,
"label": "Database",
@@ -1783,7 +1885,7 @@
"name": "database",
"options": [],
"query": {
- "query": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\"}, database)",
+ "query": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\",service_name=~\"$service_name\"}, database)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
@@ -1798,8 +1900,8 @@
{
"current": {
"selected": false,
- "text": "$cmd.aggregate",
- "value": "$cmd.aggregate"
+ "text": "",
+ "value": ""
},
"definition": "label_values(mongodb_top_commands_count{database=~\"$database\"}, collection)",
"hide": 2,
@@ -1833,15 +1935,12 @@
"notice": false,
"now": true,
"refresh_intervals": [
+ "1s",
"5s",
- "10s",
- "30s",
"1m",
"5m",
- "15m",
- "30m",
"1h",
- "2h",
+ "6h",
"1d"
],
"status": "Stable",
@@ -1858,7 +1957,7 @@
],
"type": "timepicker"
},
- "timezone": "",
+ "timezone": "browser",
"title": "MongoDB Collections Overview",
"uid": "mongodb-collections-overview",
"version": 1,
diff --git a/dashboards/Experimental/MongoDB_Oplog_Details.json b/dashboards/Experimental/MongoDB_Oplog_Details.json
index 146196bfc9..f15cdd7ecb 100644
--- a/dashboards/Experimental/MongoDB_Oplog_Details.json
+++ b/dashboards/Experimental/MongoDB_Oplog_Details.json
@@ -142,7 +142,7 @@
"panels": [
{
"collapsed": false,
- "datasource": "Metrics",
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
@@ -165,7 +165,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
+ "datasource": "Metrics",
"decimals": 2,
"description": "This panel provides details about your recovery window over a time interval based on your oplog activities. It coordinates with replication and backup activities.",
"editable": true,
@@ -218,7 +218,7 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -281,7 +281,6 @@
],
"yaxes": [
{
- "$$hashKey": "object:1859",
"decimals": 2,
"format": "s",
"label": "",
@@ -290,7 +289,6 @@
"show": true
},
{
- "$$hashKey": "object:1860",
"format": "s",
"logBase": 1,
"show": true
@@ -302,12 +300,12 @@
},
{
"collapsed": false,
- "datasource": "Metrics",
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 73
+ "y": 41
},
"id": 1070,
"panels": [],
@@ -325,7 +323,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
+ "datasource": "Metrics",
"decimals": 2,
"description": "Repl buffer ops applied per sec.",
"editable": true,
@@ -353,7 +351,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 74
+ "y": 42
},
"hiddenSeries": false,
"id": 85,
@@ -379,7 +377,7 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -421,7 +419,6 @@
],
"yaxes": [
{
- "$$hashKey": "object:1943",
"decimals": 2,
"format": "ops",
"label": "",
@@ -430,7 +427,6 @@
"show": true
},
{
- "$$hashKey": "object:1944",
"format": "short",
"logBase": 1,
"show": false
@@ -445,7 +441,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
+ "datasource": "Metrics",
"decimals": 2,
"description": "Provides information related to the number of getmore commands erlated to the local db oplog.rs collection",
"editable": true,
@@ -473,7 +469,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 74
+ "y": 42
},
"hiddenSeries": false,
"id": 79,
@@ -499,7 +495,7 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -541,7 +537,6 @@
],
"yaxes": [
{
- "$$hashKey": "object:140",
"decimals": 2,
"format": "ms",
"label": "",
@@ -550,7 +545,6 @@
"show": true
},
{
- "$$hashKey": "object:141",
"format": "short",
"logBase": 1,
"show": false
@@ -565,7 +559,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
+ "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,
@@ -593,7 +587,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 82
+ "y": 50
},
"hiddenSeries": false,
"id": 84,
@@ -618,7 +612,7 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -682,7 +676,6 @@
],
"yaxes": [
{
- "$$hashKey": "object:216",
"decimals": 2,
"format": "ms",
"label": "",
@@ -691,7 +684,6 @@
"show": true
},
{
- "$$hashKey": "object:217",
"format": "short",
"logBase": 1,
"show": false
@@ -706,7 +698,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
+ "datasource": "Metrics",
"decimals": 2,
"description": "Provides info on the current usage and actual size of the replication buffer as defined by the maximum oplog size",
"editable": true,
@@ -734,7 +726,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 154
+ "y": 90
},
"hiddenSeries": false,
"id": 80,
@@ -759,7 +751,7 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -818,7 +810,6 @@
],
"yaxes": [
{
- "$$hashKey": "object:288",
"decimals": 2,
"format": "bytes",
"label": "",
@@ -827,7 +818,6 @@
"show": true
},
{
- "$$hashKey": "object:289",
"format": "short",
"logBase": 1,
"show": false
@@ -842,7 +832,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
- "datasource": "Metrics",
+ "datasource": "Metrics",
"decimals": 2,
"description": "Provides information on the number of write operations recorded in the oplog collection over a period of time",
"editable": true,
@@ -870,7 +860,7 @@
"h": 8,
"w": 24,
"x": 0,
- "y": 226
+ "y": 130
},
"hiddenSeries": false,
"id": 81,
@@ -895,7 +885,7 @@
},
"paceLength": 10,
"percentage": false,
- "pluginVersion": "9.1.2",
+ "pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
@@ -959,7 +949,6 @@
],
"yaxes": [
{
- "$$hashKey": "object:364",
"decimals": 2,
"format": "ops",
"label": "",
@@ -968,7 +957,6 @@
"show": true
},
{
- "$$hashKey": "object:365",
"format": "short",
"logBase": 1,
"show": false
@@ -980,12 +968,12 @@
},
{
"collapsed": false,
- "datasource": "Metrics",
+ "datasource": "Metrics",
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 298
+ "y": 170
},
"id": 1551,
"panels": [],
@@ -999,166 +987,174 @@
"type": "row"
},
{
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "decimals": 2,
"description": "The average amount of data in GB that the PRIMARY generate per hour",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": []
+ "editable": true,
+ "error": false,
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
},
"gridPos": {
- "h": 10,
+ "h": 8,
"w": 24,
"x": 0,
- "y": 299
+ "y": 171
},
+ "hiddenSeries": false,
"id": 1549,
+ "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": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "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",
+ "editorMode": "code",
"exemplar": true,
- "expr": "avg by (service_name) (rate(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{rs_state=\"1\"})[$interval])",
+ "expr": "avg by (service_name) (rate(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{rs_state=\"1\",service_name=~\"$service_name\"})[$interval])",
"interval": "$interval",
"legendFormat": "{{service_name}}",
+ "range": true,
"refId": "A"
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Oplog GB/Hour",
- "type": "timeseries"
+ "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
+ }
},
{
- "datasource": "Metrics",
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "Metrics",
+ "decimals": 2,
"description": "Provides information about the contents of your oplog. The difference between the first and latest entries provides info data regarding which operations can possibly be repeated if necessary. ",
+ "editable": true,
+ "error": false,
"fieldConfig": {
"defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "hour"
+ "unit": "h"
},
"overrides": []
},
+ "fill": 2,
+ "fillGradient": 0,
+ "grid": {
+ "leftLogBase": 1,
+ "leftMin": 0,
+ "rightLogBase": 1
+ },
"gridPos": {
- "h": 11,
+ "h": 8,
"w": 24,
"x": 0,
- "y": 309
+ "y": 211
},
+ "hiddenSeries": false,
"id": 1553,
+ "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": {
- "legend": {
- "calcs": [
- "lastNotNull"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "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",
@@ -1169,8 +1165,45 @@
"refId": "A"
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Oplog Window",
- "type": "timeseries"
+ "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": "h",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
}
],
"refresh": "",
@@ -1254,7 +1287,6 @@
"text": "All",
"value": "$__all"
},
- "datasource": "Metrics",
"definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
"hide": 0,
"includeAll": true,
@@ -1283,7 +1315,6 @@
"text": "",
"value": ""
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_up{environment=~\"$environment\"},cluster)",
"hide": 0,
"includeAll": false,
@@ -1306,15 +1337,13 @@
{
"allFormat": "glob",
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
- "value": ""
+ "text": "All",
+ "value": "$__all"
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
"hide": 0,
- "includeAll": false,
+ "includeAll": true,
"label": "Replica Set",
"multi": true,
"multiFormat": "glob",
@@ -1338,9 +1367,8 @@
"text": "",
"value": ""
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\"}, node_name)",
- "hide": 0,
+ "hide": 2,
"includeAll": false,
"label": "Node Name",
"multi": true,
@@ -1366,17 +1394,16 @@
"text": "",
"value": ""
},
- "datasource": "Metrics",
- "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)",
+ "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\",replication_set=~\"$replset\"}, service_name)",
"hide": 0,
"includeAll": false,
- "label": "Service Name",
- "multi": true,
+ "label": "MongoDB Node",
+ "multi": false,
"multiFormat": "glob",
"name": "service_name",
"options": [],
"query": {
- "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)",
+ "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\",replication_set=~\"$replset\"}, service_name)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
@@ -1389,15 +1416,13 @@
},
{
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
- "value": ""
+ "text": "All",
+ "value": "$__all"
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
"hide": 2,
- "includeAll": false,
+ "includeAll": true,
"label": "Replication Set",
"multi": true,
"name": "replication_set",
@@ -1417,12 +1442,10 @@
},
{
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
+ "text": "",
"value": ""
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\"}, database)",
"hide": 2,
"includeAll": false,
@@ -1449,7 +1472,6 @@
"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,
@@ -1476,7 +1498,6 @@
"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,
@@ -1503,7 +1524,6 @@
"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,
@@ -1530,7 +1550,6 @@
"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,
@@ -1555,12 +1574,10 @@
"allFormat": "blob",
"allValue": ".*",
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
+ "text": "",
"value": ""
},
- "datasource": "Metrics",
"definition": "label_values(mongodb_mongod_replset_my_state{set=~\"$replset\"},cluster)",
"hide": 2,
"includeAll": false,
@@ -1571,7 +1588,7 @@
"options": [],
"query": {
"query": "label_values(mongodb_mongod_replset_my_state{set=~\"$replset\"},cluster)",
- "refId": "Metrics-current_cluster-Variable-Query"
+ "refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
@@ -1586,7 +1603,6 @@
"text": "All",
"value": "$__all"
},
- "datasource": "Metrics",
"definition": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)",
"hide": 2,
"includeAll": true,
@@ -1620,15 +1636,12 @@
"notice": false,
"now": true,
"refresh_intervals": [
+ "1s",
"5s",
- "10s",
- "30s",
"1m",
"5m",
- "15m",
- "30m",
"1h",
- "2h",
+ "6h",
"1d"
],
"status": "Stable",
@@ -1645,7 +1658,7 @@
],
"type": "timepicker"
},
- "timezone": "",
+ "timezone": "browser",
"title": "MongoDB Oplog Details",
"uid": "mongodb-oplog-details",
"version": 1,
From 943ce458f5dd6c90d3089733371f800cdff0ca3d Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Mon, 2 Sep 2024 17:04:04 +0530
Subject: [PATCH 12/13] PMM-13258 Rename and move dashboards (#1622) (#1625)
* 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}` : '';
From d03ae126a35a074542164fdd6da06a68bc9dcdf0 Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Wed, 4 Sep 2024 16:41:28 +0530
Subject: [PATCH 13/13] PMM-13327 - New MongoDB Router Summary dashboard
(#1626) (#1630)
* New Router Summary dashboard - v1
* name
* datasource cleanup
* $$hashKey cleanup
* warning message
* fix name in the chart
* yash fixes and improvements
* adds experimental tag
Co-authored-by: Santo <31849787+sleto-it@users.noreply.github.com>
---
.../MongoDB/MongoDB_Router_Summary.json | 1732 +++++++++++++++++
1 file changed, 1732 insertions(+)
create mode 100644 dashboards/MongoDB/MongoDB_Router_Summary.json
diff --git a/dashboards/MongoDB/MongoDB_Router_Summary.json b/dashboards/MongoDB/MongoDB_Router_Summary.json
new file mode 100644
index 0000000000..263579fb9d
--- /dev/null
+++ b/dashboards/MongoDB/MongoDB_Router_Summary.json
@@ -0,0 +1,1732 @@
+{
+ "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"
+ }
+ ]
+ },
+ "description": "",
+ "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"
+ },
+ {
+ "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"
+ },
+ {
+ "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"
+ }
+ ],
+ "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": "#### \ud83d\udece\ufe0f Important\n\nThis Dashboard is an experimental MongoDB Router 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.\ud83d\ude4f",
+ "mode": "markdown"
+ },
+ "pluginVersion": "9.2.20",
+ "transparent": true,
+ "type": "text"
+ }
+ ],
+ "title": "\u26a0\ufe0f Disclaimer",
+ "type": "row"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 1
+ },
+ "id": 1030,
+ "panels": [],
+ "repeat": "node_name",
+ "repeatDirection": "h",
+ "title": "Overview - $node_name",
+ "type": "row"
+ },
+ {
+ "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": {
+ "mode": "thresholds"
+ },
+ "links": [],
+ "mappings": [],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "percent"
+ },
+ "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": 4,
+ "w": 3,
+ "x": 0,
+ "y": 2
+ },
+ "id": 1071,
+ "links": [],
+ "options": {
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
+ },
+ "pluginVersion": "9.2.20",
+ "targets": [
+ {
+ "editorMode": "code",
+ "expr": "100 - (avg by (node_name) (rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"idle\"}[1m])) * 100)",
+ "format": "time_series",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "{{ mode }}",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "title": "CPU Usage",
+ "type": "gauge"
+ },
+ {
+ "description": "Estimated how much memory can be used without swapping",
+ "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": []
+ },
+ "gridPos": {
+ "h": 4,
+ "w": 3,
+ "x": 3,
+ "y": 2
+ },
+ "id": 1060,
+ "links": [],
+ "options": {
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
+ },
+ "pluginVersion": "9.2.20",
+ "targets": [
+ {
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "1 - avg(node_memory_MemAvailable_bytes{node_name=~\"$node_name\"})/ avg(node_memory_MemTotal_bytes{node_name=~\"$node_name\"})",
+ "hide": false,
+ "instant": false,
+ "legendFormat": "__auto",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "Memory Used",
+ "type": "gauge"
+ },
+ {
+ "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": {
+ "mode": "thresholds"
+ },
+ "decimals": 1,
+ "links": [],
+ "mappings": [],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "percentunit"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 4,
+ "w": 3,
+ "x": 6,
+ "y": 2
+ },
+ "id": 1073,
+ "links": [],
+ "options": {
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
+ },
+ "pluginVersion": "9.2.20",
+ "targets": [
+ {
+ "editorMode": "code",
+ "expr": "sum by (node_name) (rate(node_disk_io_time_seconds_total{node_name=~\"$node_name\"}[$interval]) or irate(node_disk_io_time_seconds_total{node_name=~\"$node_name\"}[5m]))",
+ "interval": "$interval",
+ "legendFormat": "{{ node_name }}",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "title": "Disk IO Utilization",
+ "type": "gauge"
+ },
+ {
+ "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 \u201cdisk full\u201d 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": []
+ },
+ "gridPos": {
+ "h": 4,
+ "w": 3,
+ "x": 9,
+ "y": 2
+ },
+ "id": 1062,
+ "options": {
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
+ },
+ "pluginVersion": "9.2.20",
+ "repeatDirection": "h",
+ "targets": [
+ {
+ "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"
+ },
+ {
+ "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": 2
+ },
+ "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": [
+ {
+ "calculatedInterval": "2m",
+ "datasourceErrors": {},
+ "editorMode": "code",
+ "errors": {},
+ "expr": "avg by (node_name) (sum(\n(rate(node_disk_reads_completed_total{node_name=~\"$node_name\"}[$interval]) or \nirate(node_disk_reads_completed_total{node_name=~\"$node_name\"}[5m]))\n))",
+ "format": "time_series",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Read",
+ "metric": "",
+ "range": true,
+ "refId": "A",
+ "step": 300,
+ "target": ""
+ },
+ {
+ "calculatedInterval": "2m",
+ "datasourceErrors": {},
+ "editorMode": "code",
+ "errors": {},
+ "expr": "avg by (node_name) (sum(\n(rate(node_disk_writes_completed_total{node_name=~\"$node_name\"}[$interval]) or \nirate(node_disk_writes_completed_total{node_name=~\"$node_name\"}[5m])) \n))",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Write",
+ "metric": "",
+ "range": true,
+ "refId": "B",
+ "step": 300,
+ "target": ""
+ }
+ ],
+ "title": "Disk IOPS",
+ "type": "stat"
+ },
+ {
+ "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": "fixed"
+ },
+ "decimals": 0,
+ "links": [
+ {
+ "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
+ }
+ ]
+ },
+ "unit": "Bps"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 4,
+ "w": 4,
+ "x": 16,
+ "y": 2
+ },
+ "id": 1052,
+ "links": [],
+ "options": {
+ "colorMode": "value",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "9.2.20",
+ "targets": [
+ {
+ "calculatedInterval": "2s",
+ "datasourceErrors": {},
+ "errors": {},
+ "expr": "sum by (node_name) (rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or sum by (node_name) (irate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or sum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or sum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[5m])) ",
+ "format": "time_series",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Inbound",
+ "metric": "",
+ "refId": "B",
+ "step": 300,
+ "target": ""
+ },
+ {
+ "calculatedInterval": "2s",
+ "datasourceErrors": {},
+ "errors": {},
+ "expr": "sum by (node_name) (rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or sum by (node_name) (irate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or\nsum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[$interval])) or sum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[5m]))",
+ "format": "time_series",
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": "Outbound",
+ "metric": "",
+ "refId": "A",
+ "step": 300,
+ "target": ""
+ }
+ ],
+ "title": "Network Traffic",
+ "type": "stat"
+ },
+ {
+ "description": "The parameter shows how long a system has been \u201cup\u201d 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": 4,
+ "w": 2,
+ "x": 20,
+ "y": 2
+ },
+ "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": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ }
+ ]
+ },
+ "unit": "string"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 4,
+ "w": 2,
+ "x": 22,
+ "y": 2
+ },
+ "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": [
+ {
+ "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": 11
+ },
+ "id": 1172,
+ "panels": [],
+ "title": "Node States",
+ "type": "row"
+ },
+ {
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "fillOpacity": 100,
+ "lineWidth": 0,
+ "spanNulls": false
+ },
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "#F2495C",
+ "index": 1,
+ "text": "DOWN"
+ },
+ "1": {
+ "color": "rgb(107, 152, 102)",
+ "index": 2,
+ "text": "UP"
+ }
+ },
+ "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": 6,
+ "w": 24,
+ "x": 0,
+ "y": 12
+ },
+ "id": 1174,
+ "options": {
+ "alignValue": "center",
+ "legend": {
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "mergeValues": true,
+ "rowHeight": 0.9,
+ "showValue": "auto",
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "editorMode": "code",
+ "expr": "max by (service_name) (mongodb_up{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"})",
+ "interval": "$interval",
+ "legendFormat": "{{service_name}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "$service_name states",
+ "type": "state-timeline"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 18
+ },
+ "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": 7,
+ "w": 12,
+ "x": 0,
+ "y": 19
+ },
+ "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 (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}} - {{ service_name }}",
+ "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 - {{ service_name }}",
+ "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}} - {{ service_name }}",
+ "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
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "description": "MongoDB Connections",
+ "fieldConfig": {
+ "defaults": {
+ "links": [],
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "fill": 1,
+ "fillGradient": 0,
+ "gridPos": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 19
+ },
+ "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": "mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"current\"}",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": " Current - {{ service_name}}",
+ "range": true,
+ "refId": "J",
+ "step": 300
+ },
+ {
+ "editorMode": "code",
+ "expr": "mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"available\"}",
+ "format": "time_series",
+ "hide": false,
+ "interval": "$interval",
+ "intervalFactor": 1,
+ "legendFormat": " Available - {{ service_name}}",
+ "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
+ }
+ ],
+ "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": 8,
+ "w": 12,
+ "x": 0,
+ "y": 26
+ },
+ "hiddenSeries": false,
+ "id": 1064,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": false,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "sort": "avg",
+ "sortDesc": false,
+ "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}} - {{ service_name }}",
+ "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
+ }
+ },
+ {
+ "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": 8,
+ "w": 12,
+ "x": 12,
+ "y": 26
+ },
+ "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 (service_name)(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 (service_name)(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 - {{ service_name }}",
+ "range": true,
+ "refId": "J",
+ "step": 300
+ },
+ {
+ "editorMode": "code",
+ "expr": "(sum by (service_name)(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 (service_name)(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 - {{ service_name }}",
+ "range": true,
+ "refId": "A",
+ "step": 300
+ },
+ {
+ "editorMode": "code",
+ "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))",
+ "hide": false,
+ "legendFormat": "{{type}} - {{ service_name}}",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "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": [
+ {
+ "decimals": 2,
+ "format": "",
+ "label": "",
+ "logBase": 1,
+ "min": 0,
+ "show": true
+ },
+ {
+ "format": "",
+ "logBase": 1,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
+ }
+ ],
+ "refresh": false,
+ "schemaVersion": 37,
+ "style": "dark",
+ "tags": [
+ "Experimental",
+ "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"
+ },
+ {
+ "allValue": ".*",
+ "current": {
+ "isNone": true,
+ "selected": false,
+ "text": "",
+ "value": ""
+ },
+ "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "Environment",
+ "multi": false,
+ "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": "blob",
+ "allValue": ".*",
+ "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": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
+ },
+ "definition": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
+ "hide": 2,
+ "includeAll": true,
+ "label": "",
+ "multi": true,
+ "name": "node_name",
+ "options": [],
+ "query": {
+ "query": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 1,
+ "type": "query"
+ },
+ {
+ "allFormat": "glob",
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
+ "definition": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}, service_name)",
+ "hide": 0,
+ "includeAll": true,
+ "label": "Router",
+ "multi": true,
+ "multiFormat": "glob",
+ "name": "service_name",
+ "options": [],
+ "query": {
+ "query": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}, service_name)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 2,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 5,
+ "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 Router Summary",
+ "uid": "mongodb-router-summary",
+ "version": 1,
+ "weekStart": ""
+}