Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics represents the stats for observability
func InitMetrics ¶
InitMetrics will initialize, register and expose, via http server, the metrics with Opentelemetry.
func (Metrics) ErrorEventsInc ¶
ErrorEventsInc will increment one for the event errors counter, partitioned by action, and only if metrics are enabled.
func (Metrics) NodeActionsInc ¶
NodeActionsInc will increment one for the node stats counter, partitioned by action, nodeName and status, and only if metrics are enabled.
Click to show internal directories.
Click to hide internal directories.