metrics

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func (r *Registry) IncCheckInReceived(checkIn string)

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.

func (*Registry) Metrics

func (r *Registry) Metrics() http.Handler

Metrics returns the Prometheus metrics handler.

func (*Registry) SetMonitorSnapshot

func (r *Registry) SetMonitorSnapshot(checkIn string, snapshot monitor.Snapshot)

SetMonitorSnapshot updates all monitor gauges from the current monitor snapshot.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL