简体   繁体   中英

Exporting Hostname with Netdata for prometheus

I am trying to figureout how to allow prometheus to add targets based on hostname and not IP. Currently i am using Netdata as exporter but do not find any information on how to allow hostname of each host to be available in prometheus.

If you cannot add the targets to Prometheus manually (either IP or hostname, both is supported) you have to use some kind of service discovery. Some methods included in Prometheus, for example AWS EC2 or Docker Swarm.

A possible solution to your problem could be to use remote-write so that each Netdata writes to the Prometheus node and not the other way around.

Moreover, you could use something like Consul for service discovery.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM