The command continuously tracks configured
targets and attaches profilers to them. This command is primarily supposed
to be run in the context of a service manager such as systemd or Windows Service Control Manager, or when the target
application is not known in advance.
pyroscope agent command is only supported on Windows.
Command line arguments
|log-file-path||Log file path.|
|log-level||info||Log level: debug|info|warn|error.|
|no-logging||false||Disables logging from pyroscope.|
|server-address||http://localhost:4040||Address of the pyroscope server.|
|auth-token||Authorization token used to upload profiling data.|
|upstream-threads||4||Number of upload threads.|
|upstream-request-timeout||10s||Profile upload timeout.|
Configuration file options
Targets describe applications to be profiled. At this moment the only supported type is
targets can not be specified with command line arguments or environment variables.
This example shows how a system service with name
MyService may be profiled: