Add availability dashboard row

including a panel with the prewarming poolsize and the idle runner count.
This commit is contained in:
Maximilian Paß
2022-05-24 21:37:04 +02:00
parent ff3ec9e362
commit eafc01e69a

View File

@@ -22,12 +22,12 @@
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 13, "id": 13,
"iteration": 1653418538534, "iteration": 1653418538550,
"links": [], "links": [],
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"collapsed": false, "collapsed": true,
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
@@ -35,10 +35,7 @@
"y": 0 "y": 0
}, },
"id": 25, "id": 25,
"panels": [], "panels": [
"title": "General",
"type": "row"
},
{ {
"cards": {}, "cards": {},
"color": { "color": {
@@ -490,20 +487,21 @@
], ],
"title": "Executions per minute", "title": "Executions per minute",
"type": "bargauge" "type": "bargauge"
}
],
"title": "General",
"type": "row"
}, },
{ {
"collapsed": false, "collapsed": true,
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 21 "y": 1
}, },
"id": 23, "id": 23,
"panels": [], "panels": [
"title": "Runner Insights",
"type": "row"
},
{ {
"cards": {}, "cards": {},
"color": { "color": {
@@ -523,7 +521,7 @@
"h": 10, "h": 10,
"w": 10, "w": 10,
"x": 0, "x": 0,
"y": 22 "y": 2
}, },
"heatmap": {}, "heatmap": {},
"hideZeroBuckets": false, "hideZeroBuckets": false,
@@ -589,7 +587,7 @@
"h": 7, "h": 7,
"w": 4, "w": 4,
"x": 10, "x": 10,
"y": 22 "y": 2
}, },
"id": 18, "id": 18,
"options": { "options": {
@@ -679,7 +677,7 @@
"h": 10, "h": 10,
"w": 10, "w": 10,
"x": 14, "x": 14,
"y": 22 "y": 2
}, },
"id": 21, "id": 21,
"options": { "options": {
@@ -735,7 +733,7 @@
"h": 6, "h": 6,
"w": 4, "w": 4,
"x": 10, "x": 10,
"y": 29 "y": 9
}, },
"id": 31, "id": 31,
"options": { "options": {
@@ -783,7 +781,7 @@
"h": 10, "h": 10,
"w": 10, "w": 10,
"x": 0, "x": 0,
"y": 32 "y": 12
}, },
"heatmap": {}, "heatmap": {},
"hideZeroBuckets": false, "hideZeroBuckets": false,
@@ -881,7 +879,7 @@
"h": 10, "h": 10,
"w": 10, "w": 10,
"x": 14, "x": 14,
"y": 32 "y": 12
}, },
"id": 30, "id": 30,
"options": { "options": {
@@ -910,6 +908,112 @@
"type": "timeseries" "type": "timeseries"
} }
], ],
"title": "Runner Insights",
"type": "row"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 2
},
"id": 36,
"panels": [],
"title": "Availability",
"type": "row"
},
{
"datasource": {
"type": "influxdb",
"uid": "cMBTRmQnz"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 3
},
"id": 34,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.4.6",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "cMBTRmQnz"
},
"query": "from(bucket: \"poseidon/autogen\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_field\"] == \"idle_runner\" or r[\"_field\"] == \"prewarming_pool_size\")\n |> filter(fn: (r) => contains(value: r[\"environment_id\"], set: ${environment_ids:json}))\n |> filter(fn: (r) => contains(value: r[\"status\"], set: ${status_codes:json}))\n |> keep(columns: [\"_field\", \"_value\", \"_time\", \"environment_id\"])\n |> aggregateWindow(every: duration(v: int(v: v.windowPeriod) * 10), fn: mean)\n",
"refId": "A"
}
],
"title": "Prewarming Poolsize and idle Runner",
"type": "timeseries"
}
],
"refresh": "5m", "refresh": "5m",
"schemaVersion": 35, "schemaVersion": 35,
"style": "dark", "style": "dark",
@@ -918,14 +1022,12 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": false, "selected": true,
"text": [ "text": [
"10", "All"
"32"
], ],
"value": [ "value": [
"10", "$__all"
"32"
] ]
}, },
"datasource": { "datasource": {
@@ -949,7 +1051,7 @@
}, },
{ {
"current": { "current": {
"selected": false, "selected": true,
"text": [ "text": [
"All" "All"
], ],
@@ -986,6 +1088,6 @@
"timezone": "", "timezone": "",
"title": "Poseidon", "title": "Poseidon",
"uid": "hQRzR1Qnz", "uid": "hQRzR1Qnz",
"version": 15, "version": 16,
"weekStart": "" "weekStart": ""
} }