When connecting to Mimir the X-Scope-OrgID: anonymous tenant header is automatically set. However, when using the --prometheus-headers flag to set a custom value for this it isn't propagated. This change ensures that headers set through the cli flags overwrite any additional_headers specified in the code.
When connecting to Mimir the
X-Scope-OrgID: anonymous
tenant header is automatically set. However, when using the--prometheus-headers
flag to set a custom value for this it isn't propagated. This change ensures that headers set through the cli flags overwrite anyadditional_headers
specified in the code.