teralytics / prometheus-ecs-discovery

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

setup dockerLabels in ECS task definition #86

Open gopkris2000 opened 1 year ago

gopkris2000 commented 1 year ago

@chicofranchico @muravjov I deployed the prometheus-ecs-discovery container in one of my AWS EC2 instance. It is running fine but getting the same "Writing 0 discovered exporters to /tmp/ecs_file_sd.yml" errors.

The confusion part is here, I tried to setup dockerLabels in my ECS task definition but showing a huge number of existing task definition in my AWS account and multiple cluster as well. Do I need to modify each task definition with the above dockerLabels config? or create a new one and again deploy the new container "prometheus-ecs-discovery"?

Please help me.

Originally posted by @gopkris2000 in https://github.com/teralytics/prometheus-ecs-discovery/issues/68#issuecomment-1410348030