Documentation ¶
Index ¶
- Constants
- Variables
- type BucketConfig
- type BucketType
- type Prometheus
- func (p *Prometheus) CanOperateOn(gadget gadgets.GadgetDesc) bool
- func (p *Prometheus) Close() error
- func (p *Prometheus) Dependencies() []string
- func (p *Prometheus) Description() string
- func (p *Prometheus) EnrichEvent(a any) error
- func (p *Prometheus) GlobalParamDescs() params.ParamDescs
- func (p *Prometheus) Init(globalParams *params.Params) error
- func (p *Prometheus) Instantiate(gadgetCtx operators.GadgetContext, gadgetInstance any, params *params.Params) (operators.OperatorInstance, error)
- func (p *Prometheus) Name() string
- func (p *Prometheus) ParamDescs() params.ParamDescs
- func (p *Prometheus) PostGadgetRun() error
- func (p *Prometheus) PreGadgetRun() error
- type PrometheusProvider
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) 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) }
Click to show internal directories.
Click to hide internal directories.