Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alertmanager default inhibit_rules error #182

Closed
blupman opened this issue Apr 5, 2018 · 1 comment
Closed

alertmanager default inhibit_rules error #182

blupman opened this issue Apr 5, 2018 · 1 comment

Comments

@blupman
Copy link

blupman commented Apr 5, 2018

While starting to use alertmanager i noticed the default inhibit_rules cause alertmanager to not start

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10.10
  • Ruby: ruby 2.3.3p222
  • Distribution: debian/stretch
  • Module version: voxpupuli/puppet-prometheus master branch

How to reproduce (e.g Puppet code you use)

  class { '::prometheus::alertmanager':
    version        => '0.14.0',
    install_method => 'url',
    route          => { 'group_by' => [ 'alertname', 'cluster', 'service' ], 'group_wait'=> '30s', 'group_interval'=> '5m', 'repeat_interval'=> '3h', 'receiver'=> 'slack' },
    receivers      => [ { 'name' => 'slack', 'slack_configs'=> [ { 'api_url'=> 'https://hooks.slack.com/services/secret', 'channel' => '#test', 'send_resolved' => true, 'username' => 'username'}] }]
  }

(so, not setting inhibit_rules)

What are you seeing

this causes alertmanager to be installed, but crases after starting, upon investigating i found the error when i started alertmanager by hand.

What behaviour did you expect instead

an empty running alertmanager

Output log

root@723fefb34eec:/docker/development# alertmanager --config.file /etc/alertmanager/alertmanager.yaml 
level=info ts=2018-04-05T10:32:22.8074184Z caller=main.go:136 msg="Starting Alertmanager" version="(version=0.14.0, branch=HEAD, revision=30af4d051b37ce817ea7e35b56c57a0e2ec9dbb0)"
level=info ts=2018-04-05T10:32:22.8074907Z caller=main.go:137 build_context="(go=go1.9.2, user=root@37b6a49ebba9, date=20180213-08:16:42)"
level=info ts=2018-04-05T10:32:22.8112018Z caller=main.go:275 msg="Loading configuration file" file=/etc/alertmanager/alertmanager.yaml
level=error ts=2018-04-05T10:32:22.8118108Z caller=main.go:278 msg="Loading configuration file failed" file=/etc/alertmanager/alertmanager.yaml err="unknown fields in inhibit rule: severity"

Any additional information you'd like to impart

I have created a pull request to generate the same config as params.pp used to make

@bastelfreak
Copy link
Member

closed by #181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants