Documentation
¶
Index ¶
- type Registry
- func (r *Registry) IncCheckInReceived(checkIn string)
- func (r *Registry) IncNotificationQueueFailed(checkIn string, status monitor.EventStatus)
- func (r *Registry) IncNotificationQueued(checkIn string, status monitor.EventStatus)
- func (r *Registry) IncNotificationSkipped(checkIn string, status monitor.EventStatus, reason string)
- func (r *Registry) Metrics() http.Handler
- func (r *Registry) SetMonitorSnapshot(checkIn string, snapshot monitor.Snapshot)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds Prometheus metrics for the app.
func NewRegistry ¶
func NewRegistry() *Registry
NewRegistry builds a new Prometheus metrics registry.
func (*Registry) IncCheckInReceived ¶
IncCheckInReceived increments the received check-in counter for a monitor.
func (*Registry) IncNotificationQueueFailed ¶ added in v0.0.11
func (r *Registry) IncNotificationQueueFailed(checkIn string, status monitor.EventStatus)
IncNotificationQueueFailed increments the queue failure notification counter.
func (*Registry) IncNotificationQueued ¶ added in v0.0.11
func (r *Registry) IncNotificationQueued(checkIn string, status monitor.EventStatus)
IncNotificationQueued increments the queued notification counter.
func (*Registry) IncNotificationSkipped ¶ added in v0.0.11
func (r *Registry) IncNotificationSkipped(checkIn string, status monitor.EventStatus, reason string)
IncNotificationSkipped increments the skipped notification counter.
Click to show internal directories.
Click to hide internal directories.