utils

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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
)

Variables

This section is empty.

Functions

This section is empty.

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