Documentation
¶
Index ¶
- Constants
- type Metadata
- type Profile
- type ProfileMeta
- type PyroscopeClient
- func (c *PyroscopeClient) Diff(ctx context.Context, query string, from, to timeseries.Time) (*Profile, error)
- func (c *PyroscopeClient) Metadata(ctx context.Context) (Metadata, error)
- func (c *PyroscopeClient) Profile(ctx context.Context, view View, query string, from, to timeseries.Time) (*Profile, error)
- func (c *PyroscopeClient) Single(ctx context.Context, query string, from, to timeseries.Time) (*Profile, error)
- type PyroscopeClientConfig
- type Spy
- type Type
- type View
Constants ¶
View Source
const ( TypeCPU = "CPU" TypeMemory = "Memory" TypeOther = "Other" SpyEbpf Spy = "ebpfspy" SpyAgent Spy = "coroot-node-agent" ViewSingle View = "single" ViewDiff View = "diff" PyroscopeSelfProfilingApp = "pyroscope.server" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata []appmetadata.ApplicationMetadata
func (Metadata) GetApplications ¶
func (md Metadata) GetApplications() map[string][]*ProfileMeta
type Profile ¶
type Profile flamebearer.FlamebearerProfileV1
type ProfileMeta ¶
type PyroscopeClient ¶
type PyroscopeClient struct {
// contains filtered or unexported fields
}
func NewPyroscopeClient ¶
func NewPyroscopeClient(config PyroscopeClientConfig) (*PyroscopeClient, error)
func (*PyroscopeClient) Diff ¶
func (c *PyroscopeClient) Diff(ctx context.Context, query string, from, to timeseries.Time) (*Profile, error)
func (*PyroscopeClient) Metadata ¶
func (c *PyroscopeClient) Metadata(ctx context.Context) (Metadata, error)
func (*PyroscopeClient) Profile ¶
func (c *PyroscopeClient) Profile(ctx context.Context, view View, query string, from, to timeseries.Time) (*Profile, error)
func (*PyroscopeClient) Single ¶
func (c *PyroscopeClient) Single(ctx context.Context, query string, from, to timeseries.Time) (*Profile, error)
type PyroscopeClientConfig ¶
type PyroscopeClientConfig struct {
Url string
TlsSkipVerify bool
ApiKey string
BasicAuth *utils.BasicAuth
CustomHeaders []utils.Header
Transport *http.Transport
}
func NewPyroscopeClientConfig ¶
func NewPyroscopeClientConfig(url string) PyroscopeClientConfig
Click to show internal directories.
Click to hide internal directories.