-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
What did you do?
I used the pushover receiver, and tried to add the ttl parameter, but alertmanager didn't recognize the setting.
What did you expect to see?
I expected alertmanager to allow me to use any parameter that pushover supports: https://pushover.net/api
What did you see instead? Under which circumstances?
As mentioned above alertmanager crashes on launch, explaining that it doesn't recognize the ttl parameter.
Environment
-
System information:
$ uname -srm
Linux 6.1.0-3-amd64 x86_64 -
Alertmanager version:
$ alertmanager --version
alertmanager, version 0.25.0 (branch: HEAD, revision: 258fab7)
build user: root@abe866dd5717
build date: 20221222-14:51:36
go version: go1.19.4
platform: linux/amd64 -
Prometheus version:
I'm not using prometheus, but victoria-metrics 1.91.4
-
Alertmanager configuration file:
global:
resolve_timeout: 5m
route:
receiver: 'pushover'
repeat_interval: 1h
routes:
- match:
alertname: Watchdog
receiver: "null"
- match:
alertname: InfoInhibitor
receiver: "null"
receivers:
- name: "null"
- name: 'pushover'
pushover_configs:
- user_key: "{{ index . "pushover_key" }}"
token: "{{ index . "token" }}"
priority: '0'
ttl: 3600
send_resolved: false
- Prometheus configuration file:
Not really relevant
- Logs:
ts=2023-08-09T09:49:40.054Z caller=main.go:240 level=info msg="Starting Alertmanager" version="(version=0.25.0, branch=HEAD, revision=258fab7cdd551f2cf251ed0348f0ad7289aee789)"
ts=2023-08-09T09:49:40.054Z caller=main.go:241 level=info build_context="(go=go1.19.4, user=root@abe866dd5717, date=20221222-14:51:36)"
ts=2023-08-09T09:49:40.350Z caller=coordinator.go:113 level=info component=configuration msg="Loading configuration file" file=/etc/alertmanager/config/alertmanager.yaml
ts=2023-08-09T09:49:40.353Z caller=coordinator.go:118 level=error component=configuration msg="Loading configuration file failed" file=/etc/alertmanager/config/alertmanager.yaml err="yaml: unmarshal errors:\n line 23: field ttl not found in type config.plain"