prometheus

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ParamEnableMetrics = "enable-metrics"
	ParamListenAddress = "metrics-listen-address"
	ParamMetricsPath   = "metrics-path"
	// keep aligned with values in pkg/resources/manifests/deploy.yaml
	DefaultListenAddr  = "0.0.0.0:2223"
	DefaultMetricsPath = "/metrics"
)

Variables

View Source
var AllBucketTypes = map[string]struct{}{
	string(BucketTypeExp2):   {},
	string(BucketTypeLinear): {},
}

Functions

This section is empty.

Types

type BucketConfig added in v0.19.0

type BucketConfig struct {
	Type       BucketType
	Min        int
	Max        int
	Multiplier float64
}

type BucketType added in v0.19.0

type BucketType string
const (
	BucketTypeExp2   BucketType = "exp2"
	BucketTypeLinear BucketType = "linear"
)

type Prometheus

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

func (*Prometheus) CanOperateOn

func (p *Prometheus) CanOperateOn(gadget gadgets.GadgetDesc) bool

func (*Prometheus) Close

func (p *Prometheus) Close() error

func (*Prometheus) Dependencies

func (p *Prometheus) Dependencies() []string

func (*Prometheus) Description

func (p *Prometheus) Description() string

func (*Prometheus) EnrichEvent

func (p *Prometheus) EnrichEvent(a any) error

func (*Prometheus) GlobalParamDescs

func (p *Prometheus) GlobalParamDescs() params.ParamDescs

func (*Prometheus) Init

func (p *Prometheus) Init(globalParams *params.Params) error

func (*Prometheus) Instantiate

func (p *Prometheus) Instantiate(gadgetCtx operators.GadgetContext, gadgetInstance any, params *params.Params) (operators.OperatorInstance, error)

func (*Prometheus) Name

func (p *Prometheus) Name() string

func (*Prometheus) ParamDescs

func (p *Prometheus) ParamDescs() params.ParamDescs

func (*Prometheus) PostGadgetRun

func (p *Prometheus) PostGadgetRun() error

func (*Prometheus) PreGadgetRun

func (p *Prometheus) PreGadgetRun() error

type PrometheusProvider added in v0.19.0

type PrometheusProvider interface {
	GetPrometheusConfig() *config.Config
	SetMetricsProvider(metric.MeterProvider)
}

Jump to

Keyboard shortcuts

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