ndelitski / rancher-alarms

Will kick your ass if found unhealthy service in Rancher environment
85 stars 20 forks source link

Add colors code to messages #24

Open fredleger opened 7 years ago

fredleger commented 7 years ago

Might be a feature interesting.

We are using New Relic alerts to forward alerts in our slack channels and they do add colors next to the messages send (see below) to illustrate the type of event. I think this will be nice in rancher-alarms as weel if not a big feature to add.

image

fredleger commented 7 years ago

Actually seems as easy as adding this to the message sent :

"color": "#36a64f", // Can either be one of 'good', 'warning', 'danger', or any hex color code
ndelitski commented 7 years ago

cool idea! will release next

fredleger commented 7 years ago

Actually i had to implement it somewhere else, and there is more than just setting color, it must be an attachement. See here for reference : https://api.slack.com/docs/message-attachments

jmreicha commented 7 years ago

+1 This would be useful for alerting (green) when a service becomes healthy again.