Documentation
¶
Index ¶
Constants ¶
View Source
const ( DOWN float64 = 0 UP float64 = 1 )
heartbeats_heartbeat_last_status
View Source
const ( SUCCESS float64 = 0 ERROR float64 = 1 )
heartbeats_receiver_last_status
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶ added in v0.20.0
type Registry struct {
// contains filtered or unexported fields
}
Registry holds Prometheus metrics for the app.
func (*Registry) IncHeartbeatReceived ¶ added in v0.20.0
IncHeartbeatReceived increments the receive counter for a heartbeat.
func (*Registry) SetHeartbeatStatus ¶ added in v0.20.0
SetHeartbeatStatus updates the last status gauge for a heartbeat.
func (*Registry) SetReceiverStatus ¶ added in v0.20.0
SetReceiverStatus sets the receiver status gauge.
Click to show internal directories.
Click to hide internal directories.