Skip to content

Commit 583057a

Browse files
authored
Merge pull request #6498 from devtron-labs/grafana-revert-patch
fix: Grafana revert patch
2 parents 1676a65 + 9d9440c commit 583057a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cluster/ClusterServiceExtended.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ func (impl *ClusterServiceImplExtended) CreateGrafanaDataSource(clusterBean *bea
267267
if grafanaDatasourceId == 0 {
268268
//starts grafana creation
269269
// appending envId to ensure unique datasource name for each environment (ex- env got deleted and created with same name)
270-
DataSourceName := "Prometheus-" + env.Name + "-EnvId-" + fmt.Sprint(env.Id)
270+
// reverting to old name will be done in next release
271+
DataSourceName := "Prometheus-" + env.Name
271272
createDatasourceReq := grafana.CreateDatasourceRequest{
272273
Name: DataSourceName,
273274
Type: "prometheus",

0 commit comments

Comments
 (0)