prometheus

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusWorkqueueProvider

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

func NewProvider

func NewProvider() *PrometheusWorkqueueProvider

func (*PrometheusWorkqueueProvider) GetMetrics

func (p *PrometheusWorkqueueProvider) GetMetrics() []prom.Collector

func (*PrometheusWorkqueueProvider) NewAddsMetric

func (*PrometheusWorkqueueProvider) NewDeprecatedAddsMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewDeprecatedAddsMetric(name string) workqueue.CounterMetric

func (*PrometheusWorkqueueProvider) NewDeprecatedDepthMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewDeprecatedDepthMetric(name string) workqueue.GaugeMetric

func (*PrometheusWorkqueueProvider) NewDeprecatedLatencyMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewDeprecatedLatencyMetric(name string) workqueue.SummaryMetric

func (*PrometheusWorkqueueProvider) NewDeprecatedLongestRunningProcessorMicrosecondsMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewDeprecatedLongestRunningProcessorMicrosecondsMetric(name string) workqueue.SettableGaugeMetric

func (*PrometheusWorkqueueProvider) NewDeprecatedRetriesMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewDeprecatedRetriesMetric(name string) workqueue.CounterMetric

func (*PrometheusWorkqueueProvider) NewDeprecatedUnfinishedWorkSecondsMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewDeprecatedUnfinishedWorkSecondsMetric(name string) workqueue.SettableGaugeMetric

func (*PrometheusWorkqueueProvider) NewDeprecatedWorkDurationMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewDeprecatedWorkDurationMetric(name string) workqueue.SummaryMetric

func (*PrometheusWorkqueueProvider) NewDepthMetric

func (p *PrometheusWorkqueueProvider) NewDepthMetric(name string) workqueue.GaugeMetric

func (*PrometheusWorkqueueProvider) NewLatencyMetric

func (p *PrometheusWorkqueueProvider) NewLatencyMetric(name string) workqueue.HistogramMetric

func (*PrometheusWorkqueueProvider) NewLongestRunningProcessorSecondsMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewLongestRunningProcessorSecondsMetric(name string) workqueue.SettableGaugeMetric

func (*PrometheusWorkqueueProvider) NewRetriesMetric

func (p *PrometheusWorkqueueProvider) NewRetriesMetric(name string) workqueue.CounterMetric

func (*PrometheusWorkqueueProvider) NewUnfinishedWorkSecondsMetric added in v0.5.0

func (p *PrometheusWorkqueueProvider) NewUnfinishedWorkSecondsMetric(name string) workqueue.SettableGaugeMetric

func (*PrometheusWorkqueueProvider) NewWorkDurationMetric

func (p *PrometheusWorkqueueProvider) NewWorkDurationMetric(name string) workqueue.HistogramMetric

type RESTLatencyMetric

type RESTLatencyMetric struct {
	Summary *prom.SummaryVec
}

func NewRESTLatencyMetric

func NewRESTLatencyMetric() *RESTLatencyMetric

func (*RESTLatencyMetric) Observe

func (m *RESTLatencyMetric) Observe(verb string, u url.URL, latency time.Duration)

type RESTResultMetric

type RESTResultMetric struct {
	Counter *prom.CounterVec
}

func NewRESTResultMetric

func NewRESTResultMetric() *RESTResultMetric

func (*RESTResultMetric) Increment

func (m *RESTResultMetric) Increment(code string, method string, host string)

type WebhookMetric added in v0.10.0

type WebhookMetric struct {
	ExpirationGauge *prom.GaugeVec
	HeartbeatGauge  *prom.GaugeVec
}

func NewTLSCertExpireMetric added in v0.10.0

func NewTLSCertExpireMetric() *WebhookMetric

func (*WebhookMetric) GetMetrics added in v0.10.0

func (m *WebhookMetric) GetMetrics() []prom.Collector

func (*WebhookMetric) ObserveCertificateExpiration added in v0.10.0

func (m *WebhookMetric) ObserveCertificateExpiration(host string, exp time.Time)

func (*WebhookMetric) ObserveHeartBeat added in v0.10.0

func (m *WebhookMetric) ObserveHeartBeat(host string)

Jump to

Keyboard shortcuts

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