prometheus

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Namespace is the name space for metrics exported to prometheus
	Namespace = "dealbot"
	// StorageTasks is the subsystem to record storage task metrics
	StorageTasks = "storage_tasks"
	// RetrievalTasks is the subsystem to record retrieval tasks metrics
	RetrievalTasks = "retrieval_tasks"
	// Duration is the name of our metric -- the duration it took to get to the given status
	Duration = "duration"
	// Help is a description of what duration measures
	Help = "task duration in milliseconds to get to the specified status"
)

Variables

View Source
var Buckets = []float64{
	float64(time.Second.Milliseconds()),
	float64(time.Minute.Milliseconds()),
	float64(time.Hour.Milliseconds()),
	float64(time.Hour.Milliseconds() * 24),
}

Buckets are the default histogram buckets for measuring duration (essentially, second, minute, hour, day, and everything else)

RetrievalLabels are the way we categorize retrieval tasks TODO: do we want ALL of these labels? Do PayloadCID/CARExport matter here?

StorageLabels are the ways we categorize storage tasks TODO: do we want ALL of these labels? It will mean a LOT of data

Functions

func NewPrometheusMetricsRecorder

func NewPrometheusMetricsRecorder() metrics.MetricsRecorder

NewPrometheusMetricsRecorder returns a recorder that is connected to prometheus

Types

This section is empty.

Jump to

Keyboard shortcuts

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