title: route matching multiple labels
body: <p>I am not getting alertmanager to send alerts based on multiple labels. </p>
  
  <p>In general sending e-mails on alerts is working. But only if there is a simple match on one label. E.g. teamB route is working. teamA route is not.</p>
  
  <pre><code>route:
    receiver: default-receiver
    routes:
    - receiver: teamA
      match:
        environment: production
      match_re:
        job: ^(?:app2| app3)$
    - receiver: teamB
      match:
        application: app1
        environment: production
  receivers:
  - name: default-receiver 
  - name: teamA
  - name: teamB
  </code></pre>
  
  <p>The syntax seems correct as there is no error message on loading alertmanager:</p>
  
  <pre><code>019-07-24T08:03:59.242791707Z level=info ts=2019-07-24T08:03:59.242607527Z caller=main.go:334 msg="Loading configuration file" file=/etc/alertmanager/config.yml
  </code></pre>
  
  <p>What's wrong with the teamA route? </p>
  
  <p>I am using <a href="https://prometheus.io/webtools/alerting/routing-tree-editor/" rel="nofollow noreferrer">https://prometheus.io/webtools/alerting/routing-tree-editor/</a> to analyze the issue. The code above can simply be copied over to that editor to visualize the results of given label sets.</p>