collector

package
v0.0.0-...-d1f23fe Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProcessCounter is a Prometheus metric describing the total number of processes executed.
	ProcessCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: namespace,
			Name:      "process_total",
			Help:      "The total number of processes executed.",
		},
		[]string{"exit_code"},
	)

	// ProcessDuration is a Prometheus metric describing the time spent by the consumer to process the message.
	ProcessDuration = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Namespace: namespace,
			Name:      "process_duration_seconds",
			Help:      "The time spent by the consumer to process the message.",
		},
	)

	// MessageDuration is a Prometheus metric describing the time spent from publishing to finished processing the message.
	MessageDuration = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Namespace: namespace,
			Name:      "message_duration_seconds",
			Help:      "The time spent from publishing to finished processing the message.",
		},
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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