prometheus

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPHandler

func GetHTTPHandler() http.Handler

func InitMetrics

func InitMetrics(config Config)

Types

type Config

type Config struct {
	// Types of prometheus metrics
	Counters   []prometheus.CounterOpts   `json:"counters,omitempty" yaml:"counters,omitempty"`
	Gauges     []prometheus.GaugeOpts     `json:"gauges,omitempty" yaml:"gauges,omitempty"`
	Histograms []prometheus.HistogramOpts `json:"histograms,omitempty" yaml:"histograms,omitempty"`
	Summaries  []prometheus.SummaryOpts   `json:"summaries,omitempty" yaml:"summaries,omitempty"`
}

Jump to

Keyboard shortcuts

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