Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperatorCollector ¶
type OperatorCollector struct {
// contains filtered or unexported fields
}
OperatorCollector implements prometheus.Collector and exposes custom operator metrics.
func NewOperatorCollector ¶
func NewOperatorCollector(c client.Client, licenseAvailable bool) *OperatorCollector
NewOperatorCollector creates a new OperatorCollector. Set licenseAvailable to true when the LicenseKey CRD exists (Calico Enterprise).
func (*OperatorCollector) Collect ¶
func (c *OperatorCollector) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*OperatorCollector) Describe ¶
func (c *OperatorCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
Click to show internal directories.
Click to hide internal directories.