metrics

package
v0.0.0-...-d48a1cd Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountAdd

func CountAdd(k string, v float64, lv ...interface{})

func GaugeDec

func GaugeDec(k string, lv ...interface{})

func GaugeInc

func GaugeInc(k string, lv ...interface{})

func GaugeSet

func GaugeSet(k string, v float64, lv ...interface{})

func Init

func Init(cfg *config.Config)

func InitPrometheus

func InitPrometheus(cfg *config.Config, pms []*PrometheusMetrics)

Types

type PrometheusMetrics

type PrometheusMetrics struct {
	GaugeNames []string
	CountNames []string
	Labels     []string
}

Jump to

Keyboard shortcuts

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