Documentation
¶
Overview ¶
Package csrmetrics (Compute and Storage Resource Metrics) contains metrics definitions to be recorded for monitoring purposes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutboundRPCStartRecorder ¶
func OutboundRPCStartRecorder(kind string) func(status OutboundRPCStatus)
OutboundRPCStartRecorder marks the start of a outbound RPC operation. Caller is responsible for calling the returned function, which records Prometheus metrics for this operation.
Types ¶
type OutboundRPCStatus ¶
type OutboundRPCStatus string
OutboundRPCStatus is a status string of the outbound RPC metric contains either status code or status string
const ( OutboundRPCStatusNotFound OutboundRPCStatus = "not_found" OutboundRPCStatusError OutboundRPCStatus = "error" OutboundRPCStatusOK OutboundRPCStatus = "ok" )
Status constants for metrics
Click to show internal directories.
Click to hide internal directories.