On 17/04/2020 09:31, Danny de Waard wrote:
I want to use a webhook to trigger a script with 3 variables.
These are
- severity
- host
- trigger

And i want them used in my webhook like:
http://127.0.0.1:9000/hooks/sm9-inc?severity='critical'&host='lsrv0008'&trigger='high_cpu'

How can i get the fields in the webhook config?

  - name: 'webhook'
    webhook_configs:
      - url: 'http://127.0.0.1:9000'


The webhook receiver sends data in a particular fixed format. You either need to adjust your endpoint to accept that format or create an intermediate endpoint that converts to the format you are wanting.


--
Stuart Clark

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/994561c5-4026-1d86-9174-6ec1729c0d75%40Jahingo.com.

Reply via email to