Commit 040095b5 by Torkel Ödegaard

fix: use same User-Agent header as in other places in grafana when making external requests

parent 855a2a92
...@@ -314,7 +314,7 @@ func (e *StackdriverExecutor) createRequest(ctx context.Context, dsInfo *models. ...@@ -314,7 +314,7 @@ func (e *StackdriverExecutor) createRequest(ctx context.Context, dsInfo *models.
} }
req.Header.Set("Content-Type", "application/json") req.Header.Set("Content-Type", "application/json")
req.Header.Set("User-Agent", fmt.Sprintf("grafana-sd-plugin/%s", setting.BuildVersion)) req.Header.Set("User-Agent", fmt.Sprintf("Grafana/%s", setting.BuildVersion))
// find plugin // find plugin
plugin, ok := plugins.DataSources[dsInfo.Type] plugin, ok := plugins.DataSources[dsInfo.Type]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment