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

Improve log messages during 2.0 startup #2680

Closed
grobie opened this Issue May 5, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@grobie
Copy link
Member

grobie commented May 5, 2017

Prometheus 2.0 doesn't log anything useful during a startup of a bit more complex config (k8s_sd, dns_sd, lot's of relabeling).

INFO[0000] Build context (go=go1.8.1, user=grobie@grobook, date=20170505-12:50:08)  source=main.go:74
INFO[0026] Loading configuration file prometheus.yml     source=main.go:215

@grobie grobie added the dev-2.0 label May 5, 2017

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented May 5, 2017

What do you expect it to log?

We don't log anything related to SD/relabelling currently in 1.6 at startup.

@grobie

This comment has been minimized.

Copy link
Member Author

grobie commented May 5, 2017

Anything telling me what it's doing right now instead of locking up for tens of seconds.

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Jun 15, 2017

Fixed in #2844? So the main thing I observed that took time during startup is the reading of WAL by the tsdb.

I added a couple of lines, specifically:

INFO[0000] Starting prometheus (version=, branch=, revision=)  source="main.go:193"
INFO[0000] Build context (go=go1.8.1, user=, date=)      source="main.go:194"
INFO[0000] Host details (linux)                          source="main.go:195"
INFO[0000] Starting tsdb                                 source="main.go:207"               <---------------
INFO[0015] tsdb started                                  source="main.go:213"               <--------------- 
INFO[0015] Loading configuration file prometheus.yml     source="main.go:340"
INFO[0015] Starting target manager...                    source="targetmanager.go:67"
INFO[0015] Listening on :9090                            source="web.go:260"
@ghost

This comment has been minimized.

Copy link

ghost commented Jun 15, 2017

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Jul 5, 2017

Closing this as tsdb startup is the main contributor to the start time and logs now show that.

@gouthamve gouthamve closed this Jul 5, 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.