prometheus

package
v1.300044.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SectionKey = "prometheus"
View Source
const (
	SectionKeyClusterName = "cluster_name"
)
View Source
const (
	SectionKeyConfigPath = "prometheus_config_path"
)

Variables

View Source
var ChildRule = map[string]Rule{}
View Source
var MergeRuleMap = map[string]mergeJsonRule.MergeRule{}

Functions

func GetCurPath

func GetCurPath() string

func RegisterRule

func RegisterRule(fieldname string, r Rule)

Types

type ClusterName

type ClusterName struct {
}

func (*ClusterName) ApplyRule

func (c *ClusterName) ApplyRule(input interface{}) (string, interface{})

type ConfigPath

type ConfigPath struct {
}

func (*ConfigPath) ApplyRule

func (obj *ConfigPath) ApplyRule(input interface{}) (string, interface{})

type Prometheus

type Prometheus struct {
}

func (*Prometheus) ApplyRule

func (p *Prometheus) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

func (*Prometheus) Merge

func (p *Prometheus) Merge(source map[string]interface{}, result map[string]interface{})

type Rule

type Rule translator.Rule

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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