"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,
"legendFormat":"RX GW{{gw}}",
"refId":"A",
"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,
"legendFormat":"TX GW{{gw}}",
"refId":"B",
...
...
@@ -1385,14 +1385,14 @@
"steppedLine":false,
"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,
"legendFormat":"RX GW{{gw}}",
"refId":"A",
"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,
"legendFormat":"TX GW{{gw}}",
"refId":"B",
...
...
@@ -1543,14 +1543,14 @@
"steppedLine":false,
"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,
"legendFormat":"RX GW{{gw}}",
"refId":"A",
"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([^.]+)[.].*\")",