Skip to content

Commit

Permalink
PMM-12802 replace discrete plugin with timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
YashSartanpara1 committed Jan 18, 2024
1 parent 1393b4f commit 4ab5a9e
Show file tree
Hide file tree
Showing 8 changed files with 826 additions and 1,130 deletions.
175 changes: 74 additions & 101 deletions dashboards/Insight/VictoriaMetrics_Agents_Overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,55 +533,14 @@
"type": "stat"
},
{
"backgroundColor": "rgba(128,128,128,0.1)",
"colorMaps": [
{
"$$hashKey": "object:1695",
"color": "#E02F44",
"text": "DOWN"
},
{
"$$hashKey": "object:1698",
"color": "#56A64B",
"text": "UP"
}
],
"crosshairColor": "#8F070C",
"datasource": {
"uid": "$ds"
},
"display": "timeline",
"expandFromQueryS": 0,
"extendLastValue": true,
"gridPos": {
"h": 8,
"w": 16,
"x": 8,
"y": 4
},
"highlightOnMouseover": true,
"id": 13,
"legendSortBy": "-ms",
"lineColor": "rgba(0,0,0,0.1)",
"metricNameColor": "#000000",
"pluginVersion": "7.1.3",
"rangeMaps": [
{
"$$hashKey": "object:1642",
"from": "null",
"text": "N/A",
"to": "null"
}
],
"rowHeight": 50,
"showDistinctCount": false,
"showLegend": true,
"showLegendCounts": false,
"showLegendNames": true,
"showLegendPercent": true,
"showLegendTime": false,
"showLegendValues": true,
"showTimeAxis": true,
"targets": [
{
"expr": "sum(up{node_name=~\"$node_name\",agent_type=\"vmagent\"} offset 3s) by (node_name)",
Expand All @@ -592,70 +551,84 @@
"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"
"title": "Uptime",
"type": "state-timeline",
"options": {
"mergeValues": true,
"showValue": "always",
"alignValue": "right",
"rowHeight": 0.9,
"legend": {
"showLegend": true,
"displayMode": "list",
"placement": "bottom"
},
{
"name": "Milliseconds",
"value": "milliseconds"
"tooltip": {
"mode": "single",
"sort": "none"
}
],
"timePrecision": {
"name": "Minutes",
"value": "minutes"
},
"timeTextColor": "#d8d9da",
"title": "Uptime",
"type": "natel-discrete-panel",
"units": "short",
"use12HourClock": false,
"useTimePrecision": true,
"valueMaps": [
{
"$$hashKey": "object:1640",
"op": "=",
"text": "DOWN",
"value": "null"
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 0,
"fillOpacity": 100,
"spanNulls": true,
"insertNulls": false,
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
}
},
"color": {
"mode": "palette-classic"
},
"mappings": [
{
"type": "value",
"options": {
"1": {
"color": "#56A64B",
"text": "UP",
"index": 1
},
"null": {
"color": "#E02F44",
"text": "DOWN",
"index": 2
}
}
},
{
"type": "range",
"options": {
"from": null,
"to": null,
"result": {
"text": "N/A",
"index": 0
}
}
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": null,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"unit": "short"
},
{
"$$hashKey": "object:1644",
"op": "=",
"text": "UP",
"value": "1"
}
],
"valueTextColor": "#000000",
"writeAllValues": true,
"writeLastValue": true,
"writeMetricNames": true
"overrides": []
}
},
{
"aliasColors": {},
Expand Down
156 changes: 74 additions & 82 deletions dashboards/MongoDB/MongoDB_Cluster_Summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -1025,17 +1025,21 @@
"type": "stat"
},
{
"id": 1229,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a",
"#4040a0"
],
"description": "Config services store the metadata for a sharded cluster. The metadata reflects state and organization for all data and components within the sharded cluster. The metadata includes the list of chunks on every shard and the ranges that define the chunks.",
"gridPos": {
"h": 5,
"w": 12,
"x": 0,
"y": 13
},
"type": "grafana-polystat-panel",
"title": "QPS of Config Services",
"repeatDirection": "v",
"description": "Config services store the metadata for a sharded cluster. The metadata reflects state and organization for all data and components within the sharded cluster. The metadata includes the list of chunks on every shard and the ranges that define the chunks.",
"id": 1229,
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
Expand All @@ -1047,6 +1051,60 @@
}
],
"nullPointMode": "connected",
"polystat": {
"animationSpeed": 2500,
"columnAutoSize": true,
"columns": "",
"defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}",
"defaultClickThroughNewTab": true,
"defaultClickThroughSanitize": true,
"displayLimit": 100,
"ellipseCharacters": 18,
"ellipseEnabled": false,
"fontAutoColor": false,
"fontAutoScale": true,
"fontSize": 12,
"fontType": "Roboto",
"globalDecimals": 0,
"globalDisplayMode": "all",
"globalDisplayTextTriggeredEmpty": "OK",
"globalOperatorName": "current",
"globalUnitFormat": "ops",
"gradientEnabled": true,
"hexagonSortByDirection": 1,
"hexagonSortByField": "name",
"maxMetrics": 0,
"polygonBorderColor": "black",
"polygonBorderSize": 2,
"polygonGlobalFillColor": "#8F3BB8",
"radius": "",
"radiusAutoSize": true,
"regexPattern": "",
"rowAutoSize": true,
"rows": "",
"shape": "hexagon_pointed_top",
"tooltipDisplayMode": "all",
"tooltipDisplayTextTriggeredEmpty": "OK",
"tooltipEnabled": true,
"tooltipFontSize": 12,
"tooltipFontType": "Roboto",
"tooltipPrimarySortDirection": 2,
"tooltipPrimarySortField": "thresholdLevel",
"tooltipSecondarySortDirection": 2,
"tooltipSecondarySortField": "name",
"tooltipTimestampEnabled": true,
"valueEnabled": true
},
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"repeatDirection": "v",
"savedComposites": [],
"savedOverrides": [],
"targets": [
{
"expr": "sum by (service_name) (mongodb_connections{cluster=\"$cluster\", state=\"current\"} * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))",
Expand All @@ -1064,81 +1122,15 @@
"refId": "B"
}
],
"options": {
"autoSizeColumns": true,
"layoutNumColumns": 8,
"autoSizeRows": true,
"layoutNumRows": 8,
"layoutDisplayLimit": 100,
"autoSizePolygons": true,
"globalPolygonSize": 50,
"globalPolygonBorderSize": 2,
"globalTextFontFamily": "Roboto",
"globalAutoScaleFonts": true,
"globalFontSize": 12,
"globalTextFontAutoColorEnabled": true,
"globalTextFontColor": "#000000",
"ellipseEnabled": false,
"ellipseCharacters": 18,
"sortByDirection": 1,
"sortByField": "name",
"globalTooltipsEnabled": true,
"globalTooltipsFontFamily": "Roboto",
"globalTooltipsShowTimestampEnabled": true,
"globalShowTooltipColumnHeadersEnabled": true,
"tooltipDisplayMode": "all",
"tooltipDisplayTextTriggeredEmpty": "No Data",
"tooltipPrimarySortDirection": 2,
"tooltipPrimarySortByField": "thresholdLevel",
"tooltipSecondarySortDirection": 2,
"tooltipSecondarySortByField": "name",
"globalDisplayMode": "all",
"globalDisplayTextTriggeredEmpty": "No Data",
"globalShowValueEnabled": true,
"globalShape": "hexagon_pointed_top",
"globalGradientsEnabled": true,
"globalFillColor": "#8F3BB8",
"globalPolygonBorderColor": "black",
"globalUnitFormat": "ops",
"globalOperator": "last",
"globalDecimals": 2,
"globalThresholdsConfig": [],
"globalClickthrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}",
"globalClickthroughSanitizedEnabled": true,
"globalClickthroughNewTabEnabled": true,
"globalClickthroughCustomTargetEnabled": false,
"globalClickthroughCustomTarget": "",
"globalRegexPattern": "",
"overrideConfig": {
"overrides": []
},
"compositeGlobalAliasingEnabled": false,
"compositeConfig": {
"composites": [],
"enabled": true,
"animationSpeed": "2500"
},
"globalTextFontAutoColor": "#000000",
"panelId": 0,
"radius": 100
},
"fieldConfig": {
"defaults": {
"mappings": [
{
"type": "special",
"options": {
"match": "null",
"result": {
"text": "N/A"
}
}
}
]
},
"overrides": []
},
"pluginVersion": "2.1.5"
"title": "QPS of Config Services",
"type": "grafana-polystat-panel",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
]
},
{
"colors": [
Expand Down Expand Up @@ -1177,7 +1169,7 @@
"displayLimit": 100,
"ellipseCharacters": 18,
"ellipseEnabled": false,
"fontAutoColor": true,
"fontAutoColor": false,
"fontAutoScale": true,
"fontSize": 12,
"fontType": "Roboto",
Expand Down Expand Up @@ -1300,7 +1292,7 @@
"displayLimit": 100,
"ellipseCharacters": 18,
"ellipseEnabled": false,
"fontAutoColor": true,
"fontAutoColor": false,
"fontAutoScale": true,
"fontSize": 12,
"fontType": "Roboto",
Expand Down
Loading

0 comments on commit 4ab5a9e

Please sign in to comment.