mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-08-04 06:46:13 +03:00
Add support for obfuscating label values before sending metrics to remote storage (`-remoteWrite.url`). The new `-remoteWrite.obfuscateLabels` flag accepts a list of label names (separated by `^^`) whose values are replaced with their SHA-256 hex digest. No salt is applied, so values with a small or predictable value space can potentially be recovered by brute force. This feature pairs well with [Monitoring Data eXchange (MDX)](https://docs.victoriametrics.com/victoriametrics/vmagent/#monitoring-data-exchange): use `-remoteWrite.mdx.enable=true` to forward only VictoriaMetrics self-monitoring metrics to an external vendor while hiding sensitive label values with `-remoteWrite.obfuscateLabels`. Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10599 PR https://github.com/VictoriaMetrics/VictoriaMetrics/pull/10813 --------- Signed-off-by: “Jayice” <jzhou@victoriametrics.com> Co-authored-by: Max Kotliar <mkotlyar@victoriametrics.com> Co-authored-by: f41gh7 <nik@victoriametrics.com>
See vmagent docs here.
vmagent docs can be edited at docs/vmagent.md.