Skip to content
Snippets Groups Projects
Verified Commit 338db46c authored by psy's avatar psy
Browse files

add title for resolved alerts

parent 96e6bc43
No related branches found
No related tags found
No related merge requests found
......@@ -132,9 +132,9 @@ def postAlertmanager(chatName):
def send_alert_message(channel, alert):
message = "[**{state}**] [{instance}] {here}".format(state=alert['status'],
message = "[**{state}**] [{instance}] {amendment}".format(state=alert['status'],
instance=alert['labels'].get('instance', 'unknown'),
here='@here' if alert['status'] == 'firing' else '')
amendment='@here' if alert['status'] == 'firing' else alert['annotations'].get('title'))
attach = []
# attach details if alert is firing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment