metrics

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FeatureDisabled = 0
View Source
const FeatureEnabled = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderMetrics

type ProviderMetrics struct {
	Name string

	ReconciliationTotalDuration           *k8smetrics.HistogramVec
	ReconciliationCreateErrorsTotal       *k8smetrics.CounterVec
	ReconciliationDeleteRetriesTotal      *k8smetrics.CounterVec
	ReconciliationDeleteErrorsTotal       *k8smetrics.CounterVec
	ReconciliationCreatedTotal            *k8smetrics.CounterVec
	ReconciliationDeletedTotal            *k8smetrics.CounterVec
	ReconciliationCreateResources         *k8smetrics.HistogramVec
	ReconciliationPendingResources        *k8smetrics.GaugeVec
	ReconciliationRetrievedResourcesTotal *k8smetrics.CounterVec
	// contains filtered or unexported fields
}

func NewProviderMetrics

func NewProviderMetrics(providerName, providerVersion string) ProviderMetrics

NewProviderMetrics returns a prometheus.Collector for Provider Metrics.

func (*ProviderMetrics) ClearState

func (p *ProviderMetrics) ClearState()

func (*ProviderMetrics) Collect

func (p *ProviderMetrics) Collect(metrics chan<- prometheus.Metric)

func (*ProviderMetrics) Create

func (p *ProviderMetrics) Create(_ *semver.Version) bool

func (*ProviderMetrics) Describe

func (p *ProviderMetrics) Describe(descs chan<- *prometheus.Desc)

func (*ProviderMetrics) FQName

func (p *ProviderMetrics) FQName() string

func (*ProviderMetrics) MarkFeatureDisabled

func (p *ProviderMetrics) MarkFeatureDisabled(featureName string)

func (*ProviderMetrics) MarkFeatureEnabled

func (p *ProviderMetrics) MarkFeatureEnabled(featureName string)

Jump to

Keyboard shortcuts

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