Skip to content

Add opensearch Alert Webhook #412

Open
@tek2

Description

@tek2

Is your feature request related to a problem? Please describe.
I want to check the alarms that occur in Opensearch in Alerta, but there is currently no Webhook

Describe the solution you'd like
I want to check Opensearch's Alert in Alerta Dashboard.

Describe alternatives you've considered
In Opensearch, you can set a Hook when an Alert occurs. If you refer to this and the Custom Webhook provided by Alerta, you will be able to create a Plugin.

Additional context
Opensearch's Webhook does not have a separate field setting section and only the Message section can be used as shown below.
Image

So I'm thinking of implementing it by writing the message part in a specific format and having Alerta parse the message.

I think the specific format is as follows. I think it is separated using the character '|'.

trigger_id : {{ctx.trigger.id}} |
trigger_name : {{ctx.trigger.name}} |
trigger_severity : {{ctx.trigger.severity}} |
monitor_name : {{ctx.monitor.name}} |
service : write-your-service |
tags : {tagkey1=tagvalue1,tagkey2=tagvalue2} |
message : Monitor({{ctx.monitor.name}}) just entered alert({{ctx.trigger.name}}) status. Please investigate the issue.

Image

And if I get the chance, I'd like to write and contribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions