Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving VictorOps alerts #1250

Closed
ggenot opened this issue Mar 8, 2017 · 2 comments
Closed

Improving VictorOps alerts #1250

ggenot opened this issue Mar 8, 2017 · 2 comments
Assignees

Comments

@ggenot
Copy link

ggenot commented Mar 8, 2017

Hello,

I'm using Kapacitor with VictorOps alerting. It's working well but set of available data are quite limited.

In my model I need the hostname most of the time. It's an info I have in the tags in influx, that are available from kapacitor but not accessible in victorops as the data field is embedded json

A solution could be to send Data.Result as json object instead of json string in data fields

Victorops accept arbitrary json value and will automatically flatten the JSON of Data.Result

We have now 1 data field available:

data: {"Series":[{"name":"example","tags":{"host":"examplehost"},"columns":["time","duration","incoming","restransmit_0","restransmit_1","restransmit_16","restransmit_2","restransmit_4","restransmit_8"],"values":[["2017-03-07T23:47:58.287132323Z",0.038,0,20,0,17,0,0,0]]}],"Messages":null,"Err":null}

That will become

data.series.0.name: example
data.series.0.tags.host: examplehost
data.series.0.columns.0: time
data.series.0.columns.1: duration
[...]

This way I can get the hostname from "data.series.0.tags.host" via transmogrifier transformation

Another solutions would be to be able to set arbitrary fields for victorOps but I don't think it's wanted

@hansgustavson
Copy link

hansgustavson commented Jun 1, 2017

plus 1

We are facing the same problem when using the Kapacitor/VictorOps integration.

@ghost ghost assigned nathanielc Nov 17, 2017
@ghost ghost added the in progress label Nov 17, 2017
@ghost ghost removed the in progress label Nov 20, 2017
@hansgustavson
Copy link

hansgustavson commented Nov 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants