collector

package
v5.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

Types

type AzureAPIMetrics

type AzureAPIMetrics interface {
	GetCounterVec(opts prometheus.Opts, labelNames []string) *prometheus.CounterVec
	GetHistogramVec(opts prometheus.Opts, labelNames []string) *prometheus.HistogramVec
}

type AzureAPIMetricsCollector

type AzureAPIMetricsCollector struct {
	// contains filtered or unexported fields
}

func NewAzureAPIMetricsCollector

func NewAzureAPIMetricsCollector(config Config) (*AzureAPIMetricsCollector, error)

func (*AzureAPIMetricsCollector) Collect

func (c *AzureAPIMetricsCollector) Collect(ch chan<- prometheus.Metric) error

func (*AzureAPIMetricsCollector) Describe

func (c *AzureAPIMetricsCollector) Describe(ch chan<- *prometheus.Desc) error

func (*AzureAPIMetricsCollector) GetCounterVec

func (c *AzureAPIMetricsCollector) GetCounterVec(opts prometheus.Opts, labelNames []string) *prometheus.CounterVec

func (*AzureAPIMetricsCollector) GetHistogramVec

func (c *AzureAPIMetricsCollector) GetHistogramVec(opts prometheus.Opts, labelNames []string) *prometheus.HistogramVec

type Config

type Config struct {
	Logger micrologger.Logger
}

Jump to

Keyboard shortcuts

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