metrics

package
v0.0.0-...-12cbba4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 4 Imported by: 16

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