Prometheus client & win_perf_counters char changes
1. in prometheus client, do not check for invalid characters anymore, because we are already replacing all invalid characters with regex anyways. 2. in win_perf_counters, sanitize field name _and_ measurement name. Also add '%' to the list of sanitized characters, because this character is invalid for most output plugins, and can also easily cause string formatting issues throughout the stack. 3. All '%' will now be translated to 'Percent' closes #1430
Showing
- CHANGELOG.md 1 addition, 0 deletionsCHANGELOG.md
- plugins/inputs/win_perf_counters/win_perf_counters.go 6 additions, 6 deletionsplugins/inputs/win_perf_counters/win_perf_counters.go
- plugins/outputs/prometheus_client/prometheus_client.go 1 addition, 19 deletionsplugins/outputs/prometheus_client/prometheus_client.go
Loading
Please register or sign in to comment