Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ExtractorType ¶
type ExtractorType string
const ( JsonPathExtractorValue ExtractorType = "jsonpath" //default JqExtractorValue ExtractorType = "jq" )
type Metric ¶
type Metric struct {
Name string
Path string
Labels map[string]string
Type MetricType
Extractor ExtractorType
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.