You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm rather new to prometheus.
I specified the targets in my node exporter scrape_config with their private ip address instead of a hostname, so in the Node Exporter Full dashboard the node/instance selector also displays them like so. However the node_uname_info metric has a label nodename that contains their actual hostname.
Is there a way to change the selector so that it displays the nodename instead of address:port or can I somehow relabel the instance value so that it contains the nodename instead?
The text was updated successfully, but these errors were encountered:
You could change the node variable to a "Series query", with the query value of node_uname_info{job="$job"}, and then add this to the Regex box: /nodename=\"(?<text>[^"]+)|instance=\"(?<value>[^\"]+)/g. That will cause the nodename value to be used as the display in the combobox, but the actual instance value used in the query under the hood is still IP:port.
The only caveat is a lot of Linux systems (RH based?) default to "localhost.localdomain", and I'm not aware of any way to conditionally fall back to IP address if the nodename isn't sane.
I'm rather new to prometheus.
I specified the targets in my node exporter scrape_config with their private ip address instead of a hostname, so in the Node Exporter Full dashboard the node/instance selector also displays them like so. However the
node_uname_info
metric has a labelnodename
that contains their actual hostname.Is there a way to change the selector so that it displays the nodename instead of address:port or can I somehow relabel the
instance
value so that it contains thenodename
instead?The text was updated successfully, but these errors were encountered: