fix(monitoring): split gateway availability and default route timelines
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-mon, ) (push) Successful in 22s

This commit is contained in:
karpenok committed 2026-11-17 16:03:11 +07:00
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" } { "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": [] "overrides": []
}, },
"gridPos": { "h": 5, "w": 24, "x": 0, "y": 4 }, "gridPos": { "h": 5, "w": 12, "x": 12, "y": 4 },
"id": 7, "id": 18,
"options": { "alignValue": "left", "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "mergeValues": true, "rowHeight": 0.85, "showValue": "auto" }, "options": { "alignValue": "left", "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "mergeValues": true, "rowHeight": 0.8, "showValue": "auto" },
"targets": [ "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": "{{gateway}} ({{descr}})", "refId": "A" }
{ "datasource": { "type": "prometheus", "uid": "victoriametrics" }, "expr": "opnsense_gateway_default{gateway=~\"NORCOM_DHCP|WAN1|WAN_0\"}", "legendFormat": "default: {{gateway}}", "refId": "B" }
], ],
"title": "Gateway Availability & Active Default Route Timeline", "title": "Active Default Route (Failover)",
"type": "state-timeline" "type": "state-timeline"
}, },
{ {