Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.16 KB

README.md

File metadata and controls

34 lines (28 loc) · 1.16 KB

Prometheus OpenVPN Access Exporter

Build Status Build status

This is my first Rust program. Take the SQLite db log.db of OpenVPN Access Server and expose this metrics to Prometheus.

Metrics:

  • Session duration with openvpn_user_duration
  • Bytes downloaded on session with openvpn_user_bytes_in
  • Bytes uploaded on session withopenvpn_user_bytes_out

with labels:

  • session_id
  • node
  • username
  • common_name
  • real_ip
  • vpn_ip

CLI reference:

USAGE:
    openvpn-access-exporter [OPTIONS] --file <file>

FLAGS:
        --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -f, --file <file>    SQLite log file (log.db)
    -h, --host <host>    Address where to expose http server [default: 0.0.0.0]
    -p, --port <port>    Host port to expose http server [default: 9185]