Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running prometheus providing the path to both the configuration file and the data directory. #3511

Closed
msidibeh2017 opened this Issue Nov 24, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@msidibeh2017
Copy link

msidibeh2017 commented Nov 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 -srm here

  • Prometheus 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 --version here

  • Alertmanager version:

    insert output of alertmanager --version here (if relevant to the issue)

  • Prometheus configuration file:

insert configuration here
  • Alertmanager configuration file:
insert configuration here (if relevant to the issue)
  • Logs:
insert Prometheus and Alertmanager logs relevant to the issue here
@tattsun

This comment has been minimized.

Copy link
Contributor

tattsun commented Nov 25, 2017

@msidibeh2017 Please use --config.file and --storage.tsdb.path instead.
https://prometheus.io/docs/prometheus/latest/getting_started/#starting-prometheus

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Nov 27, 2017

Yep, this is due to breaking change in the flag library. Also read https://prometheus.io/docs/prometheus/latest/migration/

@gouthamve gouthamve closed this Nov 27, 2017

@lock

This comment has been minimized.

Copy link

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 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.
You can’t perform that action at this time.