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: "sink_event_processing_time_sec",
		Help: "Sink event processing time (sec)",
	}, tags)

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

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

Prometheus metrics

Functions

func Observe

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

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