metric

package
v0.0.0-...-18cf193 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionArg

type ActionArg struct {
	Name           string `json:"Name"`
	IsIndex        bool   `json:"IsIndex"`
	ProviderAction string `json:"ProviderAction"`
	Value          string `json:"Value"`
}

type LabelRename

type LabelRename struct {
	MatchRegex  string `json:"matchRegex"`
	RenameLabel string `json:"renameLabel"`
	Pattern     regexp.Regexp
}

LabelRename struct

type Metric

type Metric struct {
	PromDesc       PromDesc   `json:"promDesc"`
	PromType       string     `json:"promType"`
	ResultKey      string     `json:"resultKey"`
	OkValue        string     `json:"okValue"`
	ResultPath     string     `json:"resultPath"`
	Page           string     `json:"page"`
	Service        string     `json:"service"`
	Action         string     `json:"action"`
	ActionArgument *ActionArg `json:"actionArgument"`

	Desc  *prometheus.Desc
	Type  prometheus.ValueType
	Value float64

	MetricResult []map[string]interface{} //filled during collect
	PromResult   []*PrometheusResult
	// contains filtered or unexported fields
}

Metric struct

type MetricsFile

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

MetricsFile struct

type PromDesc

type PromDesc struct {
	FqName      string            `json:"fqName"`
	Help        string            `json:"help"`
	VarLabels   []string          `json:"varLabels"`
	FixedLabels map[string]string `json:"fixedLabels"`
}

PromDesc struct

type PrometheusResult

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

Jump to

Keyboard shortcuts

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