collector

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

Collector

See the parent README for usage.

API

All requests are authenticated with an Authorization header containing a Bearer token.

POST /v1/submit

Request body: <pprof profile bytes>

Submits a pprof CPU profile. The profile should be validated to ensure it is actually a pprof CPU profile.

Returns 200 OK or 204 No Content to indicate success, any other status code for failure. No useful response body should be expected.

POST /v1/merge?and_combine=true|false

Requests a merged pprof CPU profile of all stored profiles. When and_combine is true, the merged profile will replace all the stored profiles on the backend. When and_combine is false (or not true, the default), the stored profiles will be kept as-is.

Combining profiles is largely a space-saving measure for the backend. If 240 profiles are submitted each day, then it may be in the caller's interest to combine that down to 1 profile for the next day.

Returns 200 OK with the pprof profile to indicate success, any other status code for failure.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL