poke

package module
v0.0.0-...-fa5391c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 4 Imported by: 1

README

poke

GoLang Middleware For Prometheus Monitoring

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) Middleware

func (metrics *Metrics) Middleware(next http.Handler) http.Handler

If none of the metric type is set by calling at least one of `WithCounterVector`, `WithHistogramVector` methods, this method will PANIC.

func (*Metrics) WithCounterVector

func (metrics *Metrics) WithCounterVector(namespace string, subsystem string, metricsName string) *Metrics

func (*Metrics) WithHistogramVector

func (metrics *Metrics) WithHistogramVector(
	namespace string, subsystem string, metricsName string,
	buckets []float64,
) *Metrics

Jump to

Keyboard shortcuts

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