Documentation ¶
Index ¶
- func Configuration() fx.Option
- func CurlConfiguration(c AppConfig) curlhttp.Config
- func ExtractorConfiguration(c AppConfig) extractors.Config
- func LoggingConfiguration(c AppConfig) logging.Configuration
- func PrometheusConfiguration(c AppConfig) prometheus.Configuration
- func ScrapeConfiguration(c AppConfig) scrape.Config
- type AppConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configuration ¶
func CurlConfiguration ¶
func ExtractorConfiguration ¶
func ExtractorConfiguration(c AppConfig) extractors.Config
func LoggingConfiguration ¶
func LoggingConfiguration(c AppConfig) logging.Configuration
func PrometheusConfiguration ¶
func PrometheusConfiguration(c AppConfig) prometheus.Configuration
func ScrapeConfiguration ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Prometheus prometheus.Configuration `mapstructure:"prometheus"` Logging logging.Configuration `mapstructure:"log"` Scrape scrape.Config `mapstructure:"scrape"` Extractors extractors.Config `mapstructure:"extractors"` Curl curlhttp.Config `mapstructure:"curl"` }
func ViperConfiguration ¶
Click to show internal directories.
Click to hide internal directories.