metrics

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HTTP Metrics
	HTTPRequestsTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "quirm_http_requests_total",
			Help: "Total number of HTTP requests processed.",
		},
		[]string{"method", "status", "path"},
	)
	HTTPRequestDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "quirm_http_request_duration_seconds",
			Help:    "Duration of HTTP requests.",
			Buckets: prometheus.DefBuckets,
		},
		[]string{"method", "status", "path"},
	)

	// Cache Metrics
	CacheOpsTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "quirm_cache_ops_total",
			Help: "Total number of cache operations.",
		},
		[]string{"type"},
	)

	// Processing Metrics
	ImageProcessDuration = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Name:    "quirm_image_process_duration_seconds",
			Help:    "Duration of image processing.",
			Buckets: prometheus.DefBuckets,
		},
	)
	ImageProcessErrorsTotal = prometheus.NewCounter(
		prometheus.CounterOpts{
			Name: "quirm_image_process_errors_total",
			Help: "Total number of image processing errors.",
		},
	)

	// Storage Metrics
	S3FetchDuration = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Name:    "quirm_s3_fetch_duration_seconds",
			Help:    "Duration of S3 fetch operations.",
			Buckets: prometheus.DefBuckets,
		},
	)
)

Functions

func Init

func Init()

Init registers all metrics with Prometheus

Types

This section is empty.

Jump to

Keyboard shortcuts

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