Chore: expose grpc server address (#56013)

This commit is contained in:
Artur Wierzbicki
2022-09-29 08:42:01 -04:00
committed by GitHub
parent 1e8f8dff4b
commit 64eff8196c
3 changed files with 22 additions and 5 deletions
+7
View File
@@ -311,6 +311,12 @@ func CreateGrafDir(t *testing.T, opts ...GrafanaOpts) (string, string) {
_, err = logSection.NewKey("enabled", "false")
require.NoError(t, err)
}
if o.GRPCServerAddress != "" {
logSection, err := getOrCreateSection("grpc_server")
require.NoError(t, err)
_, err = logSection.NewKey("address", o.GRPCServerAddress)
require.NoError(t, err)
}
}
cfgPath := filepath.Join(cfgDir, "test.ini")
@@ -341,4 +347,5 @@ type GrafanaOpts struct {
EnableUnifiedAlerting bool
UnifiedAlertingDisabledOrgs []int64
EnableLog bool
GRPCServerAddress string
}