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 upcan't pass alertmanager url to prometheus 2.0.0 #3201
Comments
This comment has been minimized.
This comment has been minimized.
|
In version 2 the urls towards your alertmanager(s) have moved from a flag towards the config file. In our case it looks like this: # alert managers
alerting:
alertmanagers:
- scheme: http
static_configs:
- targets:
- "alertmanager-0.alertmanager-headless:9093"
- "alertmanager-1.alertmanager-headless:9093"
- "alertmanager-2.alertmanager-headless:9093" |
This comment has been minimized.
This comment has been minimized.
|
What @JorritSalverda said. The flag has already been deprecated in 1.x for a while now and for 2.0 we removed it entirely. |
fabxc
closed this
Sep 21, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 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 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
kanewinter commentedSep 21, 2017
•
edited
What did you do?
Per: https://prometheus.io/docs/operating/configuration/#
<alertmanager_config>
Sep 21 01:00:54 prometheus prometheus[1515]: time="2017-09-21T01:00:54Z" level=error msg="Error loading config: couldn't load configuration (--config.file=prometheus.yml): unknown fields in config: alertmanager_config" source="main.go:279"
And other docs
[root@prometheus prometheus]# ./prometheus --alertmanager.url
prometheus: error: unknown long flag '--alertmanager.url'
[root@prometheus prometheus]# ./prometheus -alertmanager.url
prometheus: error: unknown short flag '-a'
What did you expect to see?
a successful connection to the alertmanager
There does not seem to be a way to connect prometheus to alertmanager.
Environment
[root@prometheus prometheus]# uname -srm
Linux 3.10.0-693.2.2.el7.x86_64 x86_64
Prometheus version:
insert output of
prometheus -versionhere[root@prometheus prometheus]# ./prometheus -version
prometheus: error: unknown short flag '-v'
Alertmanager version:
[root@prometheus alertmanager]# ./alertmanager -version
alertmanager, version 0.8.0 (branch: HEAD, revision: 74e7e48d24bddd2e2a80c7840af9b2de271cc74c)
build user: root@439065dc2905
build date: 20170720-14:14:06
go version: go1.8.3