teralytics / prometheus-ecs-discovery

A Prometheus discoverer that scrapes Amazon ECS and a generates file SD configuration file.
Apache License 2.0
257 stars 156 forks source link

Is there a way to pass a list of clusters to scrape ? #77

Open VRevol opened 3 years ago

VRevol commented 3 years ago

Hello, I am wondering if there is already a way to pass a list of clusters instead of only one. It is possible with aws cli, not sure about the go sdk implementation. aws ecs describe-clusters --clusters cluster1 cluster2

I tried a bit but no luck for now.

nkov commented 2 years ago

Wondering the same thing

VRevol commented 2 years ago

I ended up modifying the code to be able to pass list of cluster or a single one, or none and existing behaviour was preserved. Should propose a PR with this change but if I remember well it introduce breaking change of the parameters (I think type at least)