metrics

package
v0.0.0-...-3909df4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandlerProcessingHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
	Namespace: "worker",
	Name:      "handler_processing",
	Help:      "handler processing time",
}, []string{"pipe", "source", "success"})
View Source
var PipeProcessingMessagesHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
	Namespace: "worker",
	Name:      "pipe_processing",
	Help:      "Pipe processing messages",
}, []string{"pipe", "source", "success"})
View Source
var WorkerBatchSizeGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
	Namespace: "worker",
	Subsystem: "concurrent",
	Name:      "size",
	Help:      "concurrent message handling",
}, []string{"source"})
View Source
var WorkerMaxConcurrencyGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
	Namespace: "worker",
	Subsystem: "concurrent",
	Name:      "max",
	Help:      "max concurrent messages",
}, []string{"source"})

Functions

func Start

func Start(metricsPort int)

func StartTimer

func StartTimer(h *prometheus.HistogramVec) func(...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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