worker

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerCollector

type WorkerCollector struct {
	// contains filtered or unexported fields
}

WorkerCollector implements NamedCollector and gathers worker-related metrics.

func NewWorkerCollector

func NewWorkerCollector(ctx context.Context, log logrus.FieldLogger, cfg *config.Config, queuesProvider queues.Provider) *WorkerCollector

NewWorkerCollector creates a WorkerCollector.

func (*WorkerCollector) Collect

func (c *WorkerCollector) Collect(ch chan<- prometheus.Metric)

func (*WorkerCollector) DecMessagesInProgress

func (c *WorkerCollector) DecMessagesInProgress()

func (*WorkerCollector) Describe

func (c *WorkerCollector) Describe(ch chan<- *prometheus.Desc)

func (*WorkerCollector) IncMessageRetries

func (c *WorkerCollector) IncMessageRetries()

func (*WorkerCollector) IncMessagesInProgress

func (c *WorkerCollector) IncMessagesInProgress()

func (*WorkerCollector) IncMessagesProcessed

func (c *WorkerCollector) IncMessagesProcessed(status string)

func (*WorkerCollector) IncPermanentFailures

func (c *WorkerCollector) IncPermanentFailures()

func (*WorkerCollector) IncRetryableFailures

func (c *WorkerCollector) IncRetryableFailures()

func (*WorkerCollector) IncTasksByType

func (c *WorkerCollector) IncTasksByType(taskType string)

func (*WorkerCollector) ObserveProcessingDuration

func (c *WorkerCollector) ObserveProcessingDuration(duration time.Duration)

func (*WorkerCollector) ObserveTaskExecutionDuration

func (c *WorkerCollector) ObserveTaskExecutionDuration(taskType string, duration time.Duration)

func (*WorkerCollector) SetConsumersActive

func (c *WorkerCollector) SetConsumersActive(count float64)

func (*WorkerCollector) SetQueueDepth

func (c *WorkerCollector) SetQueueDepth(queue string, depth float64)

func (*WorkerCollector) SetRedisConnectionStatus

func (c *WorkerCollector) SetRedisConnectionStatus(connected bool)

func (*WorkerCollector) UpdateLastSuccessfulTask

func (c *WorkerCollector) UpdateLastSuccessfulTask()

Jump to

Keyboard shortcuts

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