templates/dashboards: remove active worker count
It's misleading since it counts the amount of workers that have registered to the current composer pods, it doesn't actually keep track of the active workers. Remove it and keep the worker-api stats as a proxy for active workers.
This commit is contained in:
parent
fedbd72d57
commit
55439fc6d3
1 changed files with 23 additions and 222 deletions
|
|
@ -39,211 +39,15 @@ data:
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
|
"datasource": {
|
||||||
|
"uid": "${datasource}"
|
||||||
|
},
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"id": 240,
|
|
||||||
"panels": [],
|
|
||||||
"title": "Worker status",
|
|
||||||
"type": "row"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${datasource}"
|
|
||||||
},
|
|
||||||
"description": "",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {
|
|
||||||
"color": {
|
|
||||||
"mode": "thresholds"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"axisBorderShow": false,
|
|
||||||
"axisCenteredZero": false,
|
|
||||||
"axisColorMode": "text",
|
|
||||||
"axisLabel": "",
|
|
||||||
"axisPlacement": "auto",
|
|
||||||
"barAlignment": 0,
|
|
||||||
"drawStyle": "line",
|
|
||||||
"fillOpacity": 5,
|
|
||||||
"gradientMode": "scheme",
|
|
||||||
"hideFrom": {
|
|
||||||
"legend": false,
|
|
||||||
"tooltip": false,
|
|
||||||
"viz": false
|
|
||||||
},
|
|
||||||
"insertNulls": false,
|
|
||||||
"lineInterpolation": "linear",
|
|
||||||
"lineStyle": {
|
|
||||||
"fill": "solid"
|
|
||||||
},
|
|
||||||
"lineWidth": 2,
|
|
||||||
"pointSize": 5,
|
|
||||||
"scaleDistribution": {
|
|
||||||
"type": "linear"
|
|
||||||
},
|
|
||||||
"showPoints": "auto",
|
|
||||||
"spanNulls": false,
|
|
||||||
"stacking": {
|
|
||||||
"group": "A",
|
|
||||||
"mode": "none"
|
|
||||||
},
|
|
||||||
"thresholdsStyle": {
|
|
||||||
"mode": "off"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fieldMinMax": false,
|
|
||||||
"mappings": [],
|
|
||||||
"min": 0,
|
|
||||||
"thresholds": {
|
|
||||||
"mode": "absolute",
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"color": "red",
|
|
||||||
"value": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "yellow",
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "green",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"h": 8,
|
|
||||||
"w": 12,
|
|
||||||
"x": 0,
|
|
||||||
"y": 1
|
|
||||||
},
|
|
||||||
"id": 242,
|
|
||||||
"options": {
|
|
||||||
"legend": {
|
|
||||||
"calcs": [],
|
|
||||||
"displayMode": "list",
|
|
||||||
"placement": "bottom",
|
|
||||||
"showLegend": false
|
|
||||||
},
|
|
||||||
"tooltip": {
|
|
||||||
"mode": "single",
|
|
||||||
"sort": "none"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"pluginVersion": "10.4.1",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${datasource}"
|
|
||||||
},
|
|
||||||
"editorMode": "code",
|
|
||||||
"expr": "sum (clamp_min(image_builder_worker_active_workers{tenant=~\"$tenant\",arch=~\"$arch\"}, 0))",
|
|
||||||
"instant": false,
|
|
||||||
"interval": "",
|
|
||||||
"legendFormat": "__auto",
|
|
||||||
"range": true,
|
|
||||||
"refId": "A"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"title": "Active workers",
|
|
||||||
"type": "timeseries"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${datasource}"
|
|
||||||
},
|
|
||||||
"description": "",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {
|
|
||||||
"color": {
|
|
||||||
"mode": "thresholds"
|
|
||||||
},
|
|
||||||
"mappings": [],
|
|
||||||
"min": 0,
|
|
||||||
"thresholds": {
|
|
||||||
"mode": "absolute",
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"color": "red",
|
|
||||||
"value": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "yellow",
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "green",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"h": 8,
|
|
||||||
"w": 12,
|
|
||||||
"x": 12,
|
|
||||||
"y": 1
|
|
||||||
},
|
|
||||||
"id": 243,
|
|
||||||
"options": {
|
|
||||||
"displayMode": "lcd",
|
|
||||||
"maxVizHeight": 300,
|
|
||||||
"minVizHeight": 16,
|
|
||||||
"minVizWidth": 8,
|
|
||||||
"namePlacement": "auto",
|
|
||||||
"orientation": "horizontal",
|
|
||||||
"reduceOptions": {
|
|
||||||
"calcs": [
|
|
||||||
"lastNotNull"
|
|
||||||
],
|
|
||||||
"fields": "",
|
|
||||||
"values": false
|
|
||||||
},
|
|
||||||
"showUnfilled": true,
|
|
||||||
"sizing": "auto",
|
|
||||||
"valueMode": "color"
|
|
||||||
},
|
|
||||||
"pluginVersion": "10.4.1",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${datasource}"
|
|
||||||
},
|
|
||||||
"editorMode": "code",
|
|
||||||
"expr": "sum by(arch) (clamp_min(image_builder_worker_active_workers{tenant=~\"$tenant\"}, 0))",
|
|
||||||
"instant": false,
|
|
||||||
"legendFormat": "__auto",
|
|
||||||
"range": true,
|
|
||||||
"refId": "A"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"title": "Active workers",
|
|
||||||
"type": "bargauge"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"collapsed": false,
|
|
||||||
"datasource": {
|
|
||||||
"uid": "${datasource}"
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"h": 1,
|
|
||||||
"w": 24,
|
|
||||||
"x": 0,
|
|
||||||
"y": 9
|
|
||||||
},
|
|
||||||
"id": 212,
|
"id": 212,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
"title": "Job Success Rate",
|
"title": "Job Success Rate",
|
||||||
|
|
@ -299,7 +103,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 4,
|
"w": 4,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 10
|
"y": 1
|
||||||
},
|
},
|
||||||
"id": 197,
|
"id": 197,
|
||||||
"mappings": [
|
"mappings": [
|
||||||
|
|
@ -424,7 +228,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 4,
|
"x": 4,
|
||||||
"y": 10
|
"y": 1
|
||||||
},
|
},
|
||||||
"id": 202,
|
"id": 202,
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -534,7 +338,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 16,
|
"x": 16,
|
||||||
"y": 10
|
"y": 1
|
||||||
},
|
},
|
||||||
"id": 228,
|
"id": 228,
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -628,7 +432,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 4,
|
"w": 4,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 18
|
"y": 9
|
||||||
},
|
},
|
||||||
"id": 238,
|
"id": 238,
|
||||||
"maxDataPoints": 100,
|
"maxDataPoints": 100,
|
||||||
|
|
@ -743,7 +547,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 20,
|
"w": 20,
|
||||||
"x": 4,
|
"x": 4,
|
||||||
"y": 18
|
"y": 9
|
||||||
},
|
},
|
||||||
"id": 239,
|
"id": 239,
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -786,7 +590,7 @@ data:
|
||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 26
|
"y": 17
|
||||||
},
|
},
|
||||||
"id": 129,
|
"id": 129,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
|
|
@ -843,7 +647,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 4,
|
"w": 4,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 27
|
"y": 18
|
||||||
},
|
},
|
||||||
"id": 200,
|
"id": 200,
|
||||||
"mappings": [
|
"mappings": [
|
||||||
|
|
@ -1007,7 +811,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 4,
|
"x": 4,
|
||||||
"y": 27
|
"y": 18
|
||||||
},
|
},
|
||||||
"id": 201,
|
"id": 201,
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -1135,7 +939,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 16,
|
"x": 16,
|
||||||
"y": 27
|
"y": 18
|
||||||
},
|
},
|
||||||
"id": 210,
|
"id": 210,
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -1228,7 +1032,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 4,
|
"w": 4,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 35
|
"y": 26
|
||||||
},
|
},
|
||||||
"id": 198,
|
"id": 198,
|
||||||
"maxDataPoints": 100,
|
"maxDataPoints": 100,
|
||||||
|
|
@ -1345,7 +1149,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 20,
|
"w": 20,
|
||||||
"x": 4,
|
"x": 4,
|
||||||
"y": 35
|
"y": 26
|
||||||
},
|
},
|
||||||
"id": 199,
|
"id": 199,
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -1388,7 +1192,7 @@ data:
|
||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 43
|
"y": 34
|
||||||
},
|
},
|
||||||
"id": 207,
|
"id": 207,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
|
|
@ -1424,8 +1228,7 @@ data:
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"color": "green",
|
"color": "green"
|
||||||
"value": null
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"color": "#EAB839",
|
"color": "#EAB839",
|
||||||
|
|
@ -1445,7 +1248,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 4,
|
"w": 4,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 44
|
"y": 35
|
||||||
},
|
},
|
||||||
"id": 208,
|
"id": 208,
|
||||||
"mappings": [
|
"mappings": [
|
||||||
|
|
@ -1544,8 +1347,7 @@ data:
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"color": "green",
|
"color": "green"
|
||||||
"value": null
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -1603,7 +1405,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 4,
|
"x": 4,
|
||||||
"y": 44
|
"y": 35
|
||||||
},
|
},
|
||||||
"id": 209,
|
"id": 209,
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -1714,8 +1516,7 @@ data:
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"color": "green",
|
"color": "green"
|
||||||
"value": null
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"color": "red",
|
"color": "red",
|
||||||
|
|
@ -1731,7 +1532,7 @@ data:
|
||||||
"h": 8,
|
"h": 8,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 16,
|
"x": 16,
|
||||||
"y": 44
|
"y": 35
|
||||||
},
|
},
|
||||||
"id": 204,
|
"id": 204,
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -1989,7 +1790,7 @@ data:
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"current": {
|
"current": {
|
||||||
"selected": true,
|
"selected": false,
|
||||||
"text": "1792",
|
"text": "1792",
|
||||||
"value": "1792"
|
"value": "1792"
|
||||||
},
|
},
|
||||||
|
|
@ -2064,6 +1865,6 @@ data:
|
||||||
"timezone": "",
|
"timezone": "",
|
||||||
"title": "Image Builder Worker Job Stats",
|
"title": "Image Builder Worker Job Stats",
|
||||||
"uid": "image-builder-worker",
|
"uid": "image-builder-worker",
|
||||||
"version": 17,
|
"version": 18,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue