
metrics
Package metrics owns the Prometheus gauge/counter recording for the proxy package. It exposes a Collector that the orchestrator embeds to refresh gauge values from the metadata store and record per-operation metrics.
Index
type Collector
Collector records Prometheus metrics for manager-level operations and periodically refreshes gauge values from the metadata store.
func New
New creates a Collector with references to the store and usage tracker needed for gauge refreshes.
func (*Collector) RecordOperation
RecordOperation updates Prometheus request count and duration metrics for a single manager operation.
func (*Collector) UpdateQuotaMetrics
UpdateQuotaMetrics fetches quota stats, object counts, active multipart upload counts, and monthly usage, then updates the corresponding Prometheus gauges and caches usage baselines for limit enforcement.
type Deps
Deps is the narrow store surface Collector needs to refresh Prometheus gauges. Defined here - at the consumer - rather than in the store package: adding a new metric is a Collector concern, not a store-package concern.
Generated by gomarkdoc