hadoop

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseContent added in v1.8.2

func ParseContent(content []byte, modulePrefix string, isShowAll bool) []prometheus.Metric

func RequestHandler

func RequestHandler(w http.ResponseWriter, r *http.Request)

func SetLogger

func SetLogger(globalLogger log.Logger)

Types

type CodeMap

type CodeMap struct {
	Code  string `json:"name"`
	Value int    `json:"value"`
}

type Condition added in v1.8.4

type Condition struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type ExporterConfig

type ExporterConfig struct {
	ListenAddress string         `json:"listen"`
	Codes         []CodeMap      `json:"codeMaps"`
	Metrics       []MetricType   `json:"metrics"`
	TargetServers []TargetServer `json:"servers"`
}

type MetricType

type MetricType struct {
	Name       string        `json:"name"`
	Conditions [][]Condition `json:"Conditions"`
}

type TargetServer

type TargetServer struct {
	Name   string `json:"name"`
	URL    string `json:"url"`
	Module string `json:"module"`
}

Jump to

Keyboard shortcuts

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