Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EventTypeLabel - metric label for event type EventTypeLabel = "type" // EventTypeAdd - addition event label EventTypeAdd = "add" // EventTypeDelete - deletion event label EventTypeDelete = "delete" // EventTypeUpdate - update event label EventTypeUpdate = "update" // ReconcileResultLabel - metric label for event result ReconcileResultLabel = "result" // ReconcileResultSuccess - successful event label ReconcileResultSuccess = "success" // ReconcileResultFailure - failed event label ReconcileResultFailure = "failure" )
Variables ¶
This section is empty.
Functions ¶
func RegisterCollector ¶
func RegisterCollector(c *Collector)
RegisterCollector - add collector safely to prometheus
Types ¶
type Collector ¶
type Collector struct { EventType *prom.CounterVec ReconcileResult *prom.CounterVec }
Collector - metric collector for all the metrics the sdk will watch
Click to show internal directories.
Click to hide internal directories.