Use discrete instead of spectrum for uptime graph.

This commit is contained in:
Jeff Geerling 2021-04-10 16:42:23 -05:00
parent 2ef3c83972
commit 59508d5d0c
1 changed files with 16 additions and 3 deletions

View File

@ -341,8 +341,21 @@
"exponent": 0.5, "exponent": 0.5,
"max": 1, "max": 1,
"min": 0, "min": 0,
"mode": "spectrum", "mode": "discrete",
"thresholds": [] "thresholds": [
{
"$$hashKey": "object:68",
"color": "#37872D",
"tooltip": "Up",
"value": "1"
},
{
"$$hashKey": "object:72",
"color": "#C4162A",
"tooltip": "Down",
"value": "0"
}
]
}, },
"datasource": "prometheus", "datasource": "prometheus",
"fieldConfig": { "fieldConfig": {
@ -549,5 +562,5 @@
"timezone": "browser", "timezone": "browser",
"title": "Internet connection", "title": "Internet connection",
"uid": "o9mIe_Aik", "uid": "o9mIe_Aik",
"version": 1 "version": 2
} }