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 MetricResult ¶
type MetricResult struct { FqName string Labels LabelMap Value float64 MetricType prometheus.ValueType }
func ReadMetrics ¶
func ReadMetrics(metric prometheus.Metric) *MetricResult
Click to show internal directories.
Click to hide internal directories.