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 upRunning prometheus providing the path to both the configuration file and the data directory. #3511
Comments
This comment has been minimized.
This comment has been minimized.
|
@msidibeh2017 Please use |
This comment has been minimized.
This comment has been minimized.
|
Yep, this is due to breaking change in the flag library. Also read https://prometheus.io/docs/prometheus/latest/migration/ |
gouthamve
closed this
Nov 27, 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.
msidibeh2017 commentedNov 24, 2017
What did you do?
sudo -u prometheus /usr/local/bin/prometheus
-config.file /etc/prometheus/prometheus.yml
-storage.local.path /var/lib/prometheus/
What did you expect to see?
INFO[0000] Starting prometheus (version=2.0.0, branch=master, revision=3afb3fffa3a29c3de865e1172fb740442e9d0133) source="main.go:88"
INFO[0000] Build context (go=go1.8.3, user=root@0aa1b7fc430d, date=20170612-11:44:05) source="main.go:89"
INFO[0000] Host details (Linux 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06 UTC 2017 x86_64 prometheus (none)) source="main.go:90"
INFO[0000] Loading configuration file /etc/prometheus/prometheus.yml source="main.go:252"
INFO[0000] Loading series map and head chunks... source="storage.go:428"
INFO[0000] 543 series loaded. source="storage.go:439"
INFO[0000] Starting target manager... source="targetmanager.go:63"
INFO[0000] Listening on :9090 source="web.go:259"
What did you see instead? Under which circumstances?
prometheus: error: unknown short flag '-s'
Environment
Ubuntu 16.10
System information:
(GNU/Linux 4.8.0-22-generic x86_64)
insert output of
uname -srmherePrometheus version:
prometheus, version 2.0.0 (branch: HEAD, revision: 0a74f98)
build user: root@615b82cb36b6
build date: 20171108-07:11:59
go version: go1.9.2
insert output of
prometheus --versionhereAlertmanager version:
insert output of
alertmanager --versionhere (if relevant to the issue)Prometheus configuration file: