From 80302f1c99bdfc3d008404620a9addc7a659f458 Mon Sep 17 00:00:00 2001 From: Yash Sartanpara Date: Mon, 18 Nov 2024 14:53:46 +0530 Subject: [PATCH 1/2] PMM-13360 Update query to show node is down --- .../MongoDB/MongoDB_Cluster_Summary.json | 23 ++++++++++++------- .../MongoDB/MongoDB_ReplSet_Summary.json | 23 ++++++++++++------- 2 files changed, 30 insertions(+), 16 deletions(-) diff --git a/dashboards/MongoDB/MongoDB_Cluster_Summary.json b/dashboards/MongoDB/MongoDB_Cluster_Summary.json index a703128f6f..e906843062 100644 --- a/dashboards/MongoDB/MongoDB_Cluster_Summary.json +++ b/dashboards/MongoDB/MongoDB_Cluster_Summary.json @@ -2106,7 +2106,8 @@ "options": { "0": { "index": 11, - "text": "STARTUP" + "text": "STARTUP", + "color": "semi-dark-red" }, "1": { "color": "rgb(107, 152, 102)", @@ -2120,15 +2121,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", @@ -2137,15 +2141,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", @@ -2210,7 +2217,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}}", diff --git a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json index 36cd2e6eab..424476cd90 100644 --- a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json +++ b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json @@ -1021,7 +1021,8 @@ "options": { "0": { "index": 11, - "text": "STARTUP" + "text": "STARTUP", + "color": "semi-dark-red" }, "1": { "color": "rgb(107, 152, 102)", @@ -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", @@ -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", @@ -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, From 44c68a372825791386576fb8a143a96a08569ad3 Mon Sep 17 00:00:00 2001 From: Matej Kubinec Date: Fri, 4 Apr 2025 09:45:59 +0200 Subject: [PATCH 2/2] PMM-13360 Bump workflow actions --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 084c2d1674..637ef35126 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: run: make build_package - name: Upload the build artefacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-dist path: pmm-app/dist/ @@ -67,7 +67,7 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_GRAFANA_DASHBOARDS_TOKEN }} - name: Download built packages - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-dist path: pmm-app/dist/