Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knyar/mikrotik-conn-exporter

Export Prometheus metrics based on mikrotik VPN login/logout log messages
https://github.com/knyar/mikrotik-conn-exporter

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](
https://dev.maxmind.com/geoip/docs/databases/asn?lang=en)
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.