metrics

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 4 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
	// 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