diff --git a/pkg/cluster/spec/grafana.go b/pkg/cluster/spec/grafana.go index ae6b39f817..d4f1824444 100644 --- a/pkg/cluster/spec/grafana.go +++ b/pkg/cluster/spec/grafana.go @@ -181,7 +181,7 @@ func (i *GrafanaInstance) InitConfig( // transfer config spec := i.InstanceSpec.(*GrafanaSpec) - fp = filepath.Join(paths.Cache, fmt.Sprintf("grafana_%s.ini", i.GetHost())) + fp = filepath.Join(paths.Cache, fmt.Sprintf("grafana_%s_%d.ini", i.GetHost(), i.GetPort())) if err := config.NewGrafanaConfig(i.GetHost(), paths.Deploy). WithPort(uint64(i.GetPort())). WithUsername(spec.Username).