Skip to content

AWS Service Discovery requires region in v3.7 #17375

@sysadmind

Description

@sysadmind

What did you do?

Running a v3.7 docker image (i.e. quay.io/prometheus/prometheus:v3.7.1) against a config file that has no AWS region for service discovery yields an error

What did you expect to see?

No config error. Running the same config against 3.6.0 does not yield an error.

What did you see instead? Under which circumstances?

msg="Error loading config (--config.file=/prom/prom.yml)" file=/prom/prom.yml err="parsing YAML file /prom/prom.yml: EC2 SD configuration requires a region"

System information

Linux 6.1.155-176.282.amzn2023.x86_64 x86_64

Prometheus version


Prometheus configuration file

scrape_configs:
      - job_name: testsd
        ec2_sd_configs:
          - refresh_interval: 30s

Alertmanager version


Alertmanager configuration file

Logs


Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions