metrics

package
v1.29.0-alpha.137 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package metrics xxx

Index

Constants

View Source
const (
	// Success xxx
	Success = "success"
	// Failure xxx
	Failure = "failure"
	// AddOperation xxx
	AddOperation = "add"
	// UpdateOperation xxx
	UpdateOperation = "update"
	// DeleteOperation xxx
	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