Update `alertmanager.yml`.
This commit is contained in:
parent
b063cba98f
commit
9aca3252b6
|
@ -8,11 +8,14 @@
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deploy `alertmanager` file:
|
# Deploy `alertmanager` file:
|
||||||
remote_file '/etc/prometheus.d/alertmanager.yml' do
|
encrypted_remote_file '/etc/prometheus.d/alertmanager.yml' do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
|
source 'files/etc/prometheus.d/alertmanager.yml/'
|
||||||
|
password ENV['ITAMAE_PASSWORD']
|
||||||
|
|
||||||
notifies :restart, 'service[supervisor]'
|
notifies :restart, 'service[supervisor]'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,13 @@
|
||||||
global:
|
md5:28ec9f4b96884f37cbd904fb91f5ee7d:salt:161-52-232-3-248-143-138-217:aes-256-cfb:Zl1SiauJIVlZ5Nl/QwFyZN4DzwSfaWC12a3AEioxgNPUdXHKPeRCb7u2o4Bw
|
||||||
slack_api_url: 'https://hooks.slack.com/services/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'
|
JrjA7SKRxeDjMBqYyQUnDG9AZ88l1xWkXMIm2cIjWdjj+5aRYpOls7QjCXfQ
|
||||||
|
iN7d9tpw7tuqg3kMplKvEAHPGSDLK+1kBxCD37gYpQMa/VjL4Rnf9PD8Duae
|
||||||
route:
|
te52AbngvCRk7RfIIINIv6fiECYvC1dgnGs7lzwio4vC6ssO6O1uelt5IYvz
|
||||||
receiver: 'test-route'
|
1OQdywvSEYhh7KWSBRGwLhBAFmzDfdRcuJJD0qT6Sv0VkSKp4VP/MQsjuit6
|
||||||
group_by: [alertname]
|
qESm5AAiiP9qyoRmWZgBuN3yyjAudmkNE6d+vJ3/5WXg0u8c54G+yQ0/eREe
|
||||||
group_wait: 10s
|
tKfIsn9hYna87GfM5Cwtwn5Iw1DYxWFTImsGV/aM3XsCLiA6Z9pMXdJR8YWY
|
||||||
group_interval: 1m
|
6pyODiTlpL8F/SRV6r+tABgJVq3Dc+C05xBoulYOx8LhHbBHo6oo9nupvHak
|
||||||
repeat_interval: 6h
|
YTe9RKctdZ8Qpf3QtsVQmBmOPhYMuBB9yMQ3EYZUErsm4aKcXpYOjjViO0uP
|
||||||
|
DIY9CwmQbcPymFOS5nMUR85T6Qnuu0huGMVB0dIKh7vPECVIMd/0IxEkNacQ
|
||||||
receivers:
|
GaHbC9Cuav5vB0gyqTdg5xHWA89dC7jbz5anqPMBmpStPajGoGoH3vXmMrSf
|
||||||
- name: 'test-route'
|
zylLMtkRb+EVXVSrdo9emjomJfzPxrmKk3hxfjnP4P/KxhIS8H/kjVEiDOpO
|
||||||
slack_configs:
|
IjO7
|
||||||
- channel: '#ops'
|
|
||||||
title: "{{ range .Alerts }}{{ .Annotations.summary }}\n{{ end }}"
|
|
||||||
text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
|
|
||||||
send_resolved: true
|
|
||||||
|
|
||||||
webhook_configs:
|
|
||||||
- send_resolved: true
|
|
||||||
url: 'http://localhost:6725'
|
|
Loading…
Reference in New Issue