Skip to content

Commit

Permalink
PMM-13183 Update discrete to state timeline panel (#1612) (#1616)
Browse files Browse the repository at this point in the history
* PMM-13183 Update discrete to state timeline panel

* PMM-13183 fix hight and id

* PMM-13183 Trigger checks

* PMM-13183 Fix typo
  • Loading branch information
YashSartanpara1 authored Jul 17, 2024
1 parent 2e722b7 commit 7d7d299
Showing 1 changed file with 115 additions and 140 deletions.
255 changes: 115 additions & 140 deletions dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
Expand Down

0 comments on commit 7d7d299

Please sign in to comment.