title: How to filter EC2 instances in prometheus.yml?
body: <p>I am trying to filter EC2 instances in <code>prometheus.yml</code>. Suppose that the following is part of the yml file. How can I use regex in the values to return instance that starts with, lets say, <code>prod</code> or <code>qa</code> or other labels? Is this possible without configuring <code>relabeling</code>?</p>
  
  <pre><code>  ec2_sd_configs:
  - region: us-east-1
    access_key: access
    secret_key: mysecret
    profile: profile
    filters:
      - name: tag:Name
        values:
          - prod.*
          - qa.*
  </code></pre>