scrape_configs:
  - job_name: 'prometheus'
    static_configs:
    - targets: ['localhost:9090']
  - job_name: ec2
    ec2_sd_configs:
    - region: eu-central-1
      access_key: AKIAR4Z44I4N65US3VLO
      secret_key: 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
    relabel_configs:
    - source_labels: [__meta_ec2_public_ip]
      regex: '(.*)'
      target_label: __address__
      replacement: '${1}:9100'
    - source_labels: [__meta_ec2_tag_aws_cloudformation_logical_id]
      regex: '(.*)'
      target_label: instance
      replacement: '${1}'
