Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-13360 show node down #1639

Merged
merged 6 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 122 additions & 8 deletions dashboards/MongoDB/MongoDB_Cluster_Summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,8 @@
"options": {
"0": {
"index": 11,
"text": "STARTUP"
"text": "STARTUP",
"color": "semi-dark-red"
},
"1": {
"color": "rgb(107, 152, 102)",
Expand All @@ -1569,15 +1570,18 @@
},
"3": {
"index": 10,
"text": "RECOVERING"
"text": "RECOVERING",
"color": "semi-dark-red"
},
"5": {
"index": 9,
"text": "STARTUP2"
"text": "STARTUP2",
"color": "semi-dark-red"
},
"6": {
"index": 8,
"text": "UNKNOWN"
"text": "UNKNOWN",
"color": "semi-dark-red"
},
"7": {
"color": "#8B8000",
Expand All @@ -1586,15 +1590,18 @@
},
"8": {
"index": 7,
"text": "DOWN"
"text": "DOWN",
"color": "semi-dark-red"
},
"9": {
"index": 6,
"text": "ROLLBACK"
"text": "ROLLBACK",
"color": "semi-dark-red"
},
"10": {
"index": 5,
"text": "REMOVED"
"text": "REMOVED",
"color": "semi-dark-red"
},
"null": {
"color": "#FF7383",
Expand Down Expand Up @@ -1658,7 +1665,7 @@
"targets": [
{
"editorMode": "code",
"expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\",service_name=~\"$service_name\"})",
"expr": "min by (member_idx) (mongodb_rs_members_state{environment=~\"$environment\",cluster=~\"$cluster\",rs_nm=~\"$set\",service_name=~\"$service_name\"})",
"hide": false,
"interval": "$interval",
"legendFormat": "{{service_name}}",
Expand Down Expand Up @@ -2812,6 +2819,113 @@
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"decimals": 2,
"description": "The average amount of data in GB that the PRIMARY generate per hour",
matejkubinec marked this conversation as resolved.
Show resolved Hide resolved
"editable": true,
matejkubinec marked this conversation as resolved.
Show resolved Hide resolved
"error": false,
"fill": 2,
"fillGradient": 0,
"grid": {
"leftLogBase": 1,
"leftMin": 0,
"rightLogBase": 1
},
"gridPos": {
"h": 8,
"w": 8,
"x": 0,
"y": 103
},
"hiddenSeries": false,
"id": 1299,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"show": true,
"sort": "avg",
"sortDesc": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
"pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "service_name",
"repeatDirection": "h",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": "Metrics",
"editorMode": "code",
"exemplar": true,
"expr": "sum(increase(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{service_name=~\"$service_name\"}[1h]))",
"interval": "$interval",
"legendFormat": "{{service_name}}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Oplog GB/Hour",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 5,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"y-axis": true,
"y_formats": [
"ms",
"short"
],
"yaxes": [
{
"decimals": 2,
"format": "bytes",
"label": "",
"logBase": 1,
"min": 0,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
}
],
"refresh": false,
Expand Down
142 changes: 130 additions & 12 deletions dashboards/MongoDB/MongoDB_ReplSet_Summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,8 @@
"options": {
"0": {
"index": 11,
"text": "STARTUP"
"text": "STARTUP",
"color": "semi-dark-red"
},
"1": {
"color": "rgb(107, 152, 102)",
Expand All @@ -1035,15 +1036,18 @@
},
"3": {
"index": 10,
"text": "RECOVERING"
"text": "RECOVERING",
"color": "semi-dark-red"
},
"5": {
"index": 9,
"text": "STARTUP2"
"text": "STARTUP2",
"color": "semi-dark-red"
},
"6": {
"index": 8,
"text": "UNKNOWN"
"text": "UNKNOWN",
"color": "semi-dark-red"
},
"7": {
"color": "#8B8000",
Expand All @@ -1052,15 +1056,18 @@
},
"8": {
"index": 7,
"text": "DOWN"
"text": "DOWN",
"color": "semi-dark-red"
},
"9": {
"index": 6,
"text": "ROLLBACK"
"text": "ROLLBACK",
"color": "semi-dark-red"
},
"10": {
"index": 5,
"text": "REMOVED"
"text": "REMOVED",
"color": "semi-dark-red"
},
"null": {
"color": "#FF7383",
Expand Down Expand Up @@ -1125,7 +1132,7 @@
"targets": [
{
"editorMode": "code",
"expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})",
"expr": "min by (member_idx) (mongodb_rs_members_state{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\", service_name=~\"$service_name\"})",
"interval": "$interval",
"legendFormat": "{{set}}",
"range": true,
Expand Down Expand Up @@ -2063,8 +2070,7 @@
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
"color": "red"
}
]
},
Expand Down Expand Up @@ -2221,8 +2227,7 @@
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
"color": "red"
}
]
}
Expand Down Expand Up @@ -2608,6 +2613,119 @@
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"decimals": 2,
"description": "The average amount of data in GB that the PRIMARY generate per hour",
"editable": true,
matejkubinec marked this conversation as resolved.
Show resolved Hide resolved
"error": false,
"fieldConfig": {
"defaults": {
"unit": "bytes"
},
"overrides": []
},
"fill": 2,
"fillGradient": 0,
"grid": {
"leftLogBase": 1,
"leftMin": 0,
"rightLogBase": 1
},
"gridPos": {
"h": 7,
"w": 8,
"x": 0,
"y": 64
},
"hiddenSeries": false,
"id": 1614,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"show": true,
"sort": "avg",
"sortDesc": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"paceLength": 10,
"percentage": false,
"pluginVersion": "9.2.20",
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "service_name",
"repeatDirection": "h",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": "Metrics",
"editorMode": "code",
"exemplar": true,
"expr": "sum(increase(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{service_name=~\"$service_name\"}[1h]))",
"interval": "$interval",
"legendFormat": "{{service_name}}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Oplog GB/Hour",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 5,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"y-axis": true,
"y_formats": [
"ms",
"short"
],
"yaxes": [
{
"decimals": 2,
"format": "bytes",
"label": "",
"logBase": 1,
"min": 0,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
}
],
"title": "Replication",
Expand Down
Loading