Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUnable to use DNS service discovery for alertmanagers #3877
Comments
This comment has been minimized.
This comment has been minimized.
|
You're missing a hyphen before dns_sd_configs. It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Feb 21, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
wwmtsr commentedFeb 21, 2018
Hi Prometheus team,
It's totally possible that it's me doing something wrong, but I already read docs a couple of times and haven't found a way how to configure DNS service for alertmanagers (it works just fine for scraping though).
What did you do?
Trying to configure Prometheus talk to Alertmanager
What did you expect to see?
Prometheus server starts and can talk to confgured alertmanagers
What did you see instead? Under which circumstances?
Trying to start Prometheus server with command line like
prometheus --config.file=./conf/prometheus.ymlfails with error
level=error ts=2018-02-21T19:00:56.682964843Z caller=main.go:579 err="Error loading config couldn't load configuration (--config.file=./conf/prometheus.yml): parsing YAML file ./conf/prometheus.yml: yaml: unmarshal errors:\n line 22: cannot unmarshal !!map into []*config.AlertmanagerConfig"Environment
System information:
Linux 3.10.0-514.26.2.el7.x86_64 x86_64
Prometheus version:
prometheus, version 2.1.0 (branch: HEAD, revision: 85f23d8)
build user: root@6e784304d3ff
build date: 20180119-12:01:23
go version: go1.9.2
Alertmanager version:
alertmanager, version 0.14.0 (branch: HEAD, revision: 30af4d051b37ce817ea7e35b56c57a0e2ec9dbb0)
build user: root@37b6a49ebba9
build date: 20180213-08:16:42
go version: go1.9.2
Prometheus configuration file: