monitoring: network дашборд — панели объёма (ГБ за период) + скорость
This commit is contained in:
@@ -4,9 +4,9 @@
|
|||||||
"tags": ["network", "infra"],
|
"tags": ["network", "infra"],
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"schemaVersion": 39,
|
"schemaVersion": 39,
|
||||||
"version": 1,
|
"version": 2,
|
||||||
"refresh": "30s",
|
"refresh": "30s",
|
||||||
"time": { "from": "now-3h", "to": "now" },
|
"time": { "from": "now-24h", "to": "now" },
|
||||||
"templating": {
|
"templating": {
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
@@ -25,31 +25,53 @@
|
|||||||
},
|
},
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
"type": "timeseries", "title": "Входящий трафик (RX)", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
|
"type": "row", "title": "Объём за выбранный период (диапазон вверху справа)", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "stat", "title": "Принято всего (RX)", "gridPos": { "h": 5, "w": 6, "x": 0, "y": 1 },
|
||||||
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||||
|
"fieldConfig": { "defaults": { "unit": "bytes", "color": { "mode": "fixed", "fixedColor": "green" } } },
|
||||||
|
"options": { "colorMode": "value", "graphMode": "area" },
|
||||||
|
"targets": [ { "expr": "sum(increase(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__range]))", "refId": "A" } ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "stat", "title": "Отдано всего (TX)", "gridPos": { "h": 5, "w": 6, "x": 6, "y": 1 },
|
||||||
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||||
|
"fieldConfig": { "defaults": { "unit": "bytes", "color": { "mode": "fixed", "fixedColor": "blue" } } },
|
||||||
|
"options": { "colorMode": "value", "graphMode": "area" },
|
||||||
|
"targets": [ { "expr": "sum(increase(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__range]))", "refId": "A" } ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "bargauge", "title": "Объём по интерфейсам (RX за период)", "gridPos": { "h": 5, "w": 6, "x": 12, "y": 1 },
|
||||||
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||||
|
"fieldConfig": { "defaults": { "unit": "bytes" } },
|
||||||
|
"options": { "displayMode": "gradient", "orientation": "horizontal" },
|
||||||
|
"targets": [ { "expr": "increase(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__range])", "legendFormat": "{{device}}", "refId": "A", "instant": true } ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "bargauge", "title": "Объём по интерфейсам (TX за период)", "gridPos": { "h": 5, "w": 6, "x": 18, "y": 1 },
|
||||||
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||||
|
"fieldConfig": { "defaults": { "unit": "bytes" } },
|
||||||
|
"options": { "displayMode": "gradient", "orientation": "horizontal" },
|
||||||
|
"targets": [ { "expr": "increase(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__range])", "legendFormat": "{{device}}", "refId": "A", "instant": true } ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "row", "title": "Скорость (мгновенная)", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 6 }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "timeseries", "title": "Скорость входящего (RX), бит/с", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 7 },
|
||||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||||
"fieldConfig": { "defaults": { "unit": "bps", "custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 } } },
|
"fieldConfig": { "defaults": { "unit": "bps", "custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 } } },
|
||||||
"targets": [ { "expr": "rate(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])*8", "legendFormat": "{{device}}", "refId": "A" } ]
|
"targets": [ { "expr": "rate(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])*8", "legendFormat": "{{device}}", "refId": "A" } ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "timeseries", "title": "Исходящий трафик (TX)", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 },
|
"type": "timeseries", "title": "Скорость исходящего (TX), бит/с", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 7 },
|
||||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||||
"fieldConfig": { "defaults": { "unit": "bps", "custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 } } },
|
"fieldConfig": { "defaults": { "unit": "bps", "custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 } } },
|
||||||
"targets": [ { "expr": "rate(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])*8", "legendFormat": "{{device}}", "refId": "A" } ]
|
"targets": [ { "expr": "rate(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])*8", "legendFormat": "{{device}}", "refId": "A" } ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "stat", "title": "RX суммарно (сейчас)", "gridPos": { "h": 6, "w": 6, "x": 0, "y": 8 },
|
"type": "timeseries", "title": "Пакеты/с (RX +, TX −)", "gridPos": { "h": 6, "w": 12, "x": 0, "y": 15 },
|
||||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
||||||
"fieldConfig": { "defaults": { "unit": "bps", "color": { "mode": "thresholds" }, "thresholds": { "steps": [ { "color": "green", "value": null } ] } } },
|
|
||||||
"targets": [ { "expr": "sum(rate(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])*8)", "refId": "A" } ]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "stat", "title": "TX суммарно (сейчас)", "gridPos": { "h": 6, "w": 6, "x": 6, "y": 8 },
|
|
||||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
||||||
"fieldConfig": { "defaults": { "unit": "bps", "color": { "mode": "thresholds" }, "thresholds": { "steps": [ { "color": "blue", "value": null } ] } } },
|
|
||||||
"targets": [ { "expr": "sum(rate(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])*8)", "refId": "A" } ]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "timeseries", "title": "Пакеты/с (RX +, TX −)", "gridPos": { "h": 6, "w": 12, "x": 12, "y": 8 },
|
|
||||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||||
"fieldConfig": { "defaults": { "unit": "pps", "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 5 } } },
|
"fieldConfig": { "defaults": { "unit": "pps", "custom": { "drawStyle": "line", "lineWidth": 1, "fillOpacity": 5 } } },
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -58,7 +80,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "timeseries", "title": "Ошибки и дропы /с", "gridPos": { "h": 7, "w": 12, "x": 0, "y": 14 },
|
"type": "timeseries", "title": "Ошибки и дропы /с", "gridPos": { "h": 6, "w": 12, "x": 12, "y": 15 },
|
||||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||||||
"fieldConfig": { "defaults": { "unit": "pps", "custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 } } },
|
"fieldConfig": { "defaults": { "unit": "pps", "custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 } } },
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -67,12 +89,6 @@
|
|||||||
{ "expr": "rate(node_network_receive_drop_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])", "legendFormat": "rx drop {{device}}", "refId": "C" },
|
{ "expr": "rate(node_network_receive_drop_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])", "legendFormat": "rx drop {{device}}", "refId": "C" },
|
||||||
{ "expr": "rate(node_network_transmit_drop_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])", "legendFormat": "tx drop {{device}}", "refId": "D" }
|
{ "expr": "rate(node_network_transmit_drop_total{instance=~\"$instance\",device=~\"$device\"}[$__rate_interval])", "legendFormat": "tx drop {{device}}", "refId": "D" }
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "timeseries", "title": "Статус интерфейсов (up=1)", "gridPos": { "h": 7, "w": 12, "x": 12, "y": 14 },
|
|
||||||
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
||||||
"fieldConfig": { "defaults": { "unit": "short", "max": 1, "min": 0, "custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 0 } } },
|
|
||||||
"targets": [ { "expr": "node_network_up{instance=~\"$instance\",device=~\"$device\"}", "legendFormat": "{{device}}", "refId": "A" } ]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user