Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Headers map[string]string `yaml:"headers,omitempty"` Metrics []Metric `yaml:"metrics"` HTTPClientConfig pconfig.HTTPClientConfig `yaml:"http_client_config,omitempty"` }
Config contains metrics and headers defining a configuration
func LoadConfig ¶
type Metric ¶
type Metric struct { Name string Path string Labels map[string]string Type MetricType Help string Values map[string]string }
Metric contains values that define a metric
type MetricType ¶
type MetricType string
const ( ValueScrape MetricType = "value" // default ObjectScrape MetricType = "object" )
Click to show internal directories.
Click to hide internal directories.