metrics

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 1

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)

Jump to

Keyboard shortcuts

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