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