metrics

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FailCount counts the number of failed requests.
	// These occur when a request cannot be completed.
	//
	// Provides metrics:
	//   rate_table_fail_count{type}
	// Example usage:
	// metrics.FailCount.WithLabelValues("BadTableName").Inc()
	FailCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "rate_table_fail_total",
			Help: "Number of processing failures.",
		},
		[]string{"type"},
	)

	// WarningCount counts all warnings encountered during processing a request.
	//
	// Provides metrics:
	//   rate_table_warning_count{type}
	// Example usage:
	// metrics.WarningCount.WithLabelValues("No bad clients found").Inc()
	WarningCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "rate_table_warning_total",
			Help: "Number of processing warnings.",
		},
		[]string{"type"},
	)

	// BadEndpointCount tracks number of bad endpoints in most recent update.
	//
	// Provides metrics:
	//   rate_table_bad_endpoint_count{}
	// Example usage:
	// metrics.BadEndpointCount.Inc()
	BadEndpointCount = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "rate_table_bad_endpoint_count",
			Help: "Current number of bad endpoints.",
		},
	)
)

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