klen / graphite-beacon

Simple alerting system for Graphite metrics
MIT License
453 stars 120 forks source link

[Feature Request] ability to set custom smtp body/title #13

Open gangelop opened 9 years ago

gangelop commented 9 years ago

I need the ability to send a specially crafted smtp message to interface with an smtp api of an external service.

For example, I want to be able to configure an email body template like this:

"smtp": {
  "from": "beacon@fake_company.com",
  "to": ["sms_api@externalservice.com"],
  "body": "user: fake_company\n
        password: b4dp4ssw0rD\n
        api_key: Ishoquu7teis8ahFeeshae2gae2quahchoa0koom\n
        to: +9055533322, +304512547895\n
        sms_body: \n
        $level - $name\n
        $target\n
        - sent from beacon"
}
zerosoul13 commented 8 years ago

@lathan Is this still needed? I'll take a look at it.

gangelop commented 8 years ago

Hi @zerosoul13, Thanks for the response. I'm not working on graphite related projects at the moment so I won't be needing this personally, and also will not be able to test any patches.