Skip to content

A reverse proxy for the Prometheus AlertManager webhook notifier.

License

Notifications You must be signed in to change notification settings

grafana/alertmanager-webhook-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Alertmanager Webhook Proxy

CircleCI

A reverse proxy for the Prometheus AlertManager webhook notifier. This proxy service can take in a GoLang template to modify the payload for consumers that do not support the AlertManager webhook payload.

Build

$ go build -o awp ./cmd/main.go

Usage

$ ./awp -address=":8080" -target="http://my.consumer.io" -template="./template.txt"
Command Flag Default Description
-address :8080 Server bind address
-target http://localhost:8090 Target URL
-template /tmp/awp/template.txt Path to payload transformation template

Templating

The proxy loads a GoLang template of your choice to transform the alertmanager payload.

For GoLang templating syntax, check out the documentation. The AlertManager webhook payload data format is detailed here. Example templates can be found in the templater test data directory.

About

A reverse proxy for the Prometheus AlertManager webhook notifier.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published