trans_prometheus

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ORGPrometheus = make(map[string]PrometheusMap)

var Prometheus = &PrometheusMap{}

Functions

func GenerateOrgMap

func GenerateOrgMap()

func GeneratePrometheusMap

func GeneratePrometheusMap()

Types

type AppLabel

type AppLabel struct {
	AppLabelName        string
	AppLabelColumnIndex int
}

type Label

type Label struct {
	LabelNameID int
	LabelValue  string
}

type PrometheusMap

type PrometheusMap struct {
	MetricNameToID       map[string]uint64
	MetricAppLabelLayout map[string][]AppLabel
	LabelNameToID        map[string]uint64
	LabelIDToName        map[uint64]string
}

func GenerateMap

func GenerateMap(orgID string) (prometheusMap PrometheusMap)

Jump to

Keyboard shortcuts

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