prometheus

package
v0.2.0 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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessMetric

func ProcessMetric(rawMetric []byte, counters PrometheusCounters, labelsMapping map[string]string)

Types

type PrometheusCounters

type PrometheusCounters struct {
	HitCounter     prometheus.CounterVec
	HitMissCounter prometheus.CounterVec
	MissCounter    prometheus.CounterVec
	PassCounter    prometheus.CounterVec
	PipeCounter    prometheus.CounterVec
	SynthCounter   prometheus.CounterVec
}

func InitPrometheusCounters

func InitPrometheusCounters(panicOnError bool, fields []string) PrometheusCounters

type VarnishMetric

type VarnishMetric struct {
	HitStatus string         `mapstructure:"Handling"`
	Other     map[string]any `mapstructure:",remain"`
}

Jump to

Keyboard shortcuts

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