metrics

package
v0.0.0-...-d3b6e4b Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMetricsPort = "127.0.0.1:9191"

defaultMetricsPort is the default port to expose metrics.

Variables

View Source
var (
	// CurrentPendingCSRCountDesc is a metric to report count of pending node CSRs in the cluster
	CurrentPendingCSRCountDesc = prometheus.NewDesc("mapi_current_pending_csr", "Count of recently pending node CSRs at the cluster level", nil, nil)
	// MaxPendingCSRDesc is a metric to report threshold value of the pending node CSRs beyond which all CSR will be ignored by machine approver
	MaxPendingCSRDesc = prometheus.NewDesc("mapi_max_pending_csr", "Threshold value of the pending node CSRs beyond which all CSR will be ignored by machine approver", nil, nil)
)

Functions

This section is empty.

Types

type MetricsCollector

type MetricsCollector struct{}

MetricsCollector is implementing prometheus.Collector interface.

func (*MetricsCollector) Collect

func (mc *MetricsCollector) Collect(ch chan<- prometheus.Metric)

Collect is method required to implement the prometheus.Collector(prometheus/client_golang/prometheus/collector.go) interface.

func (MetricsCollector) Describe

func (mc MetricsCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

Jump to

Keyboard shortcuts

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