kumina / openvpn_exporter

A Prometheus exporter for OpenVPN.
Apache License 2.0
218 stars 106 forks source link

Anonymize common names #37

Open jkroepke opened 4 years ago

jkroepke commented 4 years ago

HI,

it's possible to anonymize common names? e.g by hashing them?

We want to track some statistics to ensure our VPN servers running stable but since the metrics are associated with a personal user it might be problematic in german (german law).

NotAFile commented 4 years ago

If you have more than a few connections you should be turning off per-connection statistics anyway as the amount of label churn will kill your prometheus.

jkroepke commented 4 years ago

as the amount of label

Do you have a number of it?

NotAFile commented 4 years ago

It is impossible to say how much, as that depends on your exact prometheus setup. But it is always a bad idea to use labels in any case where there is no upper limit to the number of values. As the Prometheus docs say:

CAUTION: Remember that every unique combination of key-value label pairs represents a new time series, which can dramatically increase the amount of data stored. Do not use labels to store dimensions with high cardinality (many different label values), such as user IDs, email addresses, or other unbounded sets of values.

Seitanas commented 3 years ago

If you have more than a few connections you should be turning off per-connection statistics anyway as the amount of label churn will kill your prometheus.

How do you turn off per-connection statistics?