alerta / alerta-contrib

Contributed integrations, plugins and custom webhooks
http://alerta.io
MIT License
119 stars 170 forks source link

[Feat] Query Generic Webhook #366

Closed pvillaverde closed 2 years ago

pvillaverde commented 2 years ago

Greetings!

I've made a basic webhook for those times you can only make a query POST. It lets you specify service,event,text,value,timeout,group, tags, resource and serverity. All just in the query params, without payload /body.

satterly commented 2 years ago

Thanks a lot! 👍

danfoxley commented 2 years ago

Is this now in the docker image? /api doesn't show query is loaded after adding/enabling in docker-compose.yml.

xpufx commented 2 years ago

Is this now in the docker image? /api doesn't show query is loaded after adding/enabling in docker-compose.yml.

It's not. You can create a new custom image overlaying the plugin over the alerta image. (Sharing because it took me a while to figure out it wasn't included and how to do it.)

FROM alerta/alerta-web

RUN /venv/bin/pip install \
    git+https://github.com/alerta/alerta-contrib.git#subdirectory=webhooks/query

https://docs.alerta.io/gettingstarted/tutorial-10-docker.html