common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MeteorSubsystem = "meteor_operator"
View Source
const (
	SelectorKey = "shower.meteor.zone"
)

Variables

View Source
var (
	MeteorCreated = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: MeteorSubsystem,
			Name:      "meteor_total",
			Help:      "Number of Meteors",
		},
		[]string{"meteor", "url", "ref"},
	)
	MeteorDeleted = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Subsystem: MeteorSubsystem,
			Name:      "meteor_deleted_total",
			Help:      "Number of Meteors deleted",
		},
		[]string{"meteor", "url", "ref"},
	)
	MeteorPhase = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: MeteorSubsystem,
			Name:      "meteor_phase_total",
			Help:      "Gauge of current meteor phase",
		},
		[]string{"meteor", "phase"},
	)
	MeteorRemainingTime = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Subsystem: MeteorSubsystem,
			Name:      "meteor_remaining_ttl_bucket",
			Help:      "Remaining TTL for a Meteor",
			Buckets:   prometheus.LinearBuckets(0, 3600, 48),
		},
		[]string{"meteor"},
	)
)

Functions

func InitMetrics

func InitMetrics()

func MetricsAfterReconcile

func MetricsAfterReconcile(m *meteorv1alpha1.Meteor)

func MetricsBeforeReconcile

func MetricsBeforeReconcile(m *meteorv1alpha1.Meteor)

Types

This section is empty.

Jump to

Keyboard shortcuts

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