The EC2 SD config accepts the following parameters.
ec2_sd_configs:
- region: us-west-2
access_key: OMITTED
secret_key: OMITTED
port: 9101
I want to scrape metrics from ports 9101 and 9182. To do this i defined the ec2_sd_config twice and list access and secret keys twice. Is there a way I can add multiple ports from one config?
ec2_sd_configs:
- region: us-west-2
access_key:
secret_key:
port: 9101
ā
- region: us-west-2
access_key:
secret_key:
port: 9182