metrics

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EventsProcessed counts the total number of file events processed
	EventsProcessed = promauto.NewCounter(prometheus.CounterOpts{
		Name: "blink_events_processed_total",
		Help: "The total number of file events processed",
	})

	// EventsFiltered counts the total number of file events filtered out
	EventsFiltered = promauto.NewCounter(prometheus.CounterOpts{
		Name: "blink_events_filtered_total",
		Help: "The total number of file events filtered out",
	})

	// ActiveWatchers tracks the number of active file watchers
	ActiveWatchers = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "blink_active_watchers",
		Help: "The number of active file watchers",
	})
	// WebhookLatency tracks webhook request latency
	WebhookLatency = promauto.NewHistogram(prometheus.HistogramOpts{
		Name:    "blink_webhook_latency_seconds",
		Help:    "The latency of webhook requests",
		Buckets: prometheus.DefBuckets,
	})

	// WebhookErrors counts the total number of webhook errors
	WebhookErrors = promauto.NewCounter(prometheus.CounterOpts{
		Name: "blink_webhook_errors_total",
		Help: "The total number of webhook errors",
	})

	// MemoryUsage tracks the current memory usage
	MemoryUsage = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "blink_memory_bytes",
		Help: "Current memory usage in bytes",
	})
)

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