metrics

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InlineRequests = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "inline_requests_total",
		Help: "Total number of requests",
	})

	PrivateMessageRequests = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "private_message_requests_total",
		Help: "Total number of private message requests",
	})

	ExtractDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name:    "extract_duration_seconds",
		Help:    "Duration of media extraction by source.",
		Buckets: prometheus.DefBuckets,
	}, []string{"source"})

	ExtractErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "extract_errors_total",
		Help: "Number of media extraction errors by source and kind.",
	}, []string{"source", "kind"})

	TelegramSendErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "telegram_send_errors_total",
		Help: "Number of Telegram send errors by kind.",
	}, []string{"kind"})

	MediaSizeBytes = prometheus.NewHistogram(prometheus.HistogramOpts{
		Name:    "media_size_bytes",
		Help:    "Sizes of downloaded media items in bytes.",
		Buckets: prometheus.ExponentialBuckets(64*1024, 2, 12),
	})
)

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