metrics

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package metrics provides application-level counters using stdlib expvar. Counters are automatically exported on the /debug/vars HTTP endpoint when net/http/pprof is imported in the main binary.

Index

Constants

This section is empty.

Variables

View Source
var (
	RecallTotal      = expvar.NewInt("cortex_recall_total")
	CaptureTotal     = expvar.NewInt("cortex_capture_total")
	StoreTotal       = expvar.NewInt("cortex_store_total")
	DedupSkipped     = expvar.NewInt("cortex_dedup_skipped_total")
	LifecycleExpired = expvar.NewInt("cortex_lifecycle_expired_total")
	LifecycleDecayed = expvar.NewInt("cortex_lifecycle_decayed_total")
	LifecycleRetired = expvar.NewInt("cortex_lifecycle_retired_total")
)

Operation counters.

Functions

func Inc

func Inc(counter *expvar.Int)

Inc increments the given counter by 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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