Project

General

Profile

Actions

Task #6810

closed
NS

Add a wireguard prometheus exporter to our infrastructure

Task #6810: Add a wireguard prometheus exporter to our infrastructure

Added by Nico Schottelius over 6 years ago. Updated about 2 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/08/2019
Due date:
% Done:

0%

Estimated time:
PM Check date:
06/09/2019

Description

Parse output from wg show and make it available for prometheus

  • Export "up" vpns
  • Export received/sent traffic
  • Export latest handshake

JK Updated by Jason Kim over 6 years ago Actions #1

  • PM Check date set to 06/09/2019

EH Updated by Evil Ham over 6 years ago Actions #2

This sounds more interesting to me than "IPv6 is down", but:

Nico Schottelius wrote:

Parse output from wg show and make it available for prometheus

  • Export "up" vpns

I must assume this means a count? Aka: how many peers are defined? how many are up?
Prometheus docs advise against using "per-client" (in this case per-vpn) labels as that can badly kill performance.

  • Export received/sent traffic
  • Export latest handshake

Easily doable from:

wg show all dump

From man wg:

If dump is specified, then several lines are printed; the
first contains in order separated by tab: private-key, public-
key, listen-port, fwmark. Subsequent lines are printed for each
peer and contain in order separated by tab: public-key,
preshared-key, endpoint, allowed-ips, latest-handshake,
transfer-rx, transfer-tx, persistent-keepalive.

NS Updated by Nico Schottelius over 6 years ago Actions #3

Re per-client: I see the "prometheus problem" - however it would be very interesting to see which client uses how much traffic / in out, which would help a lot for load balancing (i.e. move clients xyz to vpnserver A)

I wonder if there is a "nice" solution to this

NS Updated by Nico Schottelius over 6 years ago Actions #5

  • Subject changed from Create a wireguard prometheus exporter to Add a wireguard prometheus exporter to our infrastructure

Thanks for the hint Evilham!

NS Updated by Nico Schottelius about 2 years ago Actions #6

  • Status changed from New to Rejected
Actions

Also available in: PDF Atom