metric

package
v1.9.18 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionFieldNameMetric     = "action"
	CompressorFieldNameMetric = "compressor"
	NameFieldNameMetric       = "name"
	ActionWriteMetric         = "write"
	ActionReadMetric          = "read"
)

Variables

View Source
var Component = &app.Component{
	Constructor: app.Constructor(func(container container.Container) error {
		return container.Provide(NewMetric)
	}),
}

Functions

This section is empty.

Types

type Metric

type Metric struct {
	FileCount           *prometheus.GaugeVec
	ReadWriteByteLength *prometheus.CounterVec
}

func NewMetric

func NewMetric(appConfig *app.Config) *Metric

Jump to

Keyboard shortcuts

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