1
votes

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

1
Do you know about the various service discovery mechanisms Prometheus supports? If you don't want to follow the pull approach Prometheus is honestly not the right choice in my opinion. Take a look at something like InfluxDB or maybe VictoriaMetricstrallnag

1 Answers

1
votes

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/