diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e5caea46a2..6c30a711690 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ * [ENHANCEMENT] Blocksconvert – Builder: retry block upload before giving up. #3245 * [ENHANCEMENT] Hash ring: added instance registered timestamp to the ring. #3248 * [ENHANCEMENT] Reduce tail latency by smoothing out spikes in rate of chunk flush operations. #3191 +* [ENHANCEMENT] User Cortex as User Agent in http requests issued by Configs DB client. #3264 * [ENHANCEMENT] Experimental Ruler API: Fetch rule groups from object storage in parallel. #3218 * [ENHANCEMENT] Chunks GCS object storage client uses the `fields` selector to limit the payload size when listing objects in the bucket. #3218 * [BUGFIX] No-longer-needed ingester operations for queries triggered by queriers and rulers are now canceled. #3178 diff --git a/pkg/configs/client/client.go b/pkg/configs/client/client.go index da0c1209f17..cc57ad82f6d 100644 --- a/pkg/configs/client/client.go +++ b/pkg/configs/client/client.go @@ -14,6 +14,7 @@ import ( "github.com/go-kit/kit/log/level" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" + "github.com/prometheus/common/version" "github.com/weaveworks/common/instrument" "github.com/cortexproject/cortex/pkg/configs/userconfig" @@ -140,6 +141,8 @@ func doRequest(endpoint string, timeout time.Duration, tlsConfig *tls.Config, si client.Transport = &http.Transport{TLSClientConfig: tlsConfig} } + req.Header.Set("User-Agent", fmt.Sprintf("Cortex/%s", version.Version)) + resp, err := client.Do(req) if err != nil { return nil, err