Documentation ¶
Overview ¶
Package metrics provides implementations of prometheus.Collector to collect Asynq queue metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueMetricsCollector ¶
type QueueMetricsCollector struct {
// contains filtered or unexported fields
}
QueueMetricsCollector gathers queue metrics. It implements prometheus.Collector interface.
All metrics exported from this collector have prefix "asynq".
func NewQueueMetricsCollector ¶
func NewQueueMetricsCollector(inspector *asynq.Inspector) *QueueMetricsCollector
NewQueueMetricsCollector returns a collector that exports metrics about Asynq queues.
func (*QueueMetricsCollector) Collect ¶
func (qmc *QueueMetricsCollector) Collect(ch chan<- prometheus.Metric)
func (*QueueMetricsCollector) Describe ¶
func (qmc *QueueMetricsCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.