fix(monitoring): split gateway availability and default route timelines
This commit is contained in:
1 parent
376006e809
commit
53626e9271
1 file changed
+36
-6
@@ -130,16 +130,46 @@
|
||||
{ "options": { "0": { "color": "red", "index": 1, "text": "Offline" }, "1": { "color": "green", "index": 0, "text": "Online" } }, "type": "value" }
|
||||
]
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"matcher": { "id": "byName", "options": "WAN_0 (Iterika)" },
|
||||
"properties": [
|
||||
{
|
||||
"id": "mappings",
|
||||
"value": [
|
||||
{ "options": { "0": { "color": "blue", "index": 1, "text": "Offline (sched)" }, "1": { "color": "green", "index": 0, "text": "Online" } }, "type": "value" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"gridPos": { "h": 5, "w": 12, "x": 0, "y": 4 },
|
||||
"id": 7,
|
||||
"options": { "alignValue": "left", "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "mergeValues": true, "rowHeight": 0.8, "showValue": "auto" },
|
||||
"targets": [
|
||||
{ "datasource": { "type": "prometheus", "uid": "victoriametrics" }, "expr": "opnsense_gateway_status{gateway=~\"NORCOM_DHCP|WAN1|WAN_0\"}", "legendFormat": "{{gateway}} ({{descr}})", "refId": "A" }
|
||||
],
|
||||
"title": "Gateway Availability (dpinger)",
|
||||
"type": "state-timeline"
|
||||
},
|
||||
{
|
||||
"datasource": { "type": "prometheus", "uid": "victoriametrics" },
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"mappings": [
|
||||
{ "options": { "0": { "color": "semi-dark-purple", "index": 1, "text": "Standby" }, "1": { "color": "green", "index": 0, "text": "Active" } }, "type": "value" }
|
||||
]
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": { "h": 5, "w": 24, "x": 0, "y": 4 },
|
||||
"id": 7,
|
||||
"options": { "alignValue": "left", "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "mergeValues": true, "rowHeight": 0.85, "showValue": "auto" },
|
||||
"gridPos": { "h": 5, "w": 12, "x": 12, "y": 4 },
|
||||
"id": 18,
|
||||
"options": { "alignValue": "left", "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "mergeValues": true, "rowHeight": 0.8, "showValue": "auto" },
|
||||
"targets": [
|
||||
{ "datasource": { "type": "prometheus", "uid": "victoriametrics" }, "expr": "opnsense_gateway_status{gateway=~\"NORCOM_DHCP|WAN1|WAN_0\"}", "legendFormat": "{{gateway}} ({{descr}})", "refId": "A" },
|
||||
{ "datasource": { "type": "prometheus", "uid": "victoriametrics" }, "expr": "opnsense_gateway_default{gateway=~\"NORCOM_DHCP|WAN1|WAN_0\"}", "legendFormat": "default: {{gateway}}", "refId": "B" }
|
||||
{ "datasource": { "type": "prometheus", "uid": "victoriametrics" }, "expr": "opnsense_gateway_default{gateway=~\"NORCOM_DHCP|WAN1|WAN_0\"}", "legendFormat": "{{gateway}} ({{descr}})", "refId": "A" }
|
||||
],
|
||||
"title": "Gateway Availability & Active Default Route Timeline",
|
||||
"title": "Active Default Route (Failover)",
|
||||
"type": "state-timeline"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user