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

23 lines
606 B
C#
Raw Normal View History

2023-04-13 12:36:17 +00:00
using KubernetesWorkflow;
namespace DistTestCore.Metrics
{
public class PrometheusContainerRecipe : ContainerRecipeFactory
{
public override string Image { get; }
2023-04-14 10:37:05 +00:00
public PrometheusContainerRecipe()
{
2023-07-31 07:16:52 +00:00
Image = "codexstorage/dist-tests-prometheus:sha-f97d7fd";
}
2023-04-13 12:36:17 +00:00
protected override void Initialize(StartupConfig startupConfig)
{
var config = startupConfig.Get<PrometheusStartupConfig>();
AddExposedPortAndVar("PROM_PORT");
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
}
}
}