grafana: filter jobs for `available devices` widget on public dashboard
ie. hiding the new blackbox jobs also correct threshold for vms on `available devices` widget
This commit is contained in:
parent
c9843a4cdd
commit
01c3d3f300
|
@ -43,7 +43,7 @@
|
|||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
"uid": "P1809F7CD0C75ACF3"
|
||||
},
|
||||
"description": "how many devices are up",
|
||||
"fieldConfig": {
|
||||
|
@ -184,13 +184,9 @@
|
|||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "#EAB839",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 2
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -220,6 +216,62 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "container"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "thresholds",
|
||||
"value": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "#EAB839",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "blackbox"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "thresholds",
|
||||
"value": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "#EAB839",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -252,13 +304,33 @@
|
|||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"editorMode": "code",
|
||||
"expr": "sum by (job) (up)",
|
||||
"expr": "sum (up) by (job)",
|
||||
"legendFormat": "__auto",
|
||||
"range": true,
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "availability of devices",
|
||||
"transformations": [
|
||||
{
|
||||
"id": "filterFieldsByName",
|
||||
"options": {
|
||||
"include": {
|
||||
"names": [
|
||||
"Time",
|
||||
"accesspoints",
|
||||
"container",
|
||||
"gateways",
|
||||
"prometheus",
|
||||
"server",
|
||||
"switches",
|
||||
"vms",
|
||||
"blackbox"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
|
@ -691,13 +763,13 @@
|
|||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-6h",
|
||||
"from": "now-24h",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {},
|
||||
"timezone": "",
|
||||
"title": "EAE - Am Deutschen Platz - Network Statistics",
|
||||
"uid": "Yz0oaZenz",
|
||||
"version": 9,
|
||||
"version": 10,
|
||||
"weekStart": ""
|
||||
}
|
Reference in New Issue