Correctly set version info when building, fixed build script and added headers for apps endpoints.

This commit is contained in:
2020-11-28 23:46:24 +05:00
parent cdf9997cfe
commit e679fecf6e
4 changed files with 18 additions and 4 deletions

View File

@@ -27,6 +27,8 @@ 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