Documentation ¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsWrongTypeError(err error) bool
- type AzureAPIMetrics
- type AzureAPIMetricsCollector
- func (c *AzureAPIMetricsCollector) Collect(ch chan<- prometheus.Metric) error
- func (c *AzureAPIMetricsCollector) Describe(ch chan<- *prometheus.Desc) error
- func (c *AzureAPIMetricsCollector) GetCounterVec(opts prometheus.Opts, labelNames []string) *prometheus.CounterVec
- func (c *AzureAPIMetricsCollector) GetHistogramVec(opts prometheus.Opts, labelNames []string) *prometheus.HistogramVec
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsWrongTypeError ¶
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
}
Click to show internal directories.
Click to hide internal directories.