From 25543fa4e665fb85c8b342dc60ad53b93e9ccded Mon Sep 17 00:00:00 2001
From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Date: Thu, 13 Jul 2023 12:24:38 +0530
Subject: [PATCH 1/5] PMM-12070 Add Table plugin - pxc galera summary (#1514)
* PMM-12070 Add Table plugin - pxc galera summary
* PMM-12070 fix column order
---
...C_Galera_Cluster_Summary_Experimental.json | 806 ++++++++----------
1 file changed, 368 insertions(+), 438 deletions(-)
diff --git a/dashboards/Experimental/PXC_Galera_Cluster_Summary_Experimental.json b/dashboards/Experimental/PXC_Galera_Cluster_Summary_Experimental.json
index 6671981942..d41465da59 100644
--- a/dashboards/Experimental/PXC_Galera_Cluster_Summary_Experimental.json
+++ b/dashboards/Experimental/PXC_Galera_Cluster_Summary_Experimental.json
@@ -813,529 +813,459 @@
"type": "stat"
},
{
- "activePatternIndex": 2,
- "debug_mode": false,
- "defaultPattern": {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Value",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": ".",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "none",
- "name": "Default Pattern",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": "*",
- "row_col_wrapper": "_",
- "row_name": "_series_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "Series : _series_
Row Name : _row_name_
Col Name : _col_name_
Value : _value_",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "avg"
- },
- "default_title_for_rows": "Cluster Name",
- "description": "",
- "first_column_link": "",
+ "id": 13,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
- "y": 20
+ "y": 15
},
- "hide_headers": false,
- "id": 13,
- "patterns": [
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Status",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": true,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": true,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "bool",
- "name": "Status",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Status",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|1->green",
- "thresholds": "70,90",
- "time_based_thresholds": [
- {
- "enabledDays": "Sun,Mon,Tue,Wed,Thu,Fri,Sat",
- "from": "0000",
- "name": "Early morning of everyday",
- "threshold": "70,90",
- "to": "0530"
- }
- ],
- "tooltipTemplate": "The system load is a measurement of the computational work the system is performing. Each running process either using or waiting for CPU resources adds 1 to the load.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->Non-Primary|1->Primary",
- "valueName": "current"
- },
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Node Size",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "string",
- "name": "Node Size",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Node Size",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "The parameter shows how long a system has been 'up' and running without a shut down or restart.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
+ "type": "table",
+ "title": "Cluster Summary",
+ "default_title_for_rows": "Cluster Name",
+ "datasource": "Metrics",
+ "pluginVersion": "9.2.18",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "center",
+ "displayMode": "auto",
+ "inspect": false,
+ "minWidth": 100
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "color": {
+ "mode": "thresholds"
+ },
+ "noValue": "-"
},
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #B"
+ },
+ "properties": [
+ {
+ "id": "mappings",
+ "value": [
+ {
+ "options": {
+ "0": {
+ "color": "red",
+ "index": 1,
+ "text": "Non-Primary"
+ },
+ "1": {
+ "color": "green",
+ "index": 0,
+ "text": "Primary"
+ }
+ },
+ "type": "value"
+ }
+ ]
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #A"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "string"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #D"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ },
+ {
+ "id": "mappings",
+ "value": [
+ {
+ "options": {
+ "1": {
+ "color": "red",
+ "index": 0,
+ "text": "Joining"
+ },
+ "2": {
+ "color": "red",
+ "index": 1,
+ "text": "Donor/Desynced"
+ },
+ "3": {
+ "color": "yellow",
+ "index": 2,
+ "text": "Joined"
+ },
+ "4": {
+ "color": "green",
+ "index": 3,
+ "text": "Synced"
+ }
+ },
+ "type": "value"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #C"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "string"
+ }
+ ]
+ }
+ ]
+ },
+ "transformations": [
{
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "State",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": true,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": true,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "string",
- "name": "State",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*State",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "1->red|2->red|3->yellow|4->Green",
- "thresholds": "10,20",
- "time_based_thresholds": [],
- "tooltipTemplate": "The parameter shows how long a system has been 'up' and running without a shut down or restart.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "1->Joining|2->Donor/Desynced|3->Joined|4->Synced",
- "valueName": "current"
+ "id": "merge",
+ "options": {}
},
{
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Service Size",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "string",
- "name": "Service Size",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Service Size",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "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.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
+ "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
+ },
+ "indexByName": {
+ "Time": 0,
+ "Value #A": 2,
+ "Value #B": 5,
+ "Value #C": 3,
+ "Value #D": 4,
+ "cluster": 1
+ },
+ "renameByName": {
+ "Value #A": "Node Size",
+ "Value #B": "Status",
+ "Value #C": "Service Size",
+ "Value #D": "State",
+ "cluster": "Cluster Name"
+ }
+ }
}
],
- "row_col_wrapper": "_",
- "sorting_props": {
- "col_index": 0,
- "direction": "desc"
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false
+ }
},
"targets": [
{
- "datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
+ "datasource": "Metrics",
"expr": "sum by (cluster) (group by (node_name,cluster) (mysql_global_status_wsrep_cluster_size{cluster=~\"$cluster\", environment=~\"$environment\"}))",
+ "format": "table",
"hide": false,
+ "instant": true,
"interval": "$interval",
"legendFormat": "{{cluster}} | Node Size",
"refId": "A"
},
{
- "datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
+ "datasource": "Metrics",
"expr": "avg by (cluster)(mysql_global_status_wsrep_cluster_status{cluster=~\"$cluster\", environment=~\"$environment\"})",
+ "format": "table",
"hide": false,
+ "instant": true,
"interval": "$interval",
"legendFormat": "{{cluster}} | Status",
"refId": "B"
},
{
- "datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
+ "datasource": "Metrics",
"expr": "avg by (cluster) (mysql_global_status_wsrep_local_state{cluster=~\"$cluster\", environment=~\"$environment\"})",
+ "format": "table",
"hide": false,
+ "instant": true,
"interval": "$interval",
"legendFormat": "{{cluster}} | State",
"refId": "D"
},
{
- "datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
+ "datasource": "Metrics",
"expr": "sum by (cluster) (group by (cluster,service_name) (mysql_galera_status_info{cluster=~\"$cluster\", environment=~\"$environment\"}))",
+ "format": "table",
"hide": false,
+ "instant": true,
"interval": "$interval",
"legendFormat": "{{cluster}} | Service Size",
"refId": "C"
}
],
- "text_alignment_header": "center",
- "text_alignment_values": "center",
- "title": "Cluster Summary",
- "type": "yesoreyeram-boomtable-panel"
+ "sorting_props": {
+ "col_index": 0,
+ "direction": "desc"
+ }
},
{
- "activePatternIndex": 3,
- "debug_mode": false,
- "defaultPattern": {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Value",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": ".",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "none",
- "name": "Default Pattern",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": "*",
- "row_col_wrapper": "_",
- "row_name": "_series_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "Series : _series_
Row Name : _row_name_
Col Name : _col_name_
Value : _value_",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "avg"
- },
- "default_title_for_rows": "Service Name",
- "description": "",
- "first_column_link": "",
+ "id": 16,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
- "y": 20
+ "y": 15
},
- "hide_headers": false,
- "id": 16,
- "patterns": [
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Status",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": true,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": true,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "bool",
- "name": "Status",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Status",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|1->green",
- "thresholds": "70,90",
- "time_based_thresholds": [
- {
- "enabledDays": "Sun,Mon,Tue,Wed,Thu,Fri,Sat",
- "from": "0000",
- "name": "Early morning of everyday",
- "threshold": "70,90",
- "to": "0530"
- }
- ],
- "tooltipTemplate": "The system load is a measurement of the computational work the system is performing. Each running process either using or waiting for CPU resources adds 1 to the load.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->Non-Primary|1->Primary",
- "valueName": "current"
- },
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Node Size",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "string",
- "name": "Node Size",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Node Size",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "The parameter shows how long a system has been 'up' and running without a shut down or restart.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
+ "type": "table",
+ "title": "Service Summary",
+ "default_title_for_rows": "Service Name",
+ "datasource": "Metrics",
+ "pluginVersion": "9.2.18",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "center",
+ "displayMode": "auto",
+ "inspect": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "color": {
+ "mode": "fixed"
+ },
+ "noValue": "-"
},
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #A"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "string"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #B"
+ },
+ "properties": [
+ {
+ "id": "mappings",
+ "value": [
+ {
+ "type": "value",
+ "options": {
+ "0": {
+ "color": "red",
+ "text": "Non-Primary",
+ "index": 0
+ },
+ "1": {
+ "text": "Primary",
+ "color": "green",
+ "index": 1
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #D"
+ },
+ "properties": [
+ {
+ "id": "mappings",
+ "value": [
+ {
+ "type": "value",
+ "options": {
+ "1": {
+ "text": "Joining",
+ "color": "red",
+ "index": 0
+ },
+ "2": {
+ "text": "Donor/Desynced",
+ "color": "red",
+ "index": 1
+ },
+ "3": {
+ "text": "Joined",
+ "color": "yellow",
+ "index": 2
+ },
+ "4": {
+ "text": "Synced",
+ "color": "green",
+ "index": 3
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false
+ }
+ },
+ "transformations": [
{
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "State",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": true,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": true,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "string",
- "name": "State",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*State",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "1->red|2->red|3->yellow|4->Green",
- "thresholds": "10,20",
- "time_based_thresholds": [],
- "tooltipTemplate": "The parameter shows how long a system has been 'up' and running without a shut down or restart.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "1->Joining|2->Donor/Desynced|3->Joined|4->Synced",
- "valueName": "current"
+ "id": "merge",
+ "options": {}
},
{
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Cluster Name",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "string",
- "name": "Cluster Name",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Cluster Name",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "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.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
+ "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
+ },
+ "indexByName": {
+ "Time": 0,
+ "service_name": 1,
+ "Value #A": 2,
+ "Value #D": 3,
+ "Value #B": 4
+ },
+ "renameByName": {
+ "Value #A": "Node Size",
+ "Value #B": "Status",
+ "Value #D": "State",
+ "service_name": " Service Name"
+ }
+ }
}
],
- "row_col_wrapper": "_",
- "sorting_props": {
- "col_index": 2,
- "direction": "asc"
- },
"targets": [
{
- "datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
+ "datasource": "Metrics",
"expr": "sum by (service_name) (group by (service_name) (mysql_global_status_wsrep_cluster_size{cluster=~\"$cluster\", environment=~\"$environment\"}))",
+ "format": "table",
"hide": false,
+ "instant": true,
"interval": "$interval",
"legendFormat": "{{service_name}} | Node Size",
"refId": "A"
},
{
- "datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
+ "datasource": "Metrics",
"expr": "avg by (service_name)(mysql_global_status_wsrep_cluster_status{cluster=~\"$cluster\", environment=~\"$environment\"})",
+ "format": "table",
"hide": false,
+ "instant": true,
"interval": "$interval",
"legendFormat": "{{service_name}} | Status",
"refId": "B"
},
{
- "datasource": "Metrics",
+ "editorMode": "code",
"exemplar": true,
+ "datasource": "Metrics",
"expr": "avg by (service_name) (mysql_global_status_wsrep_local_state{cluster=~\"$cluster\", environment=~\"$environment\"})",
+ "format": "table",
"hide": false,
+ "instant": true,
"interval": "$interval",
"legendFormat": "{{service_name}} | State",
"refId": "D"
}
],
- "text_alignment_header": "center",
- "text_alignment_values": "center",
- "title": "Service Summary",
- "type": "yesoreyeram-boomtable-panel"
+ "sorting_props": {
+ "col_index": 2,
+ "direction": "asc"
+ }
},
{
"fieldConfig": {
From 52df07b79b7f2b23b5127c1621db4adc79f1f0c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Ctvrtka?=
<62988319+JiriCtvrtka@users.noreply.github.com>
Date: Mon, 17 Jul 2023 09:52:58 +0200
Subject: [PATCH 2/5] PMM-6279 Show metadata table again. (#1519)
* Revert "PMM-12229 Hide metadata table (#1512)"
This reverts commit fede025a6068947797c2008e86324578e997ca4e.
* PMM-6279 Collapse metadata section by default
---------
Co-authored-by: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com>
Co-authored-by: Matej Kubinec
---
.../panel/components/Details/Metadata/Metadata.styles.ts | 3 ---
.../pmm-qan/panel/components/Details/Metadata/Metadata.tsx | 4 ++--
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Metadata/Metadata.styles.ts b/pmm-app/src/pmm-qan/panel/components/Details/Metadata/Metadata.styles.ts
index 25fbbf9041..6d92fff8aa 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Metadata/Metadata.styles.ts
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Metadata/Metadata.styles.ts
@@ -13,8 +13,5 @@ export const getStyles = (theme: GrafanaTheme2) => {
word-break: keep-all;
color: ${parameters.mainTextColor};
`,
- metadataTable: css`
- display: none;
- `,
};
};
diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Metadata/Metadata.tsx b/pmm-app/src/pmm-qan/panel/components/Details/Metadata/Metadata.tsx
index 4fe9be42c1..3e8f813dd3 100644
--- a/pmm-app/src/pmm-qan/panel/components/Details/Metadata/Metadata.tsx
+++ b/pmm-app/src/pmm-qan/panel/components/Details/Metadata/Metadata.tsx
@@ -8,7 +8,7 @@ import { OVERLAY_LOADER_SIZE } from '../Details.constants';
const Metadata = ({ metadata, loading }) => {
const styles = useStyles2(getStyles);
- const [metadataOpen, setMetadataOpen] = useState(true);
+ const [metadataOpen, setMetadataOpen] = useState(false);
const nameColumn = (item) => (
@@ -34,7 +34,7 @@ const Metadata = ({ metadata, loading }) => {
];
return (
-
+
Date: Mon, 17 Jul 2023 15:04:25 +0530
Subject: [PATCH 3/5] PMM-12070 Add Table plugin - mongodb replset summary
(#1513)
* PMM-12070 Add Table plugin - mongo replset summary
* PMM-12070 fix thresold value
* PMM-12070 Update plugin verison
---
.../MongoDB/MongoDB_ReplSet_Summary.json | 1018 ++++++++---------
1 file changed, 449 insertions(+), 569 deletions(-)
diff --git a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
index 280e318cfb..4d640ddc30 100644
--- a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
+++ b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
@@ -2162,302 +2162,244 @@
"id": 1306,
"panels": [
{
- "activePatternIndex": 0,
- "defaultPattern": {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Value",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "none",
- "name": "Default Pattern",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": "*",
- "row_col_wrapper": "_",
- "row_name": "Service Name",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "Series : _series_
Row Name : _row_name_
Col Name : _col_name_
Value : _value_",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
- },
- "default_title_for_rows": "Service Name",
- "first_column_link": "/graph/d/mongodb-instance-summary/mongodb-instance-summary",
+ "collapsed": false,
"gridPos": {
- "h": 6,
+ "h": 10,
"w": 24,
"x": 0,
"y": 61
},
- "hide_headers": false,
"id": 1352,
- "patterns": [
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "QPS",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ "pluginVersion": "9.2.20",
+ "default_title_for_rows": "Service Name",
+ "title": "Services Details",
+ "type": "table",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "center",
+ "displayMode": "auto",
+ "inspect": false,
+ "filterable": false
},
- "format": "ops",
- "name": "QPS",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*QPS",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "Queries per Second (QPS)",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
- },
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Average Latency",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "#8b0000",
+ "index": 0,
+ "text": "No Data"
+ },
+ "-": {
+ "index": 1,
+ "text": "No Data"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
},
- "format": "µs",
- "name": "Latency",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Latency",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "Latency statistics for database commands.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
- },
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "_1_",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
},
- "format": "s",
- "name": "Uptime",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Uptime",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "The parameter shows how long a service has been “up” and running without a shut down or restart.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
+ "noValue": "-",
+ "decimals": 2
},
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Open Connections",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #E"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "color-background-solid"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "service_name"
+ },
+ "properties": [
+ {
+ "id": "custom.align",
+ "value": "left"
+ }
+ ]
},
- "format": "none",
- "name": "Open Connections",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Connections",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "Connects to a MongoDB instance and to a specified database on that instance.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #C"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "s"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #B"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "µs"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #D"
+ },
+ "properties": [
+ {
+ "id": "decimals"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #A"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "ops"
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false
+ }
+ },
+ "transformations": [
+ {
+ "id": "merge",
+ "options": {}
},
{
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "_1_",
- "decimals": "0",
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "none",
- "name": "Cursors",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".* Cursors",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "When the db. collection. find () function is used to search for documents in the collection, the result returns a pointer to the collection of documents returned which is called a cursor.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
+ "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"
+ }
+ }
}
],
- "row_col_wrapper": "_",
- "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\"})",
+ "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]))",
- "instant": false,
+ "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": "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"
}
],
- "text_alignment_header": "center",
- "text_alignment_values": "center",
- "title": "Services Details",
- "type": "yesoreyeram-boomtable-panel"
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ }
},
{
"aliasColors": {},
@@ -2837,49 +2779,7 @@
"id": 1403,
"panels": [
{
- "activePatternIndex": -3,
- "defaultPattern": {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Value",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": ".",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "none",
- "name": "Default Pattern",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": "*",
- "row_col_wrapper": "_",
- "row_name": "_series_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "Series : _series_
Row Name : _row_name_
Col Name : _col_name_
Value : _value_",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "avg"
- },
- "default_title_for_rows": "Node Name",
- "description": "",
- "first_column_link": "",
+ "collapsed": false,
"gridPos": {
"h": 6,
"w": 24,
@@ -2887,333 +2787,313 @@
"y": 62
},
"id": 1435,
- "patterns": [
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "_1_",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ "pluginVersion": "9.2.20",
+ "default_title_for_rows": "Node Name",
+ "title": "Nodes Overview",
+ "type": "table",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "center",
+ "displayMode": "auto",
+ "inspect": false,
+ "filterable": false,
+ "width": 100
},
- "format": "s",
- "name": "Uptime",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Uptime",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "The parameter shows how long a system has been “up” and running without a shut down or restart.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
- },
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Load Average",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ "mappings": [
+ {
+ "options": {
+ "0": {
+ "color": "#8b0000",
+ "index": 0,
+ "text": "No Data"
+ },
+ "-": {
+ "index": 1,
+ "text": "No Data"
+ }
+ },
+ "type": "value"
+ }
+ ],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "orange",
+ "value": 10
+ },
+ {
+ "color": "green",
+ "value": 20
+ }
+ ]
},
- "format": "none",
- "name": "Load",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Load",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "The system load is a measurement of the computational work the system is performing. Each running process either using or waiting for CPU resources adds 1 to the load.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "avg"
- },
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Memory Available",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": true,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ "color": {
+ "fixedColor": "text",
+ "mode": "thresholds"
},
- "format": "percent",
- "name": "Memory",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Memory",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "10,20",
- "time_based_thresholds": [],
- "tooltipTemplate": "The parameter shows how long a system has been “up” and running without a shut down or restart.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
- },
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "_1_",
"decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "bytes",
- "name": "RAM",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*RAM",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "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.",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "current"
+ "noValue": "-"
},
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Virtual Memory",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "node_name"
+ },
+ "properties": [
+ {
+ "id": "custom.align",
+ "value": "left"
+ },
+ {
+ "id": "custom.width"
+ }
+ ]
},
- "format": "bytes",
- "name": "Virtual Memory",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Virtual",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "RAM + SWAP",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "avg"
- },
- {
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Disk Space",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": false,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Value #A"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "s"
+ }
+ ]
},
- "format": "bytes",
- "name": "Disk Space",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Disk",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "70,90",
- "time_based_thresholds": [],
- "tooltipTemplate": "Sum of disk space on all partitions. Note it can be significantly over-reported in some installations",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "avg"
+ {
+ "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
+ }
+ ]
+ }
+ ]
+ },
+ "options": {
+ "showHeader": true,
+ "footer": {
+ "show": false
+ }
+ },
+ "transformations": [
+ {
+ "id": "merge",
+ "options": {}
},
{
- "bgColors": "green|orange|red",
- "bgColors_overrides": "0->green|2->red|1->yellow",
- "clickable_cells_link": "",
- "col_name": "Min Space Available",
- "decimals": 2,
- "defaultBGColor": "",
- "defaultTextColor": "",
- "delimiter": "|",
- "displayTemplate": "_value_",
- "enable_bgColor": false,
- "enable_bgColor_overrides": false,
- "enable_clickable_cells": false,
- "enable_textColor": true,
- "enable_textColor_overrides": false,
- "enable_time_based_thresholds": false,
- "enable_transform": false,
- "enable_transform_overrides": false,
- "filter": {
- "value_above": "",
- "value_below": ""
- },
- "format": "percent",
- "name": "MIn Space",
- "null_color": "darkred",
- "null_textcolor": "black",
- "null_value": "No data",
- "pattern": ".*Space",
- "row_col_wrapper": "_",
- "row_name": "_0_",
- "textColors": "red|orange|green",
- "textColors_overrides": "0->red|2->green|1->yellow",
- "thresholds": "10,20",
- "time_based_thresholds": [],
- "tooltipTemplate": "Lowest percent of the disk space available",
- "transform_values": "_value_|_value_|_value_",
- "transform_values_overrides": "0->down|1->up",
- "valueName": "avg"
+ "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"
+ }
+ }
}
],
- "row_col_wrapper": "_",
- "sorting_props": {
- "col_index": -1,
- "direction": "desc"
- },
"targets": [
{
+ "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\"}))",
+ "format": "table",
+ "hide": false,
+ "instant": true,
"interval": "$interval",
"legendFormat": "{{node_name}} | Uptime",
"refId": "A"
},
{
+ "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"
},
{
- "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\"})",
- "interval": "$interval",
- "legendFormat": "{{node_name}} | RAM",
- "refId": "D"
- },
- {
+ "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"
},
{
+ "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"
+ },
+ {
+ "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"
},
{
+ "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"
},
{
+ "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"
}
],
- "text_alignment_header": "center",
- "text_alignment_values": "center",
- "title": "Nodes Overview",
- "type": "yesoreyeram-boomtable-panel"
+ "sorting_props": {
+ "col_index": -1,
+ "direction": "desc"
+ }
},
{
"aliasColors": {
From 08a059f4e1c34d729d93e553372fa8e560fd07e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Nosek?=
Date: Mon, 17 Jul 2023 12:28:01 +0200
Subject: [PATCH 4/5] PMM-12263 Fix replication lag of PSA RS in
MongoDB_Cluster_Summary.json (#1515)
* Fix replication lag of PSA RS in MongoDB_Cluster_Summary.json
The following graph shows the wrong value if the RS is in PSA configuration. It calculates the arbiter's lag from the beginning of the UNIX time (currently >54 years).
* Update MongoDB_Cluster_Summary.json
---------
Co-authored-by: Roman Novikov
Co-authored-by: Nurlan Moldomurov
---
dashboards/MongoDB/MongoDB_Cluster_Summary.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dashboards/MongoDB/MongoDB_Cluster_Summary.json b/dashboards/MongoDB/MongoDB_Cluster_Summary.json
index 8565c0bfed..f3dc245fcf 100644
--- a/dashboards/MongoDB/MongoDB_Cluster_Summary.json
+++ b/dashboards/MongoDB/MongoDB_Cluster_Summary.json
@@ -3799,7 +3799,7 @@
"steppedLine": false,
"targets": [
{
- "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\"}[$interval]) > 0) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\"}[5m]) > 0) by (service_name,set))",
+ "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",
From 6a87cb5a678aac4b121342c92aa487c15e6b71e0 Mon Sep 17 00:00:00 2001
From: Alex Tymchuk
Date: Wed, 26 Jul 2023 10:46:57 +0300
Subject: [PATCH 5/5] PMM-12280 make the Service Summary collapsed by default
(#1525)
* PMM-12280 make the Service Summary collapsed by default
* PMM-12280 do not allow to inspect
* PMM-12280 fix duplicate rows for RDS services
* PMM-12280 clean up the code
* PMM-12280 fix the collapse again
* PMM-12280 fix the Service Summary for Environment Overview board
PMM-12280 fix the Service Summary for Environment Overview board
PMM-12280 fix the Service Summary for Environment Overview board
---
.../Experimental/Environments_Overview.json | 953 +++++++++---------
dashboards/Insight/Home_Dashboard.json | 875 ++++++++--------
2 files changed, 952 insertions(+), 876 deletions(-)
diff --git a/dashboards/Experimental/Environments_Overview.json b/dashboards/Experimental/Environments_Overview.json
index 542d2018a6..5a4ca3fbc3 100644
--- a/dashboards/Experimental/Environments_Overview.json
+++ b/dashboards/Experimental/Environments_Overview.json
@@ -89,7 +89,7 @@
"content": "
\n\n
\n
Percona Monitoring and Management\n
",
"mode": "html"
},
- "pluginVersion": "9.2.18",
+ "pluginVersion": "9.2.20",
"style": {},
"targets": [
{
@@ -647,7 +647,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.18",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -793,7 +793,7 @@
"id": 1381,
"links": [],
"options": {
- "title": "Failed Advisors"
+ "title": "Advisor Insights"
},
"targets": [
{
@@ -801,7 +801,7 @@
"refId": "A"
}
],
- "title": "Failed Advisors",
+ "title": "Advisor Insights",
"type": "pmm-check-panel"
},
{
@@ -865,7 +865,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "9.2.18",
+ "pluginVersion": "9.2.20",
"pointradius": 0.5,
"points": false,
"renderer": "flot",
@@ -972,7 +972,7 @@
"alertThreshold": false
},
"percentage": false,
- "pluginVersion": "9.2.18",
+ "pluginVersion": "9.2.20",
"pointradius": 1,
"points": true,
"renderer": "flot",
@@ -1073,7 +1073,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "9.2.18",
+ "pluginVersion": "9.2.20",
"pointradius": 0.5,
"points": false,
"renderer": "flot",
@@ -1177,7 +1177,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "9.2.18",
+ "pluginVersion": "9.2.20",
"pointradius": 2,
"points": false,
"renderer": "flot",
@@ -1286,7 +1286,7 @@
"alertThreshold": true
},
"percentage": false,
- "pluginVersion": "9.2.18",
+ "pluginVersion": "9.2.20",
"pointradius": 0.5,
"points": false,
"renderer": "flot",
@@ -1456,7 +1456,7 @@
"type": "timeseries"
},
{
- "collapsed": false,
+ "collapsed": true,
"datasource": "Metrics",
"gridPos": {
"h": 1,
@@ -1465,415 +1465,497 @@
"y": 30
},
"id": 1965,
- "panels": [],
- "targets": [
+ "panels": [
{
"datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "Services",
- "type": "row"
- },
- {
- "datasource": "Metrics",
- "description": "",
- "fieldConfig": {
- "defaults": {
- "custom": {
- "align": "auto",
- "displayMode": "auto",
- "inspect": false,
- "minWidth": 110
- },
- "mappings": [],
- "noValue": "-",
- "thresholds": {
- "mode": "percentage",
- "steps": [
- {
- "color": "green",
- "value": null
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false,
+ "minWidth": 110
},
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Value #O"
+ "mappings": [],
+ "noValue": "-",
+ "thresholds": {
+ "mode": "percentage",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
},
- "properties": [
+ "overrides": [
{
- "id": "unit",
- "value": "bytes"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #O"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "bytes"
+ },
+ {
+ "id": "displayName",
+ "value": "RAM"
+ },
+ {
+ "id": "custom.width",
+ "value": 100
+ }
+ ]
},
{
- "id": "custom.width",
- "value": 100
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #N"
- },
- "properties": [
- {
- "id": "custom.width",
- "value": 100
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #M"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #N"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "vCPU"
+ },
+ {
+ "id": "custom.width",
+ "value": 100
+ }
+ ]
+ },
{
- "id": "unit",
- "value": "bytes"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #L"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #M"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Network IO"
+ },
+ {
+ "id": "unit",
+ "value": "bytes"
+ }
+ ]
+ },
{
- "id": "unit",
- "value": "bytes"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #J"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #L"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Disk writes"
+ },
+ {
+ "id": "unit",
+ "value": "bytes"
+ }
+ ]
+ },
{
- "id": "unit",
- "value": "bytes"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #I"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #J"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Disk reads"
+ },
+ {
+ "id": "unit",
+ "value": "bytes"
+ }
+ ]
+ },
{
- "id": "unit",
- "value": "percent"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #G"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #I"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Avail memory"
+ },
+ {
+ "id": "unit",
+ "value": "percent"
+ }
+ ]
+ },
{
- "id": "unit",
- "value": "s"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #G"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "DB uptime"
+ },
+ {
+ "id": "unit",
+ "value": "s"
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ },
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "yellow",
+ "value": 3600
+ },
+ {
+ "color": "green",
+ "value": 86400
+ }
+ ]
+ }
+ }
+ ]
},
{
- "id": "custom.displayMode",
- "value": "color-text"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #E"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "DB conns"
+ }
+ ]
},
{
- "id": "thresholds",
- "value": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- },
- {
- "color": "yellow",
- "value": 3600
- },
- {
- "color": "green",
- "value": 86400
- }
- ]
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #A"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #F"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "DB QPS"
+ }
+ ]
+ },
{
- "id": "mappings",
- "value": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #A"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Status"
+ },
{
- "options": {
- "0": {
- "color": "red",
- "index": 0,
- "text": "Down"
- },
- "1": {
- "color": "green",
- "index": 1,
- "text": "Up"
+ "id": "mappings",
+ "value": [
+ {
+ "options": {
+ "0": {
+ "color": "red",
+ "index": 0,
+ "text": "Down"
+ },
+ "1": {
+ "color": "green",
+ "index": 1,
+ "text": "Up"
+ }
+ },
+ "type": "value"
}
- },
- "type": "value"
+ ]
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
}
]
},
{
- "id": "custom.displayMode",
- "value": "color-text"
+ "matcher": {
+ "id": "byName",
+ "options": "service_name"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Service"
+ },
+ {
+ "id": "custom.width",
+ "value": 270
+ }
+ ]
},
{
- "id": "custom.width",
- "value": 100
+ "matcher": {
+ "id": "byName",
+ "options": "environment"
+ },
+ "properties": [
+ {
+ "id": "custom.align",
+ "value": "right"
+ },
+ {
+ "id": "displayName",
+ "value": "Environment"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "region"
+ },
+ "properties": [
+ {
+ "id": "custom.align",
+ "value": "right"
+ },
+ {
+ "id": "displayName",
+ "value": "Region"
+ }
+ ]
}
]
},
- {
- "matcher": {
- "id": "byName",
- "options": "service_name"
+ "gridPos": {
+ "h": 13,
+ "w": 24,
+ "x": 0,
+ "y": 31
+ },
+ "id": 1919,
+ "options": {
+ "footer": {
+ "fields": ["Value #A"],
+ "reducer": ["count"],
+ "show": true
},
- "properties": [
- {
- "id": "custom.width",
- "value": 300
+ "showHeader": true
+ },
+ "pluginVersion": "9.2.20",
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "min by (service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "__auto",
+ "refId": "A"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(sum by (service_name) (\n(rate(mysql_global_status_queries{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) or \nirate(mysql_global_status_queries{node_name=~\"$node_name\",environment=~\"$environment\"}[5m])) or \n(sum by (service_name) (rate(mongodb_op_counters_total{node_name=~\"$node_name\",type!=\"command\",environment=~\"$environment\"}[$interval])) or \nsum by (service_name) (irate(mongodb_op_counters_total{node_name=~\"$node_name\",type!=\"command\",environment=~\"$environment\"}[5m]))) or\n(sum by (service_name) (rate(pg_stat_database_xact_commit{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) + \nrate(pg_stat_database_xact_rollback{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval])) or\nsum by (service_name) (irate(pg_stat_database_xact_commit{node_name=~\"$node_name\",environment=~\"$environment\"}[5m]) + \nirate(pg_stat_database_xact_rollback{node_name=~\"$node_name\",environment=~\"$environment\"}[5m])))\n))",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "__auto",
+ "refId": "F"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(sum by(service_name)(max_over_time(mysql_global_status_threads_connected{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) or \nlabel_replace(mysql_global_status_threads_connected{node_name=~\"$node_name\",node_type=\"remote\",environment=~\"$environment\"},\"node_name\",\"pmm-server\",\"\",\"\") or\nmax_over_time(mongodb_connections{node_name=~\"$node_name\",state=\"current\",environment=~\"$environment\"}[$interval]) or\nsum by (service_name) (max_over_time(pg_stat_database_numbackends{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]))))",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "__auto",
+ "refId": "E"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "((clamp_max(avg by (node_name) (sum by (node_name,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) *100 or\nsum by (node_name) (avg_over_time(node_cpu_average{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"total\"}[$interval]) or avg_over_time(node_cpu_average{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"total\"}[5m]))) * on(node_name) group_left(environment, service_name) avg by (node_name, service_name, environment) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"}))",
+ "format": "table",
+ "hide": true,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{instance}}",
+ "refId": "H"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "min by (service_name) (mysql_global_status_uptime{node_name=~\"$node_name\",environment=~\"$environment\"} or \nmongodb_instance_uptime_seconds {node_name=~\"$node_name\",environment=~\"$environment\"} or \n(time() - process_start_time_seconds{node_name=~\"$node_name\",job=~\"postgres_exporter.*\",environment=~\"$environment\"}))",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "DB Uptime",
+ "refId": "G"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(((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\"} or\n(rdsosmetrics_memory_free{node_name=~\"$node_name\"} + rdsosmetrics_memory_buffers{node_name=~\"$node_name\"} + rdsosmetrics_memory_cached{node_name=~\"$node_name\"})/ rdsosmetrics_memory_total{node_name=~\"$node_name\"}) * 100) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Memory Available",
+ "refId": "I"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(sum by (node_name) (rate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[$interval]) or irate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[5m]) or sum by (node_name) (max_over_time(rdsosmetrics_diskIO_readKbPS{node_name=~\"$node_name\"}[$interval]) or max_over_time(rdsosmetrics_diskIO_readKbPS{node_name=~\"$node_name\"}[5m]))) * 1024) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Disk Reads",
+ "refId": "J"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(sum by (node_name) (rate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[$interval]) or irate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[5m]) or\nsum by (node_name) (max_over_time(rdsosmetrics_diskIO_writeKbPS{node_name=~\"$node_name\"}[$interval]) or max_over_time(rdsosmetrics_diskIO_writeKbPS{node_name=~\"$node_name\"}[5m]))) * 1024) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Disk Writes",
+ "refId": "L"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "((sum by (node_name) (rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval]) or\nirate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or \nsum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or \nsum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[5m]))) + \n(sum by (node_name) (rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval]) or \nirate(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 \nsum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[5m])))) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Network IO",
+ "refId": "M"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "((count by (node_name) (node_cpu_seconds_total{node_name=~\"$node_name\",mode=~\"user\"}) or (1-absent(node_cpu_seconds_total{node_name=~\"$node_name\",mode=~\"user\"}))) + \nsum by (node_name) (rdsosmetrics_General_numVCPUs{node_name=~\"$node_name\"} or up * 0)) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Virtual CPU",
+ "refId": "N"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(node_memory_MemTotal_bytes{node_name=~\"$node_name\"} or (rdsosmetrics_memory_total{node_name=~\"$node_name\"}*1024)) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"}) ",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "RAM",
+ "refId": "O"
+ }
+ ],
+ "transformations": [
+ {
+ "id": "merge",
+ "options": {}
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "Time": true,
+ "agent_id": true,
+ "agent_type": true,
+ "az": true,
+ "env": true,
+ "environment": false,
+ "instance": true,
+ "job": true,
+ "machine_id": true,
+ "node_id": true,
+ "node_name": true,
+ "node_type": true
+ },
+ "indexByName": {
+ "Time": 0,
+ "Value #A": 2,
+ "Value #E": 8,
+ "Value #F": 7,
+ "Value #G": 9,
+ "Value #I": 18,
+ "Value #J": 19,
+ "Value #L": 20,
+ "Value #M": 21,
+ "Value #N": 22,
+ "agent_id": 10,
+ "agent_type": 11,
+ "az": 5,
+ "env": 4,
+ "environment": 3,
+ "instance": 12,
+ "job": 13,
+ "machine_id": 17,
+ "node_id": 14,
+ "node_name": 15,
+ "node_type": 16,
+ "region": 6,
+ "service_name": 1
+ },
+ "renameByName": {}
}
- ]
- }
- ]
- },
- "gridPos": {
- "h": 13,
- "w": 24,
- "x": 0,
- "y": 31
- },
- "id": 1919,
- "options": {
- "footer": {
- "fields": ["Value #A"],
- "reducer": ["count"],
- "show": true
- },
- "showHeader": true
- },
- "pluginVersion": "9.2.18",
+ }
+ ],
+ "type": "table"
+ }
+ ],
"targets": [
{
"datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "min by (service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "__auto",
"refId": "A"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "(sum by (service_name) (\n(rate(mysql_global_status_queries{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) or \nirate(mysql_global_status_queries{node_name=~\"$node_name\",environment=~\"$environment\"}[5m])) or \n(sum by (service_name) (rate(mongodb_op_counters_total{node_name=~\"$node_name\",type!=\"command\",environment=~\"$environment\"}[$interval])) or \nsum by (service_name) (irate(mongodb_op_counters_total{node_name=~\"$node_name\",type!=\"command\",environment=~\"$environment\"}[5m]))) or\n(sum by (service_name) (rate(pg_stat_database_xact_commit{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) + \nrate(pg_stat_database_xact_rollback{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval])) or\nsum by (service_name) (irate(pg_stat_database_xact_commit{node_name=~\"$node_name\",environment=~\"$environment\"}[5m]) + \nirate(pg_stat_database_xact_rollback{node_name=~\"$node_name\",environment=~\"$environment\"}[5m])))\n))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "__auto",
- "refId": "F"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "(sum by(service_name)(max_over_time(mysql_global_status_threads_connected{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) or \nlabel_replace(mysql_global_status_threads_connected{node_name=~\"$node_name\",node_type=\"remote\",environment=~\"$environment\"},\"node_name\",\"pmm-server\",\"\",\"\") or\nmax_over_time(mongodb_connections{node_name=~\"$node_name\",state=\"current\",environment=~\"$environment\"}[$interval]) or\nsum by (service_name) (max_over_time(pg_stat_database_numbackends{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]))))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "__auto",
- "refId": "E"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((clamp_max(avg by (node_name) (sum by (node_name,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) *100 or\nsum by (node_name) (avg_over_time(node_cpu_average{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"total\"}[$interval]) or avg_over_time(node_cpu_average{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"total\"}[5m]))) * on(node_name) group_left(environment, service_name) avg by (node_name, service_name, environment) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr-.*|^external.*\",environment=~\"$environment\"}))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{instance}}",
- "refId": "H"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "min by (service_name) (mysql_global_status_uptime{node_name=~\"$node_name\",environment=~\"$environment\"} or \nmongodb_instance_uptime_seconds {node_name=~\"$node_name\",environment=~\"$environment\"} or \n(time() - process_start_time_seconds{node_name=~\"$node_name\",job=~\"postgres_exporter.*\",environment=~\"$environment\"}))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "DB Uptime",
- "refId": "G"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "(((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\"} or\n(rdsosmetrics_memory_free{node_name=~\"$node_name\"} + rdsosmetrics_memory_buffers{node_name=~\"$node_name\"} + rdsosmetrics_memory_cached{node_name=~\"$node_name\"})/ rdsosmetrics_memory_total{node_name=~\"$node_name\"}) * 100) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Memory Available",
- "refId": "I"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((rate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[$interval]) or irate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[5m]) or sum by (node_name) (max_over_time(rdsosmetrics_diskIO_readKbPS{node_name=~\"$node_name\"}[$interval]) or max_over_time(rdsosmetrics_diskIO_readKbPS{node_name=~\"$node_name\"}[5m]))) * 1024) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Disk Reads",
- "refId": "J"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((rate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[$interval]) or irate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[5m]) or\nsum by (node_name) (max_over_time(rdsosmetrics_diskIO_writeKbPS{node_name=~\"$node_name\"}[$interval]) or max_over_time(rdsosmetrics_diskIO_writeKbPS{node_name=~\"$node_name\"}[5m]))) * 1024) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Disk Writes",
- "refId": "L"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((sum by (node_name) (rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval]) or\nirate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or \nsum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or \nsum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[5m]))) + \n(sum by (node_name) (rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval]) or \nirate(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 \nsum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[5m])))) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Network IO",
- "refId": "M"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((count by (node_name) (node_cpu_seconds_total{node_name=~\"$node_name\",mode=~\"user\"}) or (1-absent(node_cpu_seconds_total{node_name=~\"$node_name\",mode=~\"user\"}))) + \nsum by (node_name) (rdsosmetrics_General_numVCPUs{node_name=~\"$node_name\"} or up * 0)) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Virtual CPU",
- "refId": "N"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "(node_memory_MemTotal_bytes{node_name=~\"$node_name\"} or (rdsosmetrics_memory_total{node_name=~\"$node_name\"}*1024)) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"}) ",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "RAM",
- "refId": "O"
- }
- ],
- "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": 3,
- "Value #E": 5,
- "Value #F": 4,
- "Value #G": 6,
- "Value #I": 15,
- "Value #J": 16,
- "Value #L": 17,
- "Value #M": 18,
- "Value #N": 19,
- "Value #O": 20,
- "agent_id": 7,
- "agent_type": 8,
- "environment": 2,
- "instance": 9,
- "job": 10,
- "machine_id": 11,
- "node_id": 12,
- "node_name": 13,
- "node_type": 14,
- "service_name": 1
- },
- "renameByName": {
- "Value #A": "Status",
- "Value #E": "DB connections",
- "Value #F": "DB QPS",
- "Value #G": "DB uptime",
- "Value #I": "Mem available",
- "Value #J": "Disk reads",
- "Value #L": "Disk writes",
- "Value #M": "Network IO",
- "Value #N": "vCPU",
- "Value #O": "RAM",
- "agent_id": "",
- "environment": "Environment",
- "node_type": "",
- "service_name": "Service"
- }
- }
}
],
- "type": "table"
+ "title": "Service Summary",
+ "type": "row"
}
],
"refresh": "1m",
@@ -1949,6 +2031,11 @@
},
{
"allValue": ".*",
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
"datasource": "Metrics",
"definition": "label_values(up, environment)",
"hide": 0,
@@ -1972,6 +2059,11 @@
},
{
"allFormat": "glob",
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
"datasource": "Metrics",
"definition": "label_values(up{environment=~\"$environment\",node_type=~\"generic|remote_rds|container|remote\"}, node_name)",
"hide": 2,
@@ -1995,6 +2087,11 @@
},
{
"allFormat": "glob",
+ "current": {
+ "selected": false,
+ "text": "All",
+ "value": "$__all"
+ },
"datasource": "Metrics",
"definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up\",node_name=~\"$node_name\"}, service_name)",
"hide": 2,
@@ -2015,94 +2112,6 @@
"sort": 5,
"type": "query",
"useTags": false
- },
- {
- "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
- },
- {
- "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
- },
- {
- "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
- },
- {
- "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
}
]
},
@@ -2135,6 +2144,6 @@
"timezone": "browser",
"title": "Environments Overview (Designed for PMM)",
"uid": "environments-overview",
- "version": 2,
+ "version": 1,
"weekStart": ""
}
diff --git a/dashboards/Insight/Home_Dashboard.json b/dashboards/Insight/Home_Dashboard.json
index 797b570302..e865ad758a 100644
--- a/dashboards/Insight/Home_Dashboard.json
+++ b/dashboards/Insight/Home_Dashboard.json
@@ -49,7 +49,6 @@
"editable": false,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
- "id": null,
"links": [
{
"asDropdown": false,
@@ -171,7 +170,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -281,7 +280,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -403,7 +402,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -496,7 +495,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -588,7 +587,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -681,7 +680,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -761,7 +760,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -843,7 +842,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -939,7 +938,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1031,7 +1030,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1123,7 +1122,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1221,7 +1220,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1322,7 +1321,7 @@
},
"textMode": "value"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"calculatedInterval": "10m",
@@ -1471,7 +1470,7 @@
},
"textMode": "value_and_name"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1551,7 +1550,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1629,7 +1628,7 @@
},
"textMode": "value_and_name"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1707,7 +1706,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1786,7 +1785,7 @@
},
"textMode": "value_and_name"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1866,7 +1865,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -1945,7 +1944,7 @@
},
"textMode": "value_and_name"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -2025,7 +2024,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.13",
+ "pluginVersion": "9.2.20",
"targets": [
{
"datasource": "Metrics",
@@ -3685,429 +3684,497 @@
"y": 50
},
"id": 1054,
- "panels": [],
- "targets": [
+ "panels": [
{
"datasource": "Metrics",
- "refId": "A"
- }
- ],
- "title": "Service Summary",
- "type": "row"
- },
- {
- "datasource": "Metrics",
- "description": "",
- "fieldConfig": {
- "defaults": {
- "custom": {
- "align": "auto",
- "displayMode": "auto",
- "inspect": false,
- "minWidth": 130
- },
- "mappings": [],
- "noValue": "-",
- "thresholds": {
- "mode": "percentage",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "Value #O"
- },
- "properties": [
- {
- "id": "unit",
- "value": "bytes"
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false,
+ "minWidth": 110
},
- {
- "id": "displayName",
- "value": "RAM"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #N"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "vCPU"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #M"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Network IO"
+ "mappings": [],
+ "noValue": "-",
+ "thresholds": {
+ "mode": "percentage",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
},
- {
- "id": "unit",
- "value": "bytes"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #L"
+ "unit": "none"
},
- "properties": [
+ "overrides": [
{
- "id": "displayName",
- "value": "Disk writes"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #O"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "bytes"
+ },
+ {
+ "id": "displayName",
+ "value": "RAM"
+ },
+ {
+ "id": "custom.width",
+ "value": 100
+ }
+ ]
},
{
- "id": "unit",
- "value": "bytes"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #J"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Disk reads"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #N"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "vCPU"
+ },
+ {
+ "id": "custom.width",
+ "value": 100
+ }
+ ]
},
{
- "id": "unit",
- "value": "bytes"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #I"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Available memory"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #M"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Network IO"
+ },
+ {
+ "id": "unit",
+ "value": "bytes"
+ }
+ ]
},
{
- "id": "unit",
- "value": "bytes"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #G"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "DB uptime"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #L"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Disk writes"
+ },
+ {
+ "id": "unit",
+ "value": "bytes"
+ }
+ ]
},
{
- "id": "unit",
- "value": "s"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #J"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Disk reads"
+ },
+ {
+ "id": "unit",
+ "value": "bytes"
+ }
+ ]
},
{
- "id": "custom.displayMode",
- "value": "color-text"
+ "matcher": {
+ "id": "byName",
+ "options": "Value #I"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Avail memory"
+ },
+ {
+ "id": "unit",
+ "value": "percent"
+ }
+ ]
},
{
- "id": "thresholds",
- "value": {
- "mode": "absolute",
- "steps": [
- {
- "color": "red",
- "value": null
- },
- {
- "color": "yellow",
- "value": 3600
- },
- {
- "color": "green",
- "value": 86400
+ "matcher": {
+ "id": "byName",
+ "options": "Value #G"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "DB uptime"
+ },
+ {
+ "id": "unit",
+ "value": "s"
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ },
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "yellow",
+ "value": 3600
+ },
+ {
+ "color": "green",
+ "value": 86400
+ }
+ ]
}
- ]
- }
+ }
+ ]
},
{
- "id": "custom.inspect",
- "value": true
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #E"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #E"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "DB conns"
+ }
+ ]
+ },
{
- "id": "displayName",
- "value": "DB connections"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #F"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #F"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "DB QPS"
+ }
+ ]
+ },
{
- "id": "displayName",
- "value": "DB QPS"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Value #A"
- },
- "properties": [
+ "matcher": {
+ "id": "byName",
+ "options": "Value #A"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Status"
+ },
+ {
+ "id": "mappings",
+ "value": [
+ {
+ "options": {
+ "0": {
+ "color": "red",
+ "index": 0,
+ "text": "Down"
+ },
+ "1": {
+ "color": "green",
+ "index": 1,
+ "text": "Up"
+ }
+ },
+ "type": "value"
+ }
+ ]
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ }
+ ]
+ },
{
- "id": "displayName",
- "value": "Status"
+ "matcher": {
+ "id": "byName",
+ "options": "service_name"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "Service"
+ },
+ {
+ "id": "custom.width",
+ "value": 270
+ }
+ ]
},
{
- "id": "mappings",
- "value": [
+ "matcher": {
+ "id": "byName",
+ "options": "environment"
+ },
+ "properties": [
{
- "options": {
- "0": {
- "color": "red",
- "index": 0,
- "text": "Down"
- },
- "1": {
- "color": "green",
- "index": 1,
- "text": "Up"
- }
- },
- "type": "value"
+ "id": "custom.align",
+ "value": "right"
+ },
+ {
+ "id": "displayName",
+ "value": "Environment"
}
]
},
{
- "id": "custom.displayMode",
- "value": "color-text"
+ "matcher": {
+ "id": "byName",
+ "options": "region"
+ },
+ "properties": [
+ {
+ "id": "custom.align",
+ "value": "right"
+ },
+ {
+ "id": "displayName",
+ "value": "Region"
+ }
+ ]
}
]
},
- {
- "matcher": {
- "id": "byName",
- "options": "service_name"
+ "gridPos": {
+ "h": 11,
+ "w": 24,
+ "x": 0,
+ "y": 51
+ },
+ "id": 1052,
+ "options": {
+ "footer": {
+ "fields": ["Value #A"],
+ "reducer": ["count"],
+ "show": true
},
- "properties": [
- {
- "id": "displayName",
- "value": "Service"
- },
- {
- "id": "custom.width",
- "value": 270
+ "showHeader": true
+ },
+ "pluginVersion": "9.2.20",
+ "targets": [
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "min by (service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "__auto",
+ "refId": "A"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(sum by (service_name) (\n(rate(mysql_global_status_queries{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) or \nirate(mysql_global_status_queries{node_name=~\"$node_name\",environment=~\"$environment\"}[5m])) or \n(sum by (service_name) (rate(mongodb_op_counters_total{node_name=~\"$node_name\",type!=\"command\",environment=~\"$environment\"}[$interval])) or \nsum by (service_name) (irate(mongodb_op_counters_total{node_name=~\"$node_name\",type!=\"command\",environment=~\"$environment\"}[5m]))) or\n(sum by (service_name) (rate(pg_stat_database_xact_commit{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) + \nrate(pg_stat_database_xact_rollback{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval])) or\nsum by (service_name) (irate(pg_stat_database_xact_commit{node_name=~\"$node_name\",environment=~\"$environment\"}[5m]) + \nirate(pg_stat_database_xact_rollback{node_name=~\"$node_name\",environment=~\"$environment\"}[5m])))\n))",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "__auto",
+ "refId": "F"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(sum by(service_name)(max_over_time(mysql_global_status_threads_connected{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) or \nlabel_replace(mysql_global_status_threads_connected{node_name=~\"$node_name\",node_type=\"remote\",environment=~\"$environment\"},\"node_name\",\"pmm-server\",\"\",\"\") or\nmax_over_time(mongodb_connections{node_name=~\"$node_name\",state=\"current\",environment=~\"$environment\"}[$interval]) or\nsum by (service_name) (max_over_time(pg_stat_database_numbackends{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]))))",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "__auto",
+ "refId": "E"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "((clamp_max(avg by (node_name) (sum by (node_name,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) *100 or\nsum by (node_name) (avg_over_time(node_cpu_average{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"total\"}[$interval]) or avg_over_time(node_cpu_average{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"total\"}[5m]))) * on(node_name) group_left(environment, service_name) avg by (node_name, service_name, environment) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"}))",
+ "format": "table",
+ "hide": true,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "{{instance}}",
+ "refId": "H"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "min by (service_name) (mysql_global_status_uptime{node_name=~\"$node_name\",environment=~\"$environment\"} or \nmongodb_instance_uptime_seconds {node_name=~\"$node_name\",environment=~\"$environment\"} or \n(time() - process_start_time_seconds{node_name=~\"$node_name\",job=~\"postgres_exporter.*\",environment=~\"$environment\"}))",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "DB Uptime",
+ "refId": "G"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(((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\"} or\n(rdsosmetrics_memory_free{node_name=~\"$node_name\"} + rdsosmetrics_memory_buffers{node_name=~\"$node_name\"} + rdsosmetrics_memory_cached{node_name=~\"$node_name\"})/ rdsosmetrics_memory_total{node_name=~\"$node_name\"}) * 100) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Memory Available",
+ "refId": "I"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(sum by (node_name) (rate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[$interval]) or irate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[5m]) or sum by (node_name) (max_over_time(rdsosmetrics_diskIO_readKbPS{node_name=~\"$node_name\"}[$interval]) or max_over_time(rdsosmetrics_diskIO_readKbPS{node_name=~\"$node_name\"}[5m]))) * 1024) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Disk Reads",
+ "refId": "J"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(sum by (node_name) (rate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[$interval]) or irate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[5m]) or\nsum by (node_name) (max_over_time(rdsosmetrics_diskIO_writeKbPS{node_name=~\"$node_name\"}[$interval]) or max_over_time(rdsosmetrics_diskIO_writeKbPS{node_name=~\"$node_name\"}[5m]))) * 1024) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Disk Writes",
+ "refId": "L"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "((sum by (node_name) (rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval]) or\nirate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or \nsum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or \nsum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[5m]))) + \n(sum by (node_name) (rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval]) or \nirate(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 \nsum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[5m])))) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Network IO",
+ "refId": "M"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "((count by (node_name) (node_cpu_seconds_total{node_name=~\"$node_name\",mode=~\"user\"}) or (1-absent(node_cpu_seconds_total{node_name=~\"$node_name\",mode=~\"user\"}))) + \nsum by (node_name) (rdsosmetrics_General_numVCPUs{node_name=~\"$node_name\"} or up * 0)) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "Virtual CPU",
+ "refId": "N"
+ },
+ {
+ "datasource": "Metrics",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "(node_memory_MemTotal_bytes{node_name=~\"$node_name\"} or (rdsosmetrics_memory_total{node_name=~\"$node_name\"}*1024)) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"}) ",
+ "format": "table",
+ "hide": false,
+ "instant": true,
+ "interval": "$interval",
+ "legendFormat": "RAM",
+ "refId": "O"
+ }
+ ],
+ "transformations": [
+ {
+ "id": "merge",
+ "options": {}
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "Time": true,
+ "agent_id": true,
+ "agent_type": true,
+ "az": true,
+ "env": true,
+ "environment": false,
+ "instance": true,
+ "job": true,
+ "machine_id": true,
+ "node_id": true,
+ "node_name": true,
+ "node_type": true
+ },
+ "indexByName": {
+ "Time": 0,
+ "Value #A": 2,
+ "Value #E": 8,
+ "Value #F": 7,
+ "Value #G": 9,
+ "Value #I": 18,
+ "Value #J": 19,
+ "Value #L": 20,
+ "Value #M": 21,
+ "Value #N": 22,
+ "agent_id": 10,
+ "agent_type": 11,
+ "az": 5,
+ "env": 4,
+ "environment": 3,
+ "instance": 12,
+ "job": 13,
+ "machine_id": 17,
+ "node_id": 14,
+ "node_name": 15,
+ "node_type": 16,
+ "region": 6,
+ "service_name": 1
+ },
+ "renameByName": {}
}
- ]
- }
- ]
- },
- "gridPos": {
- "h": 11,
- "w": 24,
- "x": 0,
- "y": 51
- },
- "id": 1052,
- "options": {
- "footer": {
- "fields": ["Value #A"],
- "reducer": ["count"],
- "show": true
- },
- "showHeader": true
- },
- "pluginVersion": "9.2.13",
+ }
+ ],
+ "type": "table"
+ }
+ ],
"targets": [
{
"datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "min by (service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "__auto",
"refId": "A"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "(sum by (service_name) (\n(rate(mysql_global_status_queries{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) or \nirate(mysql_global_status_queries{node_name=~\"$node_name\",environment=~\"$environment\"}[5m])) or \n(sum by (service_name) (rate(mongodb_op_counters_total{node_name=~\"$node_name\",type!=\"command\",environment=~\"$environment\"}[$interval])) or \nsum by (service_name) (irate(mongodb_op_counters_total{node_name=~\"$node_name\",type!=\"command\",environment=~\"$environment\"}[5m]))) or\n(sum by (service_name) (rate(pg_stat_database_xact_commit{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) + \nrate(pg_stat_database_xact_rollback{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval])) or\nsum by (service_name) (irate(pg_stat_database_xact_commit{node_name=~\"$node_name\",environment=~\"$environment\"}[5m]) + \nirate(pg_stat_database_xact_rollback{node_name=~\"$node_name\",environment=~\"$environment\"}[5m])))\n))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "__auto",
- "refId": "F"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "(sum by(service_name)(max_over_time(mysql_global_status_threads_connected{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]) or \nlabel_replace(mysql_global_status_threads_connected{node_name=~\"$node_name\",node_type=\"remote\",environment=~\"$environment\"},\"node_name\",\"pmm-server\",\"\",\"\") or\nmax_over_time(mongodb_connections{node_name=~\"$node_name\",state=\"current\",environment=~\"$environment\"}[$interval]) or\nsum by (service_name) (max_over_time(pg_stat_database_numbackends{node_name=~\"$node_name\",environment=~\"$environment\"}[$interval]))))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "__auto",
- "refId": "E"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((clamp_max(avg by (node_name) (sum by (node_name,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) *100 or\nsum by (node_name) (avg_over_time(node_cpu_average{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"total\"}[$interval]) or avg_over_time(node_cpu_average{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"total\"}[5m]))) * on(node_name) group_left(environment, service_name) avg by (node_name, service_name, environment) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr-.*|^external.*\",environment=~\"$environment\"}))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "{{instance}}",
- "refId": "H"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "min by (service_name) (mysql_global_status_uptime{node_name=~\"$node_name\",environment=~\"$environment\"} or \nmongodb_instance_uptime_seconds {node_name=~\"$node_name\",environment=~\"$environment\"} or \n(time() - process_start_time_seconds{node_name=~\"$node_name\",job=~\"postgres_exporter.*\",environment=~\"$environment\"}))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "DB Uptime",
- "refId": "G"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "(((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\"} or\n(rdsosmetrics_memory_free{node_name=~\"$node_name\"} + rdsosmetrics_memory_buffers{node_name=~\"$node_name\"} + rdsosmetrics_memory_cached{node_name=~\"$node_name\"})/ rdsosmetrics_memory_total{node_name=~\"$node_name\"}) * 100) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Memory Available",
- "refId": "I"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((rate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[$interval]) or irate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[5m]) or sum by (node_name) (max_over_time(rdsosmetrics_diskIO_readKbPS{node_name=~\"$node_name\"}[$interval]) or max_over_time(rdsosmetrics_diskIO_readKbPS{node_name=~\"$node_name\"}[5m]))) * 1024) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Disk Reads",
- "refId": "J"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((rate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[$interval]) or irate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[5m]) or\nsum by (node_name) (max_over_time(rdsosmetrics_diskIO_writeKbPS{node_name=~\"$node_name\"}[$interval]) or max_over_time(rdsosmetrics_diskIO_writeKbPS{node_name=~\"$node_name\"}[5m]))) * 1024) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Disk Writes",
- "refId": "L"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((sum by (node_name) (rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval]) or\nirate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or \nsum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or \nsum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[5m]))) + \n(sum by (node_name) (rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval]) or \nirate(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 \nsum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[5m])))) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Network IO",
- "refId": "M"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "((count by (node_name) (node_cpu_seconds_total{node_name=~\"$node_name\",mode=~\"user\"}) or (1-absent(node_cpu_seconds_total{node_name=~\"$node_name\",mode=~\"user\"}))) + \nsum by (node_name) (rdsosmetrics_General_numVCPUs{node_name=~\"$node_name\"} or up * 0)) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"})",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "$interval",
- "legendFormat": "Virtual CPU",
- "refId": "N"
- },
- {
- "datasource": "Metrics",
- "editorMode": "code",
- "exemplar": false,
- "expr": "(node_memory_MemTotal_bytes{node_name=~\"$node_name\"} or (rdsosmetrics_memory_total{node_name=~\"$node_name\"}*1024)) * on(node_name) group_left(environment,service_name) (up{node_name=~\"$node_name\",service_type=~\"mysql|mongodb|postgresql|proxysql|haproxy|external\",job=~\".*_hr$|^external.*\",environment=~\"$environment\"}) ",
- "format": "table",
- "instant": true,
- "interval": "$interval",
- "legendFormat": "RAM",
- "refId": "O"
}
],
- "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
- },
- "indexByName": {},
- "renameByName": {}
- }
- }
- ],
- "type": "table"
+ "title": "Service Summary",
+ "type": "row"
}
],
"refresh": "1m",
@@ -4509,6 +4576,6 @@
"timezone": "",
"title": "Home Dashboard",
"uid": "pmm-home",
- "version": 2,
+ "version": 1,
"weekStart": ""
}