project-config/grafana/nodepool-dib-status.json
Ian Wienand 5c57b07f96 grafana: update nodepool-dib status page
Update this to new panel types and modify layout a bit.  This uses a
variable to map over the stats, rather than the old template model.

This replaces the non-working thresholds that show the "OK"/"FAILED"
with value mappings which should be more reliable.

This also includes a heatmap at the top -- it's a bit weird because
it's mapping the return values of the builds, so can range between
0->128.  The return code value doesn't really help diagnose anything,
but it can highlight if things are failing in the same way (i.e. with
the same return code).

Change-Id: I74822881251c627d8e783438fa82e39aeca5645e
2022-06-30 15:50:41 +10:00

495 lines
11 KiB
JSON

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 31,
"iteration": 1656567616060,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"description": "This shows the Unix return status of the build for each image type. Values may be a bit weird if the buckets merge together, but a non-zero value indicates an error",
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 0
},
"id": 151,
"options": {
"calculate": false,
"cellGap": 1,
"color": {
"exponent": 0.5,
"fill": "dark-orange",
"mode": "scheme",
"scale": "exponential",
"scheme": "Reds",
"steps": 65
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"filterValues": {
"le": 1e-9
},
"legend": {
"show": false
},
"rowsFrame": {
"layout": "auto"
},
"tooltip": {
"show": true,
"yHistogram": false
},
"yAxis": {
"axisPlacement": "left",
"reverse": false
}
},
"pluginVersion": "9.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A",
"target": "aliasByNode(stats.gauges.nodepool.dib_image_build.*.status.rc, 4)"
}
],
"title": "Build Status Overview",
"type": "heatmap-new"
},
{
"collapsed": false,
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 12
},
"id": 7,
"panels": [],
"repeat": "dib_image",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A"
}
],
"title": "$dib_image status",
"type": "row"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "green",
"index": 0,
"text": "OK"
}
},
"type": "value"
},
{
"options": {
"from": 0.01,
"result": {
"color": "red",
"index": 1,
"text": "FAILED"
},
"to": 129
},
"type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 0,
"y": 13
},
"id": 3,
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A",
"target": "stats.gauges.nodepool.dib_image_build.$dib_image.status.rc"
}
],
"title": "Build status",
"type": "stat"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 10,
"x": 4,
"y": 13
},
"id": 5,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A",
"target": "aliasByNode(stats.gauges.nodepool.dib_image_build.$dib_image.*.size, 5)"
}
],
"title": "Image size",
"type": "timeseries"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 10,
"x": 14,
"y": 13
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "9.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A",
"target": "alias(keepLastValue(stats.timers.nodepool.dib_image_build.$dib_image.status.duration.mean), 'Time')"
}
],
"title": "Build duration",
"type": "timeseries"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "dateTimeFromNow"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 0,
"y": 16
},
"id": 4,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A",
"target": "scale(stats.gauges.nodepool.dib_image_build.$dib_image.status.last_build, 1000)"
}
],
"title": "Last build",
"type": "stat"
}
],
"schemaVersion": 36,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"definition": "stats.timers.nodepool.dib_image_build.*",
"hide": 0,
"includeAll": true,
"multi": false,
"name": "dib_image",
"options": [],
"query": "stats.timers.nodepool.dib_image_build.*",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30d",
"to": "now"
},
"timepicker": {},
"timezone": "utc",
"title": "Nodepool: DIB Status",
"uid": "f3089338b3",
"version": 9,
"weekStart": ""
}