metrics

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConsulFailure returns counter for consul_errors_total metric
	ConsulFailure = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "consul_errors_total",
			Help: "Number of Consul errors for HTTP request.",
		},
		[]string{"operation", "consul_address"},
	)

	// ConsulSuccess returns counter for consul_successes_total metric
	ConsulSuccess = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "consul_successes_total",
			Help: "Number of Consul success for HTTP request.",
		},
		[]string{"operation", "consul_address"},
	)
)
View Source
var (
	// PodFailure returns counter for pod_errors_total metric
	PodFailure = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "pod_errors_total",
			Help: "Number of failure operation on PODs",
		},
		[]string{"operation"},
	)

	// PodSuccess returns counter for pod_successes_total metric
	PodSuccess = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "pod_successes_total",
			Help: "Number of succeed operation on PODs",
		},
		[]string{"operation"},
	)

	// FuncDuration returns summary for controller_function_duration_seconds metric
	FuncDuration = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Name:       "controller_function_duration_seconds",
			Help:       "The runtime of an function.",
			Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001},
		},
		[]string{"function"},
	)
)

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