Bug 41871

Summary: Не запускается со стандартным конфигурационным файлом
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: prometheus-alertmanagerAssignee: Alexey Shabalin <shaba>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: shaba
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2022-02-04 11:06:33 MSK
-== Шаги воспроизведения ==-
# apt-get install prometheus-alertmanager && systemctl start prometheus-alertmanager; systemctl status prometheus-alertmanager
# journalctl -u prometheus-alertmanager

-== Получаемый результат ==-
Сервис не запускается. В логах ошибки:

alertmanager[7584]:
level=error ts=2022-02-04T07:56:37.846Z
caller=coordinator.go:124
component=configuration msg="Loading configuration file failed"
file=/etc/prometheus/alertmanager.yml err="yaml: unmarshal errors:
line 8: field hipchat_auth_token not found in type config.plain
line 10: field hipchat_api_url not found in type config.plain
line 120: field hipchat_configs not found in type config.plain"

Если удалить параметры, связанные с hipchat, то сервис запускается.

-== Версии пакетов ==-
Ошибка воспроизводится
в сизифе:
prometheus-common-2.28.0-alt1
prometheus-alertmanager-0.21.0-alt1

и в p10:
prometheus-common-2.24.1-alt1
prometheus-alertmanager-0.21.0-alt1

но не воспроизводится в p9:
prometheus-common-2.18.1-alt2
prometheus-alertmanager-0.20.0-alt1
Comment 1 Alexander Makeenkov 2024-03-01 11:46:31 MSK
prometheus-alertmanager-0.26.0-alt1 - ошибка не воспроизводится.