profiles

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceEbpf Source = "ebpf"
	SourceGo   Source = "go"

	GoProfileProfile   = "profile"
	GoProfileHeap      = "heap"
	GoProfileGoroutine = "goroutine"
	GoProfileMutex     = "mutex"
	GoProfileBlock     = "block"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string `yaml:"endpoint"`
	Scrape   struct {
		Interval time.Duration `yaml:"interval"`
		Timeout  time.Duration `yaml:"timeout"`
	}
}

type Labels

type Labels map[string]string

func (Labels) Hash

func (ls Labels) Hash() uint64

type Pod

type Pod corev1.Pod

type ProfileKey

type ProfileKey struct {
	ServiceName string
	LabelsHash  uint64
	ProfileType string
}

type Profiles

type Profiles struct {
	// contains filtered or unexported fields
}

func NewProfiles

func NewProfiles(cfg Config, apiKey string) (*Profiles, error)

func (*Profiles) Close added in v0.2.0

func (ps *Profiles) Close()

type ScrapeTarget

type ScrapeTarget struct {
	Address     string
	ServiceName string
	Labels      Labels
}

type Source

type Source string

Jump to

Keyboard shortcuts

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