mikrotik-exporter
mikrotik-exporter copied to clipboard
Collect VPN users (accounts, time session)
Hi! Can you add some metrics VPN stats? It will be very cool!
In grafana dashboard i create query which is say how much VPN connections through the time
count(mikrotik_interface_rx_byte{name="gw1",interface=~"<+.*[l2tp|pptp|ovpn]*.+>"})
And how much traffic use each VPN user
rate(mikrotik_interface_rx_byte{name="gw1",interface=~"<+.*[l2tp|pptp|ovpn]*.+>"}[4m])
May be i take somewhere mistake, but it works for me
@inkdude for egress VPN connections I don't think there is any way to track this. It's just an interface that's passing the packets from the LAN behind it out the pipe. Not really tracking individual users.