metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler returns an HTTP handler for /metrics endpoint.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics holds Prometheus counters.

func Init

func Init() *Metrics

Init initializes global metrics (idempotent).

func (*Metrics) AlertsDropped

func (m *Metrics) AlertsDropped()

AlertsDropped increments the alerts dropped counter.

func (*Metrics) AlertsSent

func (m *Metrics) AlertsSent()

AlertsSent increments the alerts sent counter.

func (*Metrics) BlocksProcessed

func (m *Metrics) BlocksProcessed()

BlocksProcessed increments the blocks processed counter.

func (*Metrics) Errors

func (m *Metrics) Errors()

Errors increments the errors counter.

Jump to

Keyboard shortcuts

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