Reputation: 57
Im trying so hard since long to setup Prometheus. Actually I need metrics from targets servers and send it to main Prometheus server. Here tricky is shouldn't configure target servers in prometheus.yml since we have thousands of servers.its really tough if we do. So any solution the targets servers should send metrics or pull metrics by Prometheus
Upvotes: 1
Views: 1251
Reputation: 683
No, everything has to be on the prometheus.yml file. Prometheus always pull the data, it has to know where it has to pull.
Prometheus allows to get targets from a file, that's the solution I think fits more for your problem: https://prometheus.io/docs/guides/file-sd/
Upvotes: 1