metricator/internal/application/config.go

17 lines
544 B
Go
Raw Normal View History

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"`
// Endpoint is a remote application endpoint which should give us metrics
// in Prometheus format.
Endpoint string `yaml:"endpoint"`
// TimeBetweenRequests is a minimal amount of time which should pass
// between requests.
2021-11-21 14:45:09 +05:00
// nolint:tagliatelle
TimeBetweenRequests time.Duration `yaml:"time_between_requests"`
}