@@ -18,6 +18,7 @@ import (
1818
1919 "github.com/cockroachdb/cockroach/pkg/cmd/internal/issues"
2020 "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/registry"
21+ "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/spec"
2122 "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/test"
2223 "github.com/cockroachdb/cockroach/pkg/internal/team"
2324 rperrors "github.com/cockroachdb/cockroach/pkg/roachprod/errors"
@@ -49,7 +50,7 @@ func roachtestPrefix(p string) string {
4950
5051// generateHelpCommand creates a HelpCommand for createPostRequest
5152func generateHelpCommand (
52- clusterName string , start time.Time , end time.Time ,
53+ clusterName string , cloud string , start time.Time , end time.Time ,
5354) func (renderer * issues.Renderer ) {
5455 return func (renderer * issues.Renderer ) {
5556 issues .HelpCommandAsLink (
@@ -60,8 +61,9 @@ func generateHelpCommand(
6061 "How To Investigate (internal)" ,
6162 "https://cockroachlabs.atlassian.net/l/c/SSSBr8c7" ,
6263 )(renderer )
63- // An empty clusterName corresponds to a cluster creation failure
64- if clusterName != "" {
64+ // An empty clusterName corresponds to a cluster creation failure.
65+ // We only scrape metrics from GCE clusters for now.
66+ if spec .GCE == cloud && clusterName != "" {
6567 issues .HelpCommandAsLink (
6668 "Grafana" ,
6769 fmt .Sprintf ("https://go.crdb.dev/p/roachfana/%s/%d/%d" , clusterName , start .UnixMilli (), end .UnixMilli ()),
@@ -223,7 +225,7 @@ func (g *githubIssues) createPostRequest(
223225 Artifacts : artifacts ,
224226 ExtraLabels : labels ,
225227 ExtraParams : clusterParams ,
226- HelpCommand : generateHelpCommand (issueClusterName , start , end ),
228+ HelpCommand : generateHelpCommand (issueClusterName , spec . Cluster . Cloud , start , end ),
227229 }, nil
228230}
229231
0 commit comments