项目作者: Thor77

项目描述 :
Output OpenVPN status metrics as InfluxDB metrics
高级语言: Go
项目地址: git://github.com/Thor77/ovpnstats2influxdb.git
创建时间: 2019-02-06T19:29:25Z
项目社区:https://github.com/Thor77/ovpnstats2influxdb

开源协议:

下载


ovpnstats2influxdb

Read metrics from OpenVPN openvpn-status.log and output them as InfluxDB metrics.

Installation

  • Build it yourself with go build main.go and move the binary somewhere into your $PATH

Usage

Add it as an exec plugin to your telegraf.conf:

  1. [[inputs.exec]]
  2. commands = ["/usr/bin/ovpnstats -path /etc/openvpn/server/openvpn-status.log"]
  3. data_format = "influx"
  4. timeout = 1