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

*: Merge pprof and status port and add flag to set host #1541

Merged
merged 2 commits into from
Aug 2, 2016

Conversation

shenli
Copy link
Member

@shenli shenli commented Aug 2, 2016

  1. Merge pprof port with status port
  2. Add flag to set host
  3. Add flag to disable status report

@coocood @siddontang @BusyJay @tiancaiamao PTAL

@coocood
Copy link
Member

coocood commented Aug 2, 2016

LGTM

1 similar comment
@zimulala
Copy link
Contributor

zimulala commented Aug 2, 2016

LGTM

@@ -289,10 +281,6 @@ func init() {
// Register default memory and goleveldb storage
RegisterLocalStore("memory", goleveldb.MemoryDriver{})
RegisterLocalStore("goleveldb", goleveldb.Driver{})
// start pprof handlers
if EnablePprof {
go http.ListenAndServe(PprofAddr, nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to see pprof now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the same port of prometheus which can the set by --status flag.

@siddontang
Copy link
Member

LGTM

@shenli shenli merged commit 8f93071 into master Aug 2, 2016
@shenli shenli deleted the shenli/pprof-port branch August 2, 2016 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants