Set description on OpsGenie alert

Hello,

I have an integration with OpsGenie, which OpsGenie in turn notifies my team on Slack that something has gone wrong. This is working fine, but I can’t figure out how to change the description. Currently my alert looks like this. The message or title of the alert is what I expect. Jenkins job failure -> name_of_the_job

However, the description is something completely useless for us, because I think that’s the row that generated the alert. I want that to be a link to our Jenkins instance, so that we can navigate directly to our job.

I’ve tried adding the expected value on the .details() function like this:

    |alert()
    .id(idVar)
    .idTag(idTag)
    .levelTag('level')
    .messageField(messageField)
    .durationField(durationField)
    .message('Jenkins job failure -> ' + '{{ index .Tags "name"}}' + ' | BI Prod')
    .details('Failing job link: https://jenkins.prod.bi.auto1.team/job/' + '{{ index .Tags "name"}}')
    .warn(lambda: "last_result" > 0)
    .warnReset(lambda: "last_result" == 0)
    .opsGenie2()
    .stateChangesOnly()

But that didn’t work, the notification is still the same. I also tried doing it with HTML instead of just a string, but that also didn’t work.

Is there a way to change the description on the OpsGenie alert? I can’t figure it out, and I feel documentation is not clear on how to use with TICK.

I have the notion that it might be because we’re using Chronograph to configure the OpsGenie integration instead of a kapacitor.conf file, and Chronograph doesn’t have the details parameter as specified here: OpsGenie v2 event handler | Kapacitor Documentation, so I’m assuming the default value is false.

Any thoughts on how I can achieve this?

Hello @boga-a1,
Unfortunately, no InfluxData admin offers support on Kapacitor anymore. Your best bet would be to find other kapacitor users on this forum and reach out to them directly.