Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 798 Bytes

PROFILING.md

File metadata and controls

23 lines (13 loc) · 798 Bytes

Circonus Unified Agent profiling

The agent uses the standard package net/http/pprof. This package serves via its HTTP server runtime profiling data in the format expected by the pprof visualization tool.

By default, the profiling is turned off.

To enable profiling you need to specify address to config parameter pprof-addr, for example:

circonus-unified-agentd --config circonus-unified-agent.conf --pprof-addr localhost:6060

There are several paths to get different profiling information:

To look at the heap profile:

go tool pprof http://localhost:6060/debug/pprof/heap

or to look at a 30-second CPU profile:

go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30

To view all available profiles, open http://localhost:6060/debug/pprof/ in your browser.