Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerCollector ¶
type ControllerCollector struct {
// contains filtered or unexported fields
}
ControllerCollector collects metrics for the NGF controller. Implements the prometheus.Collector interface.
func NewControllerCollector ¶
func NewControllerCollector(constLabels map[string]string) *ControllerCollector
NewControllerCollector creates a new ControllerCollector.
func (*ControllerCollector) Collect ¶
func (c *ControllerCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface Collect method.
func (*ControllerCollector) Describe ¶
func (c *ControllerCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector interface Describe method.
func (*ControllerCollector) ObserveLastEventBatchProcessTime ¶
func (c *ControllerCollector) ObserveLastEventBatchProcessTime(duration time.Duration)
ObserveLastEventBatchProcessTime adds the last event batch processing time to the histogram.
type ControllerNoopCollector ¶
type ControllerNoopCollector struct{}
ControllerNoopCollector used to initialize the ControllerCollector when metrics are disabled to avoid nil pointer errors.
func NewControllerNoopCollector ¶
func NewControllerNoopCollector() *ControllerNoopCollector
NewControllerNoopCollector returns an instance of the ControllerNoopCollector.
func (*ControllerNoopCollector) ObserveLastEventBatchProcessTime ¶
func (c *ControllerNoopCollector) ObserveLastEventBatchProcessTime(_ time.Duration)
Click to show internal directories.
Click to hide internal directories.