Skip to content

therobbielee/alertmanager-ntfy-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntfy (ntfy.sh) integration for Alertmanager. Available as a binary or as a Docker image.

Environment variables

NTFY_SERVER: ntfy server (e.g https://ntfy.sh)
NTFY_TOPIC: ntfy topic to send alerts to
NTFY_USERNAME: Optional, basic auth username
NTFY_PASSWORD: Optional, basic auth password
NTFY_TOKEN: Optional, access token
NTFY_LABELS: Labels to include (Comma separated, defaults to "alertname,severity,instance")
NTFY_ANNOTATIONS: Annotations to include (Comma separated, defaults to "summary,description")
NTFY_DEFAULT_PRIORITY: Regular ntfy notification priority (Integer. Defaults to 3, see more: https://docs.ntfy.sh/publish/#message-priority)
NTFY_FIRING_PRIORITY: ntfy notification priority for firing alerts (Integer. Defaults to 4)
NTFY_RESOLVED_PRIORITY: ntfy notification priority for resolved alerts (Integer. Defaults to 2)

Volumes

Title template is located at /app/title_template.tmpl (Defaults to "{{.Status}}] {{.Labels.alertname}}")

Message template is located at /app/message_template.tmpl (Defaults to "{if .Labels.severity}}Severity: {{.Labels.severity}}{{end}}{{if .Annotations.summary}}{{.Annotations.summary}}{{end}}{{if .Annotations.description}}{{.Annotations.description}}{{end}}")

If one or both of the template files are not provided, or an empty one is provided, it will use the defaults.

Disclaimer

I'm pretty novice with golang so if something doesn't make sense, please let me know. I appreciate any feedback!

About

ntfy.sh relay for Alertmanager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published