Once I had fixed the smtp_smarthost line to include quotes and a port 
number, the config you gave validates just fine for me.

So if you have a problem with this config, you need to describe what the 
symptoms are (since the symptoms you gave previously no longer apply).  I'm 
afraid I can't guess what your system may or may not be doing.

root@prometheus:~# *cat test.yml*
global:
  resolve_timeout: 5m
  smtp_smarthost: '*********:25'
  smtp_auth_username: '*********'
  smtp_auth_identity: '********'
  smtp_auth_password: '******'
  smtp_from: '[email protected]'
  smtp_require_tls: false

route:
  group_by: ['alertname']
  group_wait: 10s
  group_interval: 10s
  repeat_interval: 24h
  receiver: 'App-Kafka-Support'

receivers:
- name: 'App-Kafka-Support'
  email_configs:
  - to: '[email protected]'
    send_resolved: true
    headers:
      subject: '{{ if eq .Status "firing" }} DOWN {{ else if eq .Status 
"resolved" }} UP {{end}}'
root@prometheus:~# */opt/alertmanager/amtool check-config test.yml*
Checking 'test.yml'  *SUCCESS*
Found:
 - global config
 - route
 - 0 inhibit rules
 - 1 receivers
 - 0 templates

root@prometheus:~#

-- 
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/7c21c10a-9020-4d6e-9322-7b99be594367n%40googlegroups.com.

Reply via email to