I need to monitor a large number (more than 100) of IP addresses with the same port. How can I set the range of IP addresses in the configuration file (prometheus.yml)?
How it works now:
- job_name: “example”
static_configs:
- targets:
- X.X.X.2:port
- X.X.X.3:port
- X.X.X.4:port
- …
- X.X.X.100:port
As I want for example:
- job_name: “example”
static_configs:
- targets:
- [X.X.X.2-X.X.X.100]:port
Is there such functionality?
Thanks for the help