metrics

package
v0.0.0-...-45d3223 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TaskRegisteredTotal keeps track of registered tasks
	TaskRegisteredTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "orc_task_registered_total",
			Help: "Number of registered tasks",
		},
		[]string{"channel"},
	)

	// TaskRegistrationBatchSize monitors the usual batch size when registering tasks
	TaskRegistrationBatchSize = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "orc_task_registration_batch_size",
			Help:    "Size of task batches",
			Buckets: []float64{5, 10, 50, 100, 500, 1000, 5000, 10000},
		},
		[]string{"channel"},
	)

	// TaskUpdatedTotal counts the number of task updates
	TaskUpdatedTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "orc_task_updated_total",
			Help: "Number of updated tasks",
		},
		[]string{"channel", "status"},
	)

	// TaskUpdateCascadeSize keeps track of how many tasks are updated in cascade
	TaskUpdateCascadeSize = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "orc_task_update_cascade_size",
			Help:    "Number of updated children as a consequence of a task update",
			Buckets: []float64{5, 10, 50, 100, 500, 1000, 5000, 10000},
		},
		[]string{"channel", "status"},
	)
)

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