config

package
v0.0.0-...-290aaca Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricConfig

type MetricConfig struct {
	Modules map[string]Metrics `yaml:"modules"`
}

func LoadConfig

func LoadConfig() (*MetricConfig, error)

type MetricConfig2

type MetricConfig2 struct {
	Modules struct {
		Namenode struct {
			ScrapeMetrics []string `yaml:"scrape_metrics"`
		} `yaml:"namenode"`
		Yarn struct {
			ScrapeMetrics []string `yaml:"scrape_metrics"`
		} `yaml:"yarn"`
		Hbase struct {
			ScrapeMetrics []string `yaml:"scrape_metrics"`
		} `yaml:"hbase"`
	} `yaml:"modules"`
}

type Metrics

type Metrics struct {
	ScrapeMetrics []string `yaml:"scrape_metrics"`
}

Jump to

Keyboard shortcuts

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