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.
Click to show internal directories.
Click to hide internal directories.