metrics

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Subsystem is prometheus subsystem name.
	Subsystem = "local"
)

Variables

View Source
var (
	VolumeGroupTotal = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "volume_group_total",
			Help:      "Allocatable size of VG.",
		},
		[]string{"nodename", "vgname"},
	)
	VolumeGroupUsedByLocal = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "volume_group_used",
			Help:      "Used size of VG.",
		},
		[]string{"nodename", "vgname"},
	)
	MountPointTotal = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "mount_point_total",
			Help:      "Total size of MountPoint.",
		},
		[]string{"nodename", "name", "type"},
	)
	MountPointAvailable = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "mount_point_available",
			Help:      "Available size of MountPoint.",
		},
		[]string{"nodename", "name", "type"},
	)
	MountPointBind = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "mount_point_bind",
			Help:      "Is MountPoint Bind.",
		},
		[]string{"nodename", "name"},
	)
	DeviceTotal = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "device_total",
			Help:      "Total size of Device.",
		},
		[]string{"nodename", "name", "type"},
	)
	DeviceAvailable = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "device_available",
			Help:      "Available size of Device.",
		},
		[]string{"nodename", "name", "type"},
	)
	DeviceBind = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "device_bind",
			Help:      "Is Device Bind.",
		},
		[]string{"nodename", "name"},
	)
	AllocatedNum = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "allocated_num",
			Help:      "allocated number.",
		},
		[]string{"nodename"},
	)
	// storage_name
	// LVM:         VG name
	// MountPoint:  mount path
	// Device:      device path
	LocalPV = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "local_pv",
			Help:      "local PV.",
		},
		[]string{"nodename", "pv_name", "pv_type", "pvc_name", "pvc_ns", "status", "storage_name"},
	)
	InlineVolume = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: Subsystem,
			Name:      "inline_volume",
			Help:      "pod inline volume.",
		},
		[]string{"pod_name", "pod_namespace", "nodename", "vgname", "volume_name"},
	)
)

Functions

func UpdateMetrics added in v0.3.1

func UpdateMetrics(c *cache.ClusterNodeCache)

Types

This section is empty.

Jump to

Keyboard shortcuts

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