metrics

package
v0.0.0-...-74bb4af Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JobsHistogram = promauto.NewHistogramVec(
		prometheus.HistogramOpts{
			Namespace: namespace,
			Name:      "job_seconds",
			Help:      "Time spent on a job",
		},
		[]string{
			"job_type",
			"status",
		},
	)
	IPFSPeers = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "peers",
		Help:      "Number of connected IPFS peers",
	})
	IPFSRepoDiskUsage = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "repo_disk_used_bytes",
		Help:      "IPFS repo disk usage",
	})
	IPFSRepoStorageMax = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "repo_storage_max_bytes",
		Help:      "IPFS repo max storage limit",
	})
	IPFSRepoObjects = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "repo_objects",
		Help:      "Number of IPFS repo objects",
	})
)

Functions

func ObserveJob

func ObserveJob(jobType string, isErr bool, duration time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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