Skip to content
Snippets Groups Projects

Replace openvpn-exporter with textfile exporter.

Merged micah requested to merge new_ovpn_exporter into main

The upstream openvpn-exporter was emitting high cardinality metrics, because of our CN being an unique identifier based off of the certificate and the metrics are designed to emit individual metrics for each CN, even when you pass a flag that disables individual metrics. This would cause the tsdb to fill with unnecessary, and unrelated metrics.

This removes that exporter (which has not seen commits for years) and replaces it with the prometheus-node-exporter textfile collector, which will emit metrics produced by the shell script that is run every 10 seconds. It will only emit these metrics:

openvpn_server_connected_clients{status_path="/tmp/openvpn-status-tcp"}
openvpn_server_connected_clients{status_path="/tmp/openvpn-status-udp"}
openvpn_up{status_path="/tmp/openvpn-status-tcp"}
openvpn_up{status_path="/tmp/openvpn-status-udp"}
Edited by micah

Merge request reports

Pipeline #124257 passed

Pipeline passed for b9190084 on new_ovpn_exporter

Merged by micahmicah 2 years ago (Jan 11, 2023 5:17pm UTC)

Loading

Pipeline #124262 passed

Pipeline passed for efc2546f on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading