Commit c96242d3 authored by Ralf's avatar Ralf
Browse files

Grafana gateway panel: account for domain interfaces

parent 5635079b
...@@ -1057,14 +1057,14 @@ ...@@ -1057,14 +1057,14 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "label_replace(sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"saar-tun-.*\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")", "expr": "label_replace(sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"[a-z]+-tun-.*\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "RX GW{{gw}}", "legendFormat": "RX GW{{gw}}",
"refId": "A", "refId": "A",
"step": 240 "step": 240
}, },
{ {
"expr": "label_replace(sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"saar-tun-.*\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")", "expr": "label_replace(sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"[a-z]+-tun-.*\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "TX GW{{gw}}", "legendFormat": "TX GW{{gw}}",
"refId": "B", "refId": "B",
...@@ -1385,14 +1385,14 @@ ...@@ -1385,14 +1385,14 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "label_replace(sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(.*VPN|saar-tun-.*)\"}[3m])*8) by (instance) - sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\".*BAT\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")", "expr": "label_replace(sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(.*VPN|[a-z]+-tun-.*)\"}[3m])*8) by (instance) - sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\".*BAT\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "RX GW{{gw}}", "legendFormat": "RX GW{{gw}}",
"refId": "A", "refId": "A",
"step": 240 "step": 240
}, },
{ {
"expr": "label_replace(sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(.*VPN|saar-tun-.*)\"}[3m])*8) by (instance) - sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\".*BAT\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")", "expr": "label_replace(sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(.*VPN|[a-z]+-tun-.*)\"}[3m])*8) by (instance) - sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\".*BAT\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "TX GW{{gw}}", "legendFormat": "TX GW{{gw}}",
"refId": "B", "refId": "B",
...@@ -1543,14 +1543,14 @@ ...@@ -1543,14 +1543,14 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "label_replace(sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(eth|ens).*\"}[3m])*8) by (instance)- sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(.*VPN|saar-tun-.*)\"}[3m])*8) by (instance)- sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"tun-up-.*\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")", "expr": "label_replace(sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(eth|ens).*\"}[3m])*8) by (instance)- sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(.*VPN|[a-z]+-tun-.*)\"}[3m])*8) by (instance)- sum(rate(node_network_receive_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"tun-up-.*\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "RX GW{{gw}}", "legendFormat": "RX GW{{gw}}",
"refId": "A", "refId": "A",
"step": 240 "step": 240
}, },
{ {
"expr": "label_replace(sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(eth|ens).*\"}[3m])*8) by (instance) - sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(.*VPN|saar-tun-.*)\"}[3m])*8) by (instance)- sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"tun-up-.*\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")", "expr": "label_replace(sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(eth|ens).*\"}[3m])*8) by (instance) - sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"(.*VPN|[a-z]+-tun-.*)\"}[3m])*8) by (instance)- sum(rate(node_network_transmit_bytes_total{instance=~\"gw$gw.saar.freifunk.net:9100\",device=~\"tun-up-.*\"}[3m])*8) by (instance), \"gw\", \"$1\", \"instance\", \"gw([^.]+)[.].*\")",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "TX GW{{gw}}", "legendFormat": "TX GW{{gw}}",
"refId": "B", "refId": "B",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment