2
0
mirror of synced 2025-01-12 17:44:08 +00:00
cs-codex-dist-tests/DistTestCore/Metrics/PrometheusContainerRecipe.cs
2023-07-31 09:16:52 +02:00

23 lines
606 B
C#

using KubernetesWorkflow;
namespace DistTestCore.Metrics
{
public class PrometheusContainerRecipe : ContainerRecipeFactory
{
public override string Image { get; }
public PrometheusContainerRecipe()
{
Image = "codexstorage/dist-tests-prometheus:sha-f97d7fd";
}
protected override void Initialize(StartupConfig startupConfig)
{
var config = startupConfig.Get<PrometheusStartupConfig>();
AddExposedPortAndVar("PROM_PORT");
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
}
}
}