cs-codex-dist-tests/DistTestCore/Metrics/GrafanaContainerRecipe.cs

30 lines
885 B
C#
Raw Normal View History

2023-08-11 07:37:30 +00:00
using KubernetesWorkflow;
namespace DistTestCore.Metrics
{
public class GrafanaContainerRecipe : ContainerRecipeFactory
{
public override string AppName => "grafana";
public override string Image => "grafana/grafana-oss:10.0.3";
protected override void Initialize(StartupConfig startupConfig)
{
//var config = startupConfig.Get<PrometheusStartupConfig>();
//AddExposedPortAndVar("PROM_PORT");
AddExposedPort(3000);
//AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
2023-08-11 08:16:19 +00:00
// [auth.anonymous]
// enabled = true
//GF_<SectionName>_<KeyName>__FILE
//AddEnvVar("GF_AUTH_ANONYMOUS_ENABLED", "true");
//AddEnvVar("GF_AUTH_DISABLE_LOGIN_FORM", "true");
2023-08-11 08:16:19 +00:00
//[auth]
//disable_login_form = true
2023-08-11 07:37:30 +00:00
}
}
}