datalust / seq-app-opsgenie

Create Opsgenie alerts in response to events or notifications in Seq
Apache License 2.0
3 stars 2 forks source link

$EventUri is incorrect when this app is used as notification channel #14

Closed Ahmad-anility closed 7 months ago

Ahmad-anility commented 7 months ago

After configuring the app in SEQ when we test it using the events explores -> Send to app the link in the body of opsgenie is correct and clicking on the link correctly opens the event. However when we use this app in the alert as notification channel the event uri is incorrect and the event id does not match what triggered the event.

nblumhardt commented 7 months ago

Hi Ahmad, thanks for raising this.

$EventUri is only populated correctly when the incoming event corresponds to one in the event stream.

For alerts, $Properties.Alert.Url property should be the correct alternative. Unfortunately I'm a little rusty on Handlebars syntax and don't have an Opsgenie instance to test this out against.

If the above doesn't work, we might need to make some modifications to the app to deal with this - perhaps using the alert URL as the value of $EventUri if it's present.

Let me know if this helps!

Best regards, Nick

Ahmad-anility commented 7 months ago

Thanks @nblumhardt, we used Alert Url instead and from there we can explore the query

Much appreciated Ahmad