This document shows how to integrate Alertmanager with Pushover for sending notifications.
The following YAML configuration demonstrates how to set up Pushover notifications within your Alertmanager configuration.
global:
resolve_timeout: 5m
route:
group_by: ['alertname', 'cluster', 'job', 'env']
repeat_interval: 24h
group_interval: 5m
receiver: 'default'
receivers:
- name: 'default'
pushover_configs:
- token: x
user_key: x
title: '{{ if eq .Status "firing" }}ALARM{{ else }}OK{{ end }} [{{ .Status | toUpper }}] {{ .CommonAnnotations.summary }}'
message: '{{ template "pushover.default.message" . }}'
url: '{{ template "pushover.default.url" . }}'
priority: '{{ if eq .Status "firing" }}2{{ else }}0{{ end }}'
The global section defines the overall Alertmanager settings.
The route section specifies how alerts are grouped and routed to receivers.
The receivers section defines the notification methods. Here, we use Pushover.
The pushover_configs section contains the specific settings for Pushover, including the API token, user key, title, message, URL, and priority.
Remember to replace x with your actual Pushover API token and user key.