metrics

package
v0.0.0-...-ddad2a0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterSyncFailureVec = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: metricsNamespace,
			Name:      "cluster_sync_failure_total",
			Help:      "Total number of failed cluster syncs.",
		},
		[]string{"reason"},
	)

	StoredAccounts = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Namespace: metricsNamespace,
			Name:      "account_total",
			Help:      "Total number of account added to the storage.",
		},
	)

	ReceivedSamplesDuration = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Namespace: metricsNamespace,
			Name:      "samples_received_duration_seconds",
			Help:      "Duration of metrics request to provider in seconds.",
			Buckets:   prometheus.DefBuckets,
		},
	)

	ReceivedSamples = prometheus.NewCounter(
		prometheus.CounterOpts{
			Namespace: metricsNamespace,
			Name:      "samples_received_total",
			Help:      "Total number of received samples.",
		},
	)

	SentSamples = prometheus.NewCounter(
		prometheus.CounterOpts{
			Namespace: metricsNamespace,
			Name:      "samples_sent_total",
			Help:      "Total number of processed samples sent to edp.",
		},
	)

	FailedSamples = prometheus.NewCounter(
		prometheus.CounterOpts{
			Namespace: metricsNamespace,
			Name:      "samples_sent_failed_total",
			Help:      "Total number of processed samples which failed on send to edp.",
		},
	)

	SentSamplesDuration = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Namespace: metricsNamespace,
			Name:      "samples_sent_duration_seconds",
			Help:      "Duration of sample send calls to edp.",
			Buckets:   prometheus.DefBuckets,
		},
	)
)

Functions

This section is empty.

Types

type WorkqueueMetricsProvider

type WorkqueueMetricsProvider struct{}

Definition of workqueue metrics provider definition

func (*WorkqueueMetricsProvider) NewAddsMetric

func (f *WorkqueueMetricsProvider) NewAddsMetric(name string) workqueue.CounterMetric

func (*WorkqueueMetricsProvider) NewDepthMetric

func (f *WorkqueueMetricsProvider) NewDepthMetric(name string) workqueue.GaugeMetric

func (*WorkqueueMetricsProvider) NewLatencyMetric

func (f *WorkqueueMetricsProvider) NewLatencyMetric(name string) workqueue.HistogramMetric

func (*WorkqueueMetricsProvider) NewLongestRunningProcessorSecondsMetric

func (f *WorkqueueMetricsProvider) NewLongestRunningProcessorSecondsMetric(name string) workqueue.SettableGaugeMetric

func (WorkqueueMetricsProvider) NewRetriesMetric

func (WorkqueueMetricsProvider) NewRetriesMetric(name string) workqueue.CounterMetric

func (*WorkqueueMetricsProvider) NewUnfinishedWorkSecondsMetric

func (f *WorkqueueMetricsProvider) NewUnfinishedWorkSecondsMetric(name string) workqueue.SettableGaugeMetric

func (*WorkqueueMetricsProvider) NewWorkDurationMetric

func (f *WorkqueueMetricsProvider) NewWorkDurationMetric(name string) workqueue.HistogramMetric

Jump to

Keyboard shortcuts

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