Skip to content

Commit 2272669

Browse files
committed
fix: get data Source API
1 parent 642fc86 commit 2272669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cluster/ClusterServiceExtended.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func (impl *ClusterServiceImplExtended) CreateGrafanaDataSource(clusterBean *bea
268268
//starts grafana creation
269269
// appending envId to ensure unique datasource name for each environment (ex- env got deleted and created with same name)
270270
// reverting to old name will be done in next release
271-
DataSourceName := "Prometheus-" + env.Name
271+
DataSourceName := "Prometheus-" + env.Name + "-EnvId-" + fmt.Sprint(env.Id)
272272
createDatasourceReq := grafana.CreateDatasourceRequest{
273273
Name: DataSourceName,
274274
Type: "prometheus",

0 commit comments

Comments
 (0)