On Monday, 20 April 2020 13:37:42 UTC+1, Danny de Waard wrote: > > If i read correctly you refer to the payload which should contain fields i > can get from the payload. > Is this an example of such a payload?? >
It looks like it to me. There's an official example in the documentation at https://prometheus.io/docs/alerting/configuration/#webhook_config See under "The Alertmanager will send HTTP POST requests in the following JSON format to the configured endpoint:" > > And if so, how do i extract a field like instance from this? > That's a programming question, i.e. how to extract fields from a JSON structure, and depends entirely on the programming language you're using. The github repo you linked to seems to be using Go. A good place to ask questions is on the "golang-nuts" group. However you should start by looking at some existing examples of parsing JSON in Go. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f4f95361-05a4-4224-8065-a18f0d7fb699%40googlegroups.com.

