-
Notifications
You must be signed in to change notification settings - Fork 13
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
Node Name #21
Comments
Hmmm, never thought about that. Mine is the same name as yours, so it must be the hash of the container or something? I'll have to see if I can change that. Not sure if you can set a hostname inside a container... In the meantime, try changing the
|
Got it! Thanks! |
Any more thoughts on this one? I'm trying to have a single scraper config for all of my hosts, so overriding it on the prometheus side of things is problematic. I've been digging around the node_exporter docs, and I don't see anything obvious that will do it there... |
I haven't found a way to override the hostname via the container 🤷🏻♂️ |
What about something like mounting the |
Still no updates here. I posted in the HA discord asking for help. Everything I do to |
Are you bind mounting the host file system in a sub path in the container and then setting the appropriate flags when starting node exporter? I never was affected by this issue because I do manually relabel the metrics but I can see the node name label is wrong indeed. The below is just a copy from the docker compose file so it will need to be adapted the volume mounts need to go into the addon manifest and the command flags need to go into the addon run script.
I'm not sure if you can mount rootfs from an addon based on below document |
Issue with having multiple home assistant servers in multiple locations, the node name reports 0d869efa-prometheus-node-exporter for all node names.
The text was updated successfully, but these errors were encountered: