-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host metrics #293
base: monitoring
Are you sure you want to change the base?
Host metrics #293
Conversation
The only issue I have with this is the node-exporter logs being spammed with the following:
I have no idea why this is happening or how to resolve it -- devpts for example is already listed in |
Other than the same error you mentioned, and the fact that I had to rebuild the |
I merged SIR dev stuff into |
compose/monitoring.yml
Outdated
- node-exporter-textfile-collector:/textfile-collector-directory | ||
command: | ||
- --path.rootfs=/host | ||
- --collector.filesystem.ignored-fs-types="^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|nsfs|tmpfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, not sure if it applies to the version we run yet, but:
"--collector.filesystem.ignored-fs-types is DEPRECATED and will be removed in 2.0.0, use --collector.filesystem.fs-types-exclude"
And according to https://github.com/prometheus/node_exporter/blob/810510e12b063690e6e52700a867676b93492e92/collector/filesystem_common.go#L233
"--collector.filesystem.ignored-mount-points is DEPRECATED and will be removed in 2.0.0, use --collector.filesystem.mount-points-exclude"
I checked the code, and I don't see a good reason for it to duplicate entries but if they are read twice (any symlink or multiple mounts?) plus it should be ignored.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see these in /etc/mtab (inside the node-exporter container):
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666 0 0
devpts /host/dev/pts devpts ro,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
devpts /host/mnt/hdd/docker/btrfs/subvolumes/c7cf67edc828a039fd362077c065f44799152030a7f79d252f2d274ad80f5460/dev/pts devpts ro,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666 0 0
The last one points to an empty dir. Not sure about symlinks. devpts wasn't the only filesystem type with issues, either...
For now I'll disable the filesystem collector since I don't think it's essential for monitoring Solr performance anyway.
Edit: Thanks for the hint about the deprecated flags -- updating them didn't help, but I'll rename them in the commented code.
874e474
to
28f9114
Compare
It currently spams the logs with errors of this form: collected metric [...] was collected before with the same name and label values However, the metrics it references should already be ignored/excluded by the options that I'm disabling in this commit, so it's not clear how to resolve this.
28f9114
to
1c19d6e
Compare
This is based on #291.
The service definition was based on https://github.com/metabrainz/prometheus-exp/blob/main/node.sh