hogprom

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

func NewCollector

func NewCollector(circuitName string) *Middleware

NewCollector returns a hoglet.BreakerMiddleware that exposes prometheus metrics for the circuit. It implements prometheus.Collector and can therefore be registered with a prometheus.Registerer.

⚠️ Note: the provided name must be unique across all hoglet instances ultimately registered to the same prometheus.Registerer.

func (Middleware) Collect

func (m Middleware) Collect(ch chan<- prometheus.Metric)

func (Middleware) Describe

func (m Middleware) Describe(ch chan<- *prometheus.Desc)

func (Middleware) Wrap

Jump to

Keyboard shortcuts

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