otlp_metrics

package
v0.0.0-...-afca84f Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitProvider

func InitProvider(ctx context.Context, config *Config) (func(ctx context.Context) error, error)

InitProvider initializes a new OTLP Metrics Provider. It returns a function to shut down it.

Types

type Config

type Config struct {
	Endpoint            string
	Protocol            string
	Timeout             int64
	Headers             string
	ExtraEnvVars        map[string]string
	CheckCert           bool
	MinimumPriority     string
	ExtraAttributes     string
	ExtraAttributesList []string
}

Config represents config parameters for OTLP Metrics

type Counter

type Counter interface {
	With(attributes ...attribute.KeyValue) Counter
	Inc()
}

func NewCounter

func NewCounter(name string, description string, supportedAttributes []string) Counter

type OTLPMetrics

type OTLPMetrics struct {
	Falco   Counter
	Inputs  Counter
	Outputs Counter
}

Jump to

Keyboard shortcuts

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