metrics

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package metrics provides all metrics exported to prometheus by this repo. We centralize our metrics here, because then when we lint our metrics, the linter will not know about (and therefore not complain about) metrics created by other libraries.

Index

Constants

This section is empty.

Variables

View Source
var (
	MissedJobs = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "uuid_annotator_missed_uuids_total",
			Help: "The number of UUIDs that we received but could not create a file for. Should always be zero.",
		},
		[]string{"reason"},
	)
	AnnotationErrors = promauto.NewCounter(
		prometheus.CounterOpts{
			Name: "uuid_annotator_annotation_errors_total",
			Help: "The number of times annotation returned an error",
		},
	)
	GCSFilesLoaded = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "uuid_annotator_gcs_hash_loaded",
			Help: "The hash of the loaded GCS file",
		},
		[]string{"md5"},
	)
	ServerRPCCount = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "uuid_annotator_server_rpcs_total",
			Help: "The number of times the server-side of the RPC service has been called, and whether it was success or not",
		},
		[]string{"status"},
	)
	ClientRPCCount = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "uuid_annotator_client_rpcs_total",
			Help: "The number of times the client-side of the RPC service has been called, and whether it was success or not",
		},
		[]string{"status"},
	)
	RouteViewRows = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "uuid_annotator_routeview_rows_total",
			Help: "The number of routeview rows parsed or skipped",
		},
		[]string{"status"},
	)
	RouteViewParsed = promauto.NewCounter(
		prometheus.CounterOpts{
			Name: "uuid_annotator_routeview_parsed_total",
			Help: "The number of times a routeview file has been parsed",
		},
	)
	ASNSearches = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "uuid_annotator_asn_search_total",
			Help: "The number of ASN annotator searches",
		},
		[]string{"status"},
	)
)

Metrics exported to prometheus for run-time monitoring.

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