prom

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrometheusEndpoint

func PrometheusEndpoint(
	ctx context.Context,
	ctxInfo *global.ContextInfo,
	cfg *PrometheusConfig,
) (pipe.FinalFunc[[]*ebpf.Record], error)

Types

type PrometheusConfig

type PrometheusConfig struct {
	Config             *prom.PrometheusConfig
	AttributeSelectors attributes.Selection
}

PrometheusConfig for network metrics just wraps the global prom.PrometheusConfig as provided by the user

func (PrometheusConfig) Enabled

func (p PrometheusConfig) Enabled() bool

nolint:gocritic

Jump to

Keyboard shortcuts

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