Skip to content

collectors OpenVPNCollector

Rob Smith edited this page Aug 17, 2012 · 12 revisions

OpenVPNCollector

Processes OpenVPN metrics. This collector can process multiple OpenVPN instances (even from a server box). In addition to the path, you may also specify a name of the instance.

You can use both the status file or the tcp management connection to retrieve the metrics.

To parse the status file::

instances = file:///var/log/openvpn/status.log

Or, to override the name (now "status"):

instances = file:///var/log/openvpn/status.log?developers

To use the management connection::

instances = tcp://127.0.0.1:1195

Or, to override the name (now "127_0_0_1"):

instances = tcp://127.0.0.1:1195?developers

You can also specify multiple and mixed instances::

instances = file:///var/log/openvpn/openvpn.log, tcp://10.0.0.1:1195?admins

Dependencies

  • urlparse

Options

  • Generic Options
  • instances: List of instances to collect stats from
  • enabled: Enable collecting these metrics
  • timeout: network timeout
  • byte_unit: Default numeric output(s)

Example Output

servers.hostname.status.clients.a_example_org.bytes_rx 109619579.0
servers.hostname.status.clients.a_example_org.bytes_tx 935436488.0
servers.hostname.status.clients.b_example_org.bytes_rx 25067295.0
servers.hostname.status.clients.b_example_org.bytes_tx 10497532.0
servers.hostname.status.clients.c_example_org.bytes_rx 21842093.0
servers.hostname.status.clients.c_example_org.bytes_tx 20185134.0
servers.hostname.status.clients.d_example_org.bytes_rx 4559242.0
servers.hostname.status.clients.d_example_org.bytes_tx 11133831.0
servers.hostname.status.clients.e_example_org.bytes_rx 13090090.0
servers.hostname.status.clients.e_example_org.bytes_tx 13401853.0
servers.hostname.status.global.max_bcast-mcast_queue_length 14.0
Clone this wiki locally