scrape targets on Prometheus

82 views
Skip to first unread message

Pratibha Channamsetty

unread,
Mar 2, 2023, 12:29:22 PM3/2/23
to Prometheus Users
Hi,
I have thousand  stateful servers. I am not able to use any of Prometheus service discovery approach. 
Is there a way I can use  either ip CIDR range for target scrapping or regex patter on hostnames. 

Any other better approach will help here .


Thanks

Stuart Clark

unread,
Mar 2, 2023, 12:31:08 PM3/2/23
to promethe...@googlegroups.com
I would suggest using the file SD option and then having a tool creating
a JSON/YAML file containing the servers to scrape.

Is there really no list of those servers? For example are you using
something like Ansible or Chef to provision/maintain them?

--
Stuart Clark

Reply all
Reply to author
Forward
0 new messages