/mikrotik-conn-exporter

Export Prometheus metrics based on mikrotik VPN login/logout log messages

Primary LanguageGo

Mikrotik login/logout metric exporter

This tool:

  • Reads log stream emitted by Mikrotik routers
  • Rarses VPN login and logout messages
  • Takes VPN client's IP address and looks it up in a local GeoLite2 ASN database.
  • Exports login/logout Prometheus metrics broken down by ASN.

Log messages are expected to be shipped to the TCP syslog endpoint.

License

Licensed under MIT license.