types

package
v0.0.0-...-88863ba Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExporterConfig

type ExporterConfig struct {
	ScrapeConfig ScrapeConfig `yaml:"scrape_config"`
	GlobalConfig GlobalConfig `yaml:"global_config"`
}

type GlobalConfig

type GlobalConfig struct {
	MetricNamePrefix string `yaml:"metric_name_prefix"`
	Port             int
}

type MetricConfig

type MetricConfig struct {
	Name   string
	Help   string
	Type   string
	Labels map[string]string
}

type ScrapeConfig

type ScrapeConfig struct {
	Name                  string `yaml:",omitempty"`
	Address               string
	Selector              string
	DecimalPointSeparator string       `yaml:"decimal_point_separator"`
	ThousandsSeparator    string       `yaml:"thousands_separator"`
	MetricConfig          MetricConfig `yaml:"metric"`
}

Jump to

Keyboard shortcuts

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