metrics

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorWithDiskCurator  = "disk-curator"
	ErrorWithInodeCurator = "inode-curator"
)

Contants which hold error sources

Variables

View Source
var (

	// Errors is a prometheus metric which keeps total number of the errors
	Errors = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "errors_total",
		Help:      "Total number of the errors",
	}, []string{"source"})

	// FreeStoragePercentages is a prometheus metric which keeps percentages of the free storage
	FreeStoragePercentages = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "free_storage_percentages",
		Help:      "Shows curret free storage percentages",
	})

	// FreeInodePercentages is a prometheus metric which keeps percentages of the free inodes
	FreeInodePercentages = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "free_inode_percentages",
		Help:      "Shows current free inode percentages",
	})

	// TriggeredStorageDeletion is a prometheus metric which keeps total triggered storage deletions
	TriggeredStorageDeletion = promauto.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "triggered_storage_deletion_total",
		Help:      "Shows the total triggers of the storage deletion logic",
	})

	// TriggeredInodeDeletion is a prometheus metric which keeps total triggered inode deletions
	TriggeredInodeDeletion = promauto.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "triggered_inode_deletion_total",
		Help:      "Shows the total triggers of the inode deletion logic",
	})

	// DeletedFilesDueToStorage is a prometheus metric which keeps total deleted files due to lack of storage
	DeletedFilesDueToStorage = promauto.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "deleted_files_due_to_storage_lack_total",
		Help:      "Shows the total amount of deleted storage percentages",
	})

	// DeletedFilesDueToInodes is a prometheus metric which keeps total deleted files due to lack of inodes
	DeletedFilesDueToInodes = promauto.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "deleted_files_due_to_inode_lack_total",
		Help:      "Shows the total amount of deleted inode percentages",
	})
)

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