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": {
|
||||
"list": [
|
||||
{
|
||||
"$$hashKey": "object:39",
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
|
@ -15,7 +16,7 @@
|
|||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": 6,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
|
@ -68,27 +69,31 @@
|
|||
"steppedLine": false,
|
||||
"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",
|
||||
"hide": false,
|
||||
"interval": "",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "receive: {{device}}",
|
||||
"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",
|
||||
"interval": "",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "transmit: {{device}}",
|
||||
"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}}",
|
||||
"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}}",
|
||||
"refId": "D"
|
||||
}
|
||||
|
@ -184,15 +189,17 @@
|
|||
"steppedLine": false,
|
||||
"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",
|
||||
"interval": "",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "from: {{ifAlias}}",
|
||||
"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",
|
||||
"interval": "",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "to: {{ifAlias}}",
|
||||
"refId": "B"
|
||||
|
@ -289,15 +296,17 @@
|
|||
"steppedLine": false,
|
||||
"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",
|
||||
"interval": "",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "from: {{ifAlias}}",
|
||||
"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",
|
||||
"interval": "",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "to: {{ifAlias}}",
|
||||
"refId": "B"
|
||||
|
@ -386,5 +395,5 @@
|
|||
"variables": {
|
||||
"list": []
|
||||
},
|
||||
"version": 17
|
||||
"version": 4
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue