Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { confighttp.ClientConfig `mapstructure:",squash"` Interval time.Duration `mapstructure:"interval"` CollectorID string `mapstructure:"collector_id"` HTTPSDConfig *PromHTTPSDConfig `mapstructure:"http_sd_config"` HTTPScrapeConfig *PromHTTPClientConfig `mapstructure:"http_scrape_config"` }
type PromHTTPClientConfig ¶
type PromHTTPClientConfig commonconfig.HTTPClientConfig
func (*PromHTTPClientConfig) Unmarshal ¶
func (cfg *PromHTTPClientConfig) Unmarshal(componentParser *confmap.Conf) error
func (*PromHTTPClientConfig) Validate ¶
func (cfg *PromHTTPClientConfig) Validate() error
type PromHTTPSDConfig ¶
PromHTTPSDConfig is a redeclaration of promHTTP.SDConfig because we need custom unmarshaling as prometheus "config" uses `yaml` tags.
Click to show internal directories.
Click to hide internal directories.