Hello,

I have configured my *prometheus.yml* and *alertmanager.yml* file to look
like below but I need help with making alert manager send email alerts to
different users per instance(i.e email alerts for instance A1 goes to only
[email protected] and  instance B2 goes only to [email protected]). I currently have
all email alert sent to  [email protected] and  [email protected] at the same time
which seem too noisy at times.

*  prometheus.yml   *

global:
  scrape_interval:     15s
  evaluation_interval: 15s

# Alertmanager configuration
alerting:
  alertmanagers:
  - static_configs:
    - targets:
      # - alertmanager:9093
        - localhost:9093

# Load rules once and periodically evaluate them according to the global
'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"
    - "alert_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries
scraped from this config.
  - job_name: 'prometheus'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
    - targets: ['A1:9182','B2:9182'']

  - job_name: "ssl"
    metrics_path: /probe
    static_configs:
      - targets:
          - A1:1667
          - B2:1667


*alertmanager.yml*
route:
  group_by: [Alertname]
  receiver: email
  group_wait: 10s
  group_interval: 5m
  repeat_interval: 10m

receivers:
- name: email
  email_configs:
  - to: [email protected], [email protected]
    from: [email protected]

Any suggestion would be highly appreciated.

Regards,

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAMwuUuM-EXu-EKQm1AgGY2kpNRo8tT2Pvg%3Dx5QV3zodEuodEwA%40mail.gmail.com.

Reply via email to