influxdata / kapacitor

Open source framework for processing, monitoring, and alerting on time series data
MIT License
2.3k stars 495 forks source link

OpsGenie Integration - Additional fields #2284

Open bogski87 opened 4 years ago

bogski87 commented 4 years ago

Hello,

At the moment, when an alert is sent from Kapacitor to the OpsGenie API only the message and Tags are included in the alert payload, meaning we need to use string processing to get basic information out of an alert message. Things like percent free space and free GB included as fields in the payload would be awesome. Then users can access the data in the alerts using OpsGenies .extraProperties function. Then we can fire alerts to OpsGenie with all the information included and parse out the data we need.

I've tried to include .details in the alert payload and parse the info from there but this hasn't worked.

Currently tags can be accessed in OpsGenie with _payload.extraProperties.tagname

Something similar with fields would be preferable. Is this possible, if not can it be made possible?

I've asked at OpsGenie about this, they say the integration isn't maintained by them so the best they can do is open a feature request. Thought i'd ask too.

Let me know if any other info is required :)

russorat commented 4 years ago

@bogski87 thanks for the issue. We will take a look and consider it for a future release of Kapacitor.