prometheus

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(opt PrometheusOptions) (ok bool)

Enable prometheus metrics

Types

type PrometheusOptions

type PrometheusOptions struct {
	Namespace       string
	Subsystem       string
	ConstLabels     prometheus.Labels
	DurationBuckets []float64
	BytesBuckets    []float64
	Registerer      prometheus.Registerer
}

PrometheusOptions for common prometheus metrics options

Jump to

Keyboard shortcuts

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