Skip to content

Commit

Permalink
grafana for Multiple instances of the same host (#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
lastincisor authored Sep 15, 2023
1 parent 2446193 commit 9d1ba4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/spec/grafana.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 9d1ba4b

Please sign in to comment.