metrics

package
v1.25.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success         = "success"
	Failure         = "failure"
	AddOperation    = "add"
	UpdateOperation = "update"
	DeleteOperation = "delete"
)

Variables

View Source
var (
	RequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: plugin.Namespace,
		Subsystem: "bcsscheduler",
		Name:      "request_count_total",
		Help:      "Counter of requests to plugin bcsscheduler.",
	}, []string{"status"})

	RequestOutProxyCount = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: plugin.Namespace,
		Subsystem: "bcsscheduler",
		Name:      "request_out_proxy_count_total",
		Help:      "Counter of requests to external dns.",
	}, []string{"status"})

	RequestLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Namespace: plugin.Namespace,
		Subsystem: "bcsscheduler",
		Name:      "request_latency_seconds",
		Buckets:   plugin.TimeBuckets,
		Help:      "Histogram of the time (in seconds) each request took.",
	}, []string{"status"})

	DnsTotal = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: plugin.Namespace,
		Subsystem: "bcsscheduler",
		Name:      "dns_total",
		Help:      "Total counter of dns in plugin bcsscheduler.",
	})

	ZkNotifyTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: plugin.Namespace,
		Subsystem: "bcsscheduler",
		Name:      "zookeeper_notify_total",
		Help:      "counter of zookeeper notify.",
	}, []string{"operator"})

	StorageOperatorTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: plugin.Namespace,
		Subsystem: "bcsscheduler",
		Name:      "storage_operator_total",
		Help:      "counter of storage operator.",
	}, []string{"operator"})

	StorageOperatorLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Namespace: plugin.Namespace,
		Subsystem: "bcsscheduler",
		Name:      "storage_operator_latency_seconds",
		Buckets:   plugin.TimeBuckets,
		Help:      "Histogram of the time (in seconds) each storage operator.",
	}, []string{"status"})
)

Metrics the bcsscheduler plugin exports.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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