From 7d7d29909497836faaa0222c73627d67b1823ae0 Mon Sep 17 00:00:00 2001 From: Yash Sartanpara <119680679+YashSartanpara1@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:35:50 +0530 Subject: [PATCH] PMM-13183 Update discrete to state timeline panel (#1612) (#1616) * PMM-13183 Update discrete to state timeline panel * PMM-13183 fix hight and id * PMM-13183 Trigger checks * PMM-13183 Fix typo --- .../MongoDB_ReplSet_Summary_(New).json | 255 ++++++++---------- 1 file changed, 115 insertions(+), 140 deletions(-) diff --git a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json b/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json index 348236fe06..8964e8f5b9 100644 --- a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json +++ b/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json @@ -924,50 +924,127 @@ "type": "row" }, { - "backgroundColor": "rgba(128,128,128,0.1)", - "colorMaps": [ - { - "color": "rgb(107, 152, 102)", - "text": "PRIMARY" - }, - { - "color": "rgb(193, 159, 20)", - "text": "SECONDARY" - } - ], - "crosshairColor": "#8F070C", - "description": "Read more about [Replica Set Member States](https://docs.mongodb.com/manual/reference/replica-states/).", - "display": "timeline", - "expandFromQueryS": 0, - "extendLastValue": true, + "id": null, "gridPos": { "h": 6, "w": 24, "x": 0, "y": 17 }, - "highlightOnMouseover": true, - "id": 1018, - "legendSortBy": "-ms", - "lineColor": "rgba(0,0,0,0.1)", - "metricNameColor": "#000000", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" + "type": "state-timeline", + "title": "ReplSet States", + "transformations": [], + "pluginVersion": "6.5.1", + "description": "ReplSet statuses during the selected time range.", + "fieldConfig": { + "defaults": { + "custom": { + "lineWidth": 0, + "fillOpacity": 100, + "spanNulls": false + }, + "color": { + "mode": "palette-classic", + "fixedColor": "blue" + }, + "mappings": [ + { + "type": "value", + "options": { + "0": { + "index": 11, + "text": "STARTUP" + }, + "1": { + "color": "rgb(107, 152, 102)", + "index": 4, + "text": "PRIMARY" + }, + "2": { + "color": "rgb(193, 159, 20)", + "index": 3, + "text": "SECONDARY" + }, + "3": { + "index": 10, + "text": "RECOVERING" + }, + "5": { + "index": 9, + "text": "STARTUP2" + }, + "6": { + "index": 8, + "text": "UNKNOWN" + }, + "7": { + "color": "#8B8000", + "index": 1, + "text": "ARBITER" + }, + "8": { + "index": 7, + "text": "DOWN" + }, + "9": { + "index": 6, + "text": "ROLLBACK" + }, + "10": { + "index": 5, + "text": "REMOVED" + }, + "null": { + "color": "#FF7383", + "index": 2, + "text": "Exporter is not connected" + } + } + }, + { + "type": "range", + "options": { + "from": 0, + "to": 1, + "result": { + "index": 0, + "text": "N/A" + } + } + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 6 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "options": { + "mergeValues": true, + "showValue": "auto", + "alignValue": "right", + "rowHeight": 0.9, + "legend": { + "showLegend": true, + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" } - ], - "rowHeight": 50, - "showDistinctCount": false, - "showLegend": true, - "showLegendCounts": false, - "showLegendNames": true, - "showLegendPercent": true, - "showLegendTime": true, - "showLegendValues": true, - "showTimeAxis": true, - "showTransitionCount": false, + }, "targets": [ { "editorMode": "code", @@ -977,109 +1054,7 @@ "range": true, "refId": "A" } - ], - "textSize": 24, - "textSizeTime": 12, - "timeOptions": [ - { - "name": "Years", - "value": "years" - }, - { - "name": "Months", - "value": "months" - }, - { - "name": "Weeks", - "value": "weeks" - }, - { - "name": "Days", - "value": "days" - }, - { - "name": "Hours", - "value": "hours" - }, - { - "name": "Minutes", - "value": "minutes" - }, - { - "name": "Seconds", - "value": "seconds" - }, - { - "name": "Milliseconds", - "value": "milliseconds" - } - ], - "timePrecision": { - "name": "Minutes", - "value": "minutes" - }, - "timeTextColor": "#d8d9da", - "title": "$service_name states", - "type": "natel-discrete-panel", - "units": "short", - "use12HourClock": false, - "useTimePrecision": false, - "valueMaps": [ - { - "op": "=", - "text": "PRIMARY", - "value": "1" - }, - { - "op": "=", - "text": "SECONDARY", - "value": "2" - }, - { - "op": "=", - "text": "STARTUP", - "value": "0" - }, - { - "op": "=", - "text": "RECOVERING", - "value": "3" - }, - { - "op": "=", - "text": "STARTUP2", - "value": "5" - }, - { - "op": "=", - "text": "UNKNOWN", - "value": "6" - }, - { - "op": "=", - "text": "ARBITER", - "value": "7" - }, - { - "op": "=", - "text": "DOWN", - "value": "8" - }, - { - "op": "=", - "text": "ROLLBACK", - "value": "9" - }, - { - "op": "=", - "text": "REMOVED", - "value": "10" - } - ], - "valueTextColor": "#000000", - "writeAllValues": false, - "writeLastValue": true, - "writeMetricNames": false + ] }, { "collapsed": true,