prometheus

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectMetrics

func CollectMetrics(dataChan chan MetricData, metric *prometheus.CounterVec)

func CollectMetricsHistogram

func CollectMetricsHistogram(dataHisChan chan MetricHisData, metric *prometheus.HistogramVec)

func NewCounter

func NewCounter(name, help string, labelName []string) *prometheus.CounterVec

func NewHistogram

func NewHistogram(name, help string, labelName []string, buckets []float64) *prometheus.HistogramVec

Types

type MetricData

type MetricData struct {
	Flag     string
	Function string
}

type MetricHisData

type MetricHisData struct {
	Flag     string
	Function string
	Duration int
}

Jump to

Keyboard shortcuts

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