Alertmanager Pod is failing - CrashLoopBackOff

36 views
Skip to first unread message

vikram yerneni

unread,
May 18, 2020, 5:03:31 PM5/18/20
to Prometheus Users
Fellas,
I am using helm chats (stable) for deploying Prometheus and along with it I am adding Alertmanager. Alertmanager setup was successful, however its failing when I am adding the OpsGenie integration to it.
Here is the config I used:
alertmanagerFiles:
  alertmanager.yml:
    global:
      resolve_timeout: 1m
      opsgenie_api_key: "opsgenie key"
      opsgenie_api_url: "https://api.opsgenie.com/"
    route:
      repeat_interval: 1h
      group_wait: 10s
      group_interval: 5m
      receiver: 'saas-ops'
    receivers:
      - name: 'saas-ops'
        opsgenie_configs:
          - teams: 'teamname set in opsgenie'

And here is the error I am getting:
level=error ts=2020-05-18T20:31:53.703Z caller=coordinator.go:124 component=configuration msg="Loading configuration file failed" file=/etc/config/alertmanager.yml err="yaml: unmarshal errors:\n  line 8: field teams not found in type config.plain"

The "teams" defined is actually configured within OpsGenie along with the api key setup too. 


What am I missing here?

Thanks

Brian Candler

unread,
May 19, 2020, 2:48:26 AM5/19/20
to Prometheus Users
What the error is saying is you tried to add a setting "teams" under opsgenie_configs, but opsgenie_configs does not recognise such an option.  The set of allowed options is defined here:

Maybe you wanted something like:

opsgenie_configs:
  - name: saas-ops
    responders:
      - name: blah
        type: team

vikram yerneni

unread,
May 19, 2020, 2:08:19 PM5/19/20
to Prometheus Users
Sure Brian... I am not sure the config changes earlier. Let me try it out.
Thanks

vikram yerneni

unread,
May 19, 2020, 3:02:47 PM5/19/20
to Prometheus Users
It worked... Thanks a lot Brian...


On Tuesday, May 19, 2020 at 1:48:26 AM UTC-5, Brian Candler wrote:
Reply all
Reply to author
Forward
0 new messages