Documentation ¶
Index ¶
Constants ¶
View Source
const (
MetricsNamespace = "managed_upgrade"
)
generics for metric construction
Variables ¶
This section is empty.
Functions ¶
func NewUpgradeCollector ¶
func NewUpgradeCollector(c client.Client) (prometheus.Collector, error)
Consturct a new UpgradeCollector and return to caller.
Types ¶
type ManagedOSMetrics ¶
type ManagedOSMetrics struct {
// contains filtered or unexported fields
}
ManagedOSMetrics holds fields that contain upgrade metrics required to report during an upgrade. These metrics will be consistent regardless of the the upgrade.spec.type.
type UpgradeCollector ¶
type UpgradeCollector struct {
// contains filtered or unexported fields
}
UpgradeCollector is implementing prometheus.Collector interface. All these metrics will need to be registered at bootstrap via main.go as we can not all MustRegister every Reconcile.
func (*UpgradeCollector) Collect ¶
func (uc *UpgradeCollector) Collect(ch chan<- prometheus.Metric)
Collect is method required to implement the prometheus.Collector(prometheus/client_golang/prometheus/collector.go) interface.
func (*UpgradeCollector) Describe ¶
func (uc *UpgradeCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.