Hey all,
I’ve currently configured a slack integration with sensu for alerting purposes, however the messages sent are a bit cluttered and I’d like to be able to format them nicely. I noticed there to be capabilities for templates via .erb files. I’m not certain this is what I’m looking for, but I believe so. However, I couldn’t find any readily available.
Can someone advise?
Thanks,
Austin
Can you link to which slack integration you are using? (there are a couple options)
···
On Fri, Jul 29, 2016 at 12:44 PM, austin.reynolds@jorsek.com wrote:
Hey all,
I’ve currently configured a slack integration with sensu for alerting purposes, however the messages sent are a bit cluttered and I’d like to be able to format them nicely. I noticed there to be capabilities for templates via .erb files. I’m not certain this is what I’m looking for, but I believe so. However, I couldn’t find any readily available.
Can someone advise?
Thanks,
Austin
I am using sensu-plugins-slack that’s advertised on the sensu documentation.
···
On Friday, July 29, 2016 at 3:44:40 PM UTC-4, austin....@jorsek.com wrote:
Hey all,
I’ve currently configured a slack integration with sensu for alerting purposes, however the messages sent are a bit cluttered and I’d like to be able to format them nicely. I noticed there to be capabilities for templates via .erb files. I’m not certain this is what I’m looking for, but I believe so. However, I couldn’t find any readily available.
Can someone advise?
Thanks,
Austin
For that using a custom template is kinda in the readme:
https://github.com/sensu-plugins/sensu-plugins-slack#payload_template-example
You’ll have to put that template text into a file and then set the “payload_template” option in the handler configuration to point to that file.
And of course edit that template at will to meet your needs.
···
On Sat, Jul 30, 2016 at 7:00 PM, austin.reynolds@jorsek.com wrote:
I am using sensu-plugins-slack that’s advertised on the sensu documentation.
https://github.com/sensu-plugins/sensu-plugins-slack
On Friday, July 29, 2016 at 3:44:40 PM UTC-4, austin....@jorsek.com wrote:
Hey all,
I’ve currently configured a slack integration with sensu for alerting purposes, however the messages sent are a bit cluttered and I’d like to be able to format them nicely. I noticed there to be capabilities for templates via .erb files. I’m not certain this is what I’m looking for, but I believe so. However, I couldn’t find any readily available.
Can someone advise?
Thanks,
Austin