title: Prometheus AlertManager - Send Alerts to different clients based on routes
body: <p>I have 2 services <strong>A</strong> and <strong>B</strong> which I want to monitor. Also I have 2 different notification channels <strong>X</strong> and <strong>Y</strong> in the form of <code>receivers</code> in the AlertManager config file. </p>
  
  <p>I want to send to notify <strong>X</strong> if service <strong>A</strong> goes down and want to notify <strong>Y</strong> if service <strong>B</strong> goes down. How can I achieve this my configuration?</p>
  
  <p>My AlertManager YAML file is:</p>
  
  <pre><code>route:
    receiver: X
  
  receivers:
    - name: X
      email_configs:
  
    - name: Y
      email_configs:
  </code></pre>
  
  <p>And <code>alert.rule</code> files is:</p>
  
  <pre><code>groups:
  
  - name: A
    rules:
      - alert: A_down
        expr: expression
        for: 1m
        labels:
           severity: critical
        annotations:
           summary: "A is down"
  
  - name: B
    rules:
      - alert: B_down
        expr: expression
        for: 1m
        labels:
          severity: warning
        annotations:
          summary: "B is down"
  </code></pre>