Summary: | prometheus_sysctl_exporter outputs invalid format | ||
---|---|---|---|
Product: | Base System | Reporter: | Devin Smith <devinrsmith> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed DUPLICATE | ||
Severity: | Affects Only Me | CC: | asomers, ed, freebsd, lapo, lwhsu, thomas |
Priority: | --- | ||
Version: | 12.2-RELEASE | ||
Hardware: | amd64 | ||
OS: | Any |
Description
Devin Smith
2021-02-26 04:56:21 UTC
Same problem with 13.0. Actuall sysctl -a returns 2 entries. root@feeebsd:~ # sysctl -a | grep log.bucket.size: vm.uma.tcp_log_bucket.size: 176 vm.uma.tcp_log.bucket_size: 30 Confirmed on multiple hosts. Root cause is that default "sysctl" entries name conversion method when "." are replaced by "-" causes metric name clash for vm.uma.tcp_log_bucket.size vm.uma.tcp_log.bucket_size I do not see any good solution for it. Meanwhile workaround is to remove both metrics by running /usr/bin/sed -I "" '/sysctl_vm_uma_tcp_log_bucket_size .*$/d' filename. against prometheus_sysctl_exporter output file. *** Bug 258393 has been marked as a duplicate of this bug. *** This is not worked around by excluding "-d", it happens anyways on values (not only on #HELP lines). I'm using this as a workaround: prometheus_sysctl_exporter | sort -k1,1 -u (of course, ) (of course, this will drop any value after the first) This is still an issue on 13-STABLE as of a few days ago. It is outputting data which is not valid - it doesn't work. The workaround by Lapo Luchini in comment #5 works, but this behaviour should be built into the prometheus_system_exporter itself. The program could/should maintain a list of keys already output and skip if duplicates are found. I don't have time to look at creating a patch right now, hopefully someone else does :) Closing this as a duplicate of 259607, even though it was reported first, because the other bug is more general. *** This bug has been marked as a duplicate of bug 259607 *** |