2020-11-29 03:22:39 +05:00
|
|
|
package application
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
// Config is a generic application configuration.
|
|
|
|
type Config struct {
|
2020-12-23 19:31:09 +05:00
|
|
|
// Headers is a list of headers that should be added to metrics request.
|
|
|
|
Headers map[string]string `yaml:"headers"`
|
2020-11-29 03:22:39 +05:00
|
|
|
// Endpoint is a remote application endpoint which should give us metrics
|
|
|
|
// in Prometheus format.
|
2020-11-29 05:44:21 +05:00
|
|
|
Endpoint string `yaml:"endpoint"`
|
2020-11-29 03:22:39 +05:00
|
|
|
// TimeBetweenRequests is a minimal amount of time which should pass
|
|
|
|
// between requests.
|
2020-11-29 05:44:21 +05:00
|
|
|
TimeBetweenRequests time.Duration `yaml:"time_between_requests"`
|
2020-11-29 03:22:39 +05:00
|
|
|
}
|