metricator/internal/application/config.go

16 lines
455 B
Go
Raw Normal View History

package application
import "time"
// Config is a generic application configuration.
type Config struct {
// Endpoint is a remote application endpoint which should give us metrics
// in Prometheus format.
Endpoint string
// Headers is a list of headers that should be added to metrics request.
Headers map[string]string
// TimeBetweenRequests is a minimal amount of time which should pass
// between requests.
TimeBetweenRequests time.Duration
}