prom

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Timings = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name: "source_event_processing_time_sec",
		Help: "Source event processing time (sec)",
	}, tags)

	Events = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "source_events",
		Help: "Source events count",
	}, tags)

	Errors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "source_errors",
		Help: "Source errors count",
	}, tags)
)

Prometheus metrics

Functions

func Observe

func Observe(tags []string, dur time.Duration)

Observe reports event to Prometheus

Types

This section is empty.

Jump to

Keyboard shortcuts

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