monitoring

package
v0.0.0-...-0fb5c5d Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricsMiddleware

func MetricsMiddleware(hf gin.HandlerFunc, endpoint string) gin.HandlerFunc

MetricsMiddleware adds Prometheus monitoring to the endpoint handler

Types

type MetricSet

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

MetricSet is a set of Prometheus metrics of endpoint

func NewMetricSet

func NewMetricSet(endpoint string) *MetricSet

NewMetricSet creates a metric for an endpoint

Jump to

Keyboard shortcuts

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