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

Failed to start Prometheus #5040

Closed
janeunbi opened this Issue Dec 26, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@janeunbi
Copy link

janeunbi commented Dec 26, 2018

I was trying to start the Prometheus but it doesn't work. However, it works two days ago.
SO, I don't think it's a conf file problem.
If I try to turn on the service, it turns on for a second but it turns off automatically.
image pasted at 2018-12-26 09-56

I expect to run the service!

Here's the version of my system and prometheus
version

These are the prometheus.yml and prometheus.service files.
prometheus yml
prometheus service

Here's the logs.

logs

Please let me give your hands.

@janeunbi janeunbi changed the title Prometheus Service Doens't Turn ON Failed to start Prometheus Dec 26, 2018

@dannyk81

This comment has been minimized.

Copy link

dannyk81 commented Dec 26, 2018

The log screenshot that you've shown indicates that prometheus is unable to to read/access/parse the specified configuration file.

The log line is truncated, so it's not 100% clear what is the fill error message.

journalctl doesn't wrap long lines by default (either use |less or user the --no-pager flag when running journalctl)

This really doesn't seem like a Prometheus issue, probably better to head over to the Prometheus user group for further assistance: https://groups.google.com/forum/#!forum/prometheus-users

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Jan 2, 2019

The last group (starting with #docker) in your Prometheus configuration file isn't properly indented. You can use the promtool binary to check your configuration file beforehand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.