0

I use riemann ruby client for email alerting. And my emails look like this:

#riemann.codec.Event{:host "foo", :service "bar", :state "critical", :description "{\"exception\":\"some error\",\"datetime\":\"20210104061928\"..."}

When the contents of the email are large (when I get exception backtrace), it becomes very hard to understand the data.

Is there a way to receive this data in a JSON format so that it can be copy-pasted into a code editor and formatted easily?

I cant find any docs on email formating in these repos:

https://github.com/riemann/riemann

https://github.com/riemann/riemann-ruby-client

  • I don't know Riemann but what I understand of it is that the Ruby-client only sends events to the Riemann server, and that would be the server that sends the emails to you, not the other way around. My point is that there may be some email formatting options in the server configuration part – Fravadona Mar 30 '21 at 14:34
  • 1
    From that portion you have pasted, the `:description` looks like JSON already. Paste that in your editor as EDN (or clojure code), then copy the string from `:description` as JSON. – cfrick Mar 30 '21 at 21:02
  • can you edit your question to attach a copy of some example code you're using to send via Riemann? – Jad Mar 31 '21 at 09:24
  • I came here for a question about integration! ;) – OTheDev Apr 08 '22 at 06:56

0 Answers0