mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
grafana: updated network dashboard
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
86184f9cdb
commit
c288791691
1 changed files with 394 additions and 385 deletions
|
@ -2,6 +2,7 @@
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
|
"$$hashKey": "object:39",
|
||||||
"builtIn": 1,
|
"builtIn": 1,
|
||||||
"datasource": "-- Grafana --",
|
"datasource": "-- Grafana --",
|
||||||
"enable": true,
|
"enable": true,
|
||||||
|
@ -15,7 +16,7 @@
|
||||||
"editable": true,
|
"editable": true,
|
||||||
"gnetId": null,
|
"gnetId": null,
|
||||||
"graphTooltip": 0,
|
"graphTooltip": 0,
|
||||||
"id": 6,
|
"id": null,
|
||||||
"links": [],
|
"links": [],
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
|
@ -68,27 +69,31 @@
|
||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "irate(node_network_receive_bytes_total{instance=~\"routnerr.*\",device!~\"lo|docker.*|virbr.*\"}[1m]) * 8",
|
"expr": "irate(node_network_receive_bytes_total{instance=~\"routnerr.*\",device!~\"lo|docker.*|virbr.*\"}[5m]) * 8",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"hide": false,
|
"hide": false,
|
||||||
|
"interval": "",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "receive: {{device}}",
|
"legendFormat": "receive: {{device}}",
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "irate(node_network_transmit_bytes_total{instance=~\"routnerr.*\",device!~\"lo|docker.*|virbr.*\"}[1m]) * 8",
|
"expr": "irate(node_network_transmit_bytes_total{instance=~\"routnerr.*\",device!~\"lo|docker.*|virbr.*\"}[5m]) * 8",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
|
"interval": "",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "transmit: {{device}}",
|
"legendFormat": "transmit: {{device}}",
|
||||||
"refId": "B"
|
"refId": "B"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "irate(wireguard_peer_receive_bytes_total{instance=~\"routnerr.*\"}[1m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info * 8",
|
"expr": "irate(wireguard_peer_receive_bytes_total{instance=~\"routnerr.*\"}[5m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info * 8",
|
||||||
|
"interval": "",
|
||||||
"legendFormat": "receive: {{device}}: {{name}}",
|
"legendFormat": "receive: {{device}}: {{name}}",
|
||||||
"refId": "C"
|
"refId": "C"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "irate(wireguard_peer_transmit_bytes_total{instance=~\"routnerr.*\"}[1m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info * 8",
|
"expr": "irate(wireguard_peer_transmit_bytes_total{instance=~\"routnerr.*\"}[5m]) * on (public_key) group_left(name) wireguard_peer_info * on (instance) group_left(device) wireguard_device_info * 8",
|
||||||
|
"interval": "",
|
||||||
"legendFormat": "transmit: {{device}}: {{name}}",
|
"legendFormat": "transmit: {{device}}: {{name}}",
|
||||||
"refId": "D"
|
"refId": "D"
|
||||||
}
|
}
|
||||||
|
@ -184,15 +189,17 @@
|
||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "rate(ifInOctets{ifAlias!=\"\",instance=\"switch-livingroom01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8",
|
"expr": "rate(ifInOctets{ifAlias!=\"\",instance=\"switch-livingroom01\",job=\"snmp\"}[5m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
|
"interval": "",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "from: {{ifAlias}}",
|
"legendFormat": "from: {{ifAlias}}",
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "rate(ifOutOctets{ifAlias!=\"\",instance=\"switch-livingroom01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8",
|
"expr": "rate(ifOutOctets{ifAlias!=\"\",instance=\"switch-livingroom01\",job=\"snmp\"}[5m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
|
"interval": "",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "to: {{ifAlias}}",
|
"legendFormat": "to: {{ifAlias}}",
|
||||||
"refId": "B"
|
"refId": "B"
|
||||||
|
@ -289,15 +296,17 @@
|
||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "rate(ifInOctets{ifAlias!=\"\",instance=\"switch-office01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8",
|
"expr": "rate(ifInOctets{ifAlias!=\"\",instance=\"switch-office01\",job=\"snmp\"}[5m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
|
"interval": "",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "from: {{ifAlias}}",
|
"legendFormat": "from: {{ifAlias}}",
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "rate(ifOutOctets{ifAlias!=\"\",instance=\"switch-office01\",job=\"snmp\"}[1m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8",
|
"expr": "rate(ifOutOctets{ifAlias!=\"\",instance=\"switch-office01\",job=\"snmp\"}[5m]) and on(instance, job, ifName) ifAdminStatus != 2 * 8",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
|
"interval": "",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "to: {{ifAlias}}",
|
"legendFormat": "to: {{ifAlias}}",
|
||||||
"refId": "B"
|
"refId": "B"
|
||||||
|
@ -386,5 +395,5 @@
|
||||||
"variables": {
|
"variables": {
|
||||||
"list": []
|
"list": []
|
||||||
},
|
},
|
||||||
"version": 17
|
"version": 4
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue