mikrotik-exporter icon indicating copy to clipboard operation
mikrotik-exporter copied to clipboard

Collect VPN users (accounts, time session)

Open SergeiCherevko opened this issue 4 years ago • 2 comments

Hi! Can you add some metrics VPN stats? It will be very cool!

SergeiCherevko avatar Mar 26 '20 10:03 SergeiCherevko

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

SergeiCherevko avatar Apr 08 '20 11:04 SergeiCherevko

@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.

nshttpd avatar Mar 23 '21 03:03 nshttpd