Browse Source

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

Torkel Ödegaard 7 years ago
parent
commit
040095b5a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/tsdb/stackdriver/stackdriver.go

+ 1 - 1
pkg/tsdb/stackdriver/stackdriver.go

@@ -314,7 +314,7 @@ func (e *StackdriverExecutor) createRequest(ctx context.Context, dsInfo *models.
 	}
 
 	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
 	plugin, ok := plugins.DataSources[dsInfo.Type]