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.
Click to show internal directories.
Click to hide internal directories.