-
Notifications
You must be signed in to change notification settings - Fork 4
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
[feature] Instrument goProbe with metrics #174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would appreciate if you could take a look at the feedback. Aside from that I've observed that when enabling profiling and metrics in the config:
"api": {
"addr": "127.0.0.1:3005",
"metrics": true,
"profiling": true,
},
and I then try to pull a CPU profile (no matter if via the browser or via go tool pprof
) I always get an empty profile (no error, just no samples; heap etc. work just fine). Can you confirm this? Am I missing something here?
I'll double check with your configuration. But I specifically used a /pprof endpoint to test an API related metric, so not sure what's up in your case. The path is |
Jup, I used this command line call (on top of just navigating via the browser):
And it definitively triggers the profile and pulls it (takes 30s by default, and I can set the time using the |
Could you please run
and see if it still occurs? I was also getting empty profiles for 30 seconds (using |
@fako1024 : feedback amended. Ready when you are. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for incorporating the feedback, LGTM!
Interesting - indeed after 300s I get something:
Belay that, the |
Closes #173