metric

package
v0.0.0-...-9b8ee4a Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	HueType   string   `json:"type"`
	ResultKey string   `json:"resultKey"`
	FqName    string   `json:"fqName"`
	Help      string   `json:"help"`
	Labels    []string `json:"labels"`

	MetricResult []map[string]interface{}

	PromType   prometheus.ValueType
	PromDesc   *prometheus.Desc
	PromResult []*PrometheusResult
}

Metric struct

type MetricsFile

type MetricsFile struct {
	Metrics []*Metric `json:"metrics"`
}

MetricsFile struct

type PrometheusResult

type PrometheusResult struct {
	PromDesc      *prometheus.Desc
	PromValueType prometheus.ValueType
	Value         float64
	LabelValues   []string
}

PrometheusResult struct

Jump to

Keyboard shortcuts

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