Last active
February 24, 2025 19:06
-
-
Save kkroesch/8c3c6046d7678d9c1aa6fb1be68482ba to your computer and use it in GitHub Desktop.
Grafana Uptime Panel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"datasource": { | |
"uid": "bc2d6911-2640-41d7-a568-5cc56f6c2b37", | |
"type": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"mappings": [] | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 0 | |
}, | |
"id": 1, | |
"options": { | |
"autoSizeColumns": true, | |
"layoutNumColumns": 8, | |
"autoSizeRows": true, | |
"layoutNumRows": 8, | |
"layoutDisplayLimit": 100, | |
"autoSizePolygons": true, | |
"globalPolygonSize": 25, | |
"globalPolygonBorderSize": 2, | |
"globalTextFontFamily": "Inter", | |
"globalAutoScaleFonts": true, | |
"globalFontSize": 12, | |
"globalTextFontAutoColorEnabled": true, | |
"globalTextFontColor": "#000000", | |
"ellipseEnabled": false, | |
"ellipseCharacters": 18, | |
"sortByDirection": 1, | |
"sortByField": "name", | |
"globalTooltipsEnabled": true, | |
"globalTooltipsFontFamily": "Roboto", | |
"globalTooltipsShowTimestampEnabled": true, | |
"globalTooltipsShowValueEnabled": true, | |
"globalShowTooltipColumnHeadersEnabled": true, | |
"tooltipDisplayMode": "all", | |
"tooltipDisplayTextTriggeredEmpty": "OK", | |
"tooltipPrimarySortDirection": 1, | |
"tooltipPrimarySortByField": "thresholdLevel", | |
"tooltipSecondarySortDirection": 1, | |
"tooltipSecondarySortByField": "value", | |
"globalDisplayMode": "all", | |
"globalDisplayTextTriggeredEmpty": "OK", | |
"globalShowValueEnabled": false, | |
"globalShowTimestampEnabled": false, | |
"globalShowTimestampFormat": "YYYY-MM-DD HH:mm:ss", | |
"globalShowTimestampFontSize": 12, | |
"globalShowTimestampPosition": "below_value", | |
"globalShowTimestampYOffset": 0, | |
"globalShape": "hexagon_pointed_top", | |
"globalGradientsEnabled": true, | |
"globalFillColor": "rgba(10, 85, 161, 1)", | |
"globalPolygonBorderColor": "rgba(0, 0, 0, 0)", | |
"globalUnitFormat": "dtdurations", | |
"globalOperator": "mean", | |
"globalDecimals": 0, | |
"globalThresholdsConfig": [ | |
{ | |
"color": "#f53636", | |
"state": 2, | |
"value": 0 | |
}, | |
{ | |
"color": "#FA6400", | |
"state": 1, | |
"value": 100 | |
}, | |
{ | |
"color": "#299c46", | |
"state": 0, | |
"value": 86400 | |
} | |
], | |
"globalClickthrough": "", | |
"globalClickthroughSanitizedEnabled": true, | |
"globalClickthroughNewTabEnabled": true, | |
"globalClickthroughCustomTargetEnabled": false, | |
"globalClickthroughCustomTarget": "", | |
"globalRegexPattern": "", | |
"overrideConfig": { | |
"overrides": [ | |
{ | |
"label": "Override-0", | |
"enabled": true, | |
"metricName": "", | |
"alias": "", | |
"thresholds": [], | |
"prefix": "", | |
"suffix": "", | |
"clickThrough": "", | |
"clickThroughOpenNewTab": true, | |
"clickThroughSanitize": true, | |
"clickThroughCustomTargetEnabled": false, | |
"clickThroughCustomTarget": "", | |
"showTimestampEnabled": false, | |
"showTimestampFormat": "HH:mm:ss", | |
"showTimestampYOffset": 0, | |
"unitFormat": "short", | |
"scaledDecimals": null, | |
"decimals": "2", | |
"colors": [ | |
"#299c46", | |
"#ed8128", | |
"#f53636", | |
"#0a55a1" | |
], | |
"operatorName": "mean", | |
"order": 0 | |
} | |
] | |
}, | |
"compositeGlobalAliasingEnabled": false, | |
"compositeConfig": { | |
"composites": [], | |
"enabled": true, | |
"animationSpeed": "1500" | |
} | |
}, | |
"pluginVersion": "2.1.14", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bc2d6911-2640-41d7-a568-5cc56f6c2b37" | |
}, | |
"disableTextWrap": false, | |
"editorMode": "code", | |
"expr": "time() - node_boot_time_seconds", | |
"fullMetaSearch": false, | |
"includeNullMetadata": true, | |
"instant": false, | |
"legendFormat": "__auto", | |
"range": true, | |
"refId": "A", | |
"useBackend": false | |
} | |
], | |
"title": "Uptime", | |
"type": "grafana-polystat-panel", | |
"transparent": true, | |
"transformations": [ | |
{ | |
"id": "renameByRegex", | |
"options": { | |
"regex": "^{instance=\"([^:]+):.*$", | |
"renamePattern": "$1" | |
} | |
} | |
], | |
"repeat": null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment