metrics

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MeterName = "vArmor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsModule

type MetricsModule struct {
	Enabled bool
	Refresh int
	// contains filtered or unexported fields
}

func NewMetricsModule

func NewMetricsModule(log logr.Logger, enabled bool, refresh int) *MetricsModule

func (*MetricsModule) RegisterFloat64Counter

func (m *MetricsModule) RegisterFloat64Counter(name string, description string) metric.Float64Counter

func (*MetricsModule) RegisterFloat64Gauge

func (m *MetricsModule) RegisterFloat64Gauge(name string, description string) metric.Float64Gauge

func (*MetricsModule) RegisterFloat64ObservableGauge

func (m *MetricsModule) RegisterFloat64ObservableGauge(name string, options ...metric.Float64ObservableGaugeOption) metric.Float64ObservableGauge

func (*MetricsModule) RegisterGauge

func (m *MetricsModule) RegisterGauge(name string, description string) metric.Float64Gauge

func (*MetricsModule) RegisterHistogram

func (m *MetricsModule) RegisterHistogram(name string, description string, buckets ...float64) metric.Float64Histogram

func (*MetricsModule) RegisterInt64Counter

func (m *MetricsModule) RegisterInt64Counter(name string, description string) metric.Int64Counter

Jump to

Keyboard shortcuts

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