utils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HoursInMonth               = 24.35 * 30 // 24.35 is the average amount of hours in a day over a year
	InstanceCPUCostSuffix      = "instance_cpu_usd_per_core_hour"
	InstanceMemoryCostSuffix   = "instance_memory_usd_per_gib_hour"
	InstanceTotalCostSuffix    = "instance_total_usd_per_hour"
	PersistentVolumeCostSuffix = "persistent_volume_usd_per_hour"
)

Variables

This section is empty.

Functions

func GenerateDesc added in v0.6.0

func GenerateDesc(prefix, subsystem, suffix, description string, labels []string) *prometheus.Desc

Types

type LabelMap

type LabelMap map[string]string

type MetricResult

type MetricResult struct {
	FqName     string
	Labels     LabelMap
	Value      float64
	MetricType prometheus.ValueType
}

func ReadMetrics

func ReadMetrics(metric prometheus.Metric) *MetricResult

Jump to

Keyboard shortcuts

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