Sreekanth Chityala
Sreekanth Chityala

Reputation: 57

Send metrics to centralised Prometheus server without targets servers configuration

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

Answers (1)

rcarba
rcarba

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

Related Questions