metrics

package
v0.0.0-...-ec279c9 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(m *Prom, cfg *conf.Main)

Register registers the metrics. It fatally fails and exits if metrics fail to register. Meant to be called from main and fail completely if something goes wrong.

Types

type Prom

type Prom struct {
	InRecs         prometheus.Counter
	InRecsBySource *prometheus.CounterVec
	ThrottledRecs  prometheus.Counter

	StateChangeHosts          *prometheus.CounterVec
	StateChangeHostsTotal     prometheus.Counter
	OldConnectionRefresh      *prometheus.CounterVec
	OldConnectionRefreshTotal prometheus.Counter
	ThrottledHosts            *prometheus.CounterVec
	ThrottledHostsTotal       prometheus.Counter
	OutRecs                   *prometheus.CounterVec
	OutRecsTotal              prometheus.Counter

	RewrittenRecsTotal prometheus.Counter

	BlackholedRecs prometheus.Counter
	ErrorRecs      prometheus.Counter

	ActiveTCPConnections  prometheus.Gauge
	InConnectionsTotalTCP prometheus.Counter

	UDPReadFailures prometheus.Counter

	TargetStates             *prometheus.GaugeVec
	NumberOfAvailableTargets *prometheus.GaugeVec
	NumberOfTargets          *prometheus.GaugeVec

	GlobalRateLimiterBlockedReaders    prometheus.Counter
	ContainerRateLimiterBlockedReaders *prometheus.CounterVec

	K8sPickedUpContainers         prometheus.Counter
	K8sCurrentForwardedContainers prometheus.Gauge

	RegexDuration *prometheus.SummaryVec

	Version         *prometheus.CounterVec
	ConfVersion     *prometheus.CounterVec
	ClustersVersion *prometheus.CounterVec
}

Prom is the set of Prometheus metrics.

func New

func New() *Prom

New creates a new set of metrics from the main config. This does not include metrics registration.

Jump to

Keyboard shortcuts

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