logos-storage-nim-cs-dist-t.../DistTestCore/Metrics/PrometheusContainerRecipe.cs

23 lines
600 B
C#
Raw Normal View History

2023-04-13 14:36:17 +02:00
using KubernetesWorkflow;
namespace DistTestCore.Metrics
{
public class PrometheusContainerRecipe : ContainerRecipeFactory
{
public override string Image { get; }
2023-04-14 12:37:05 +02:00
public PrometheusContainerRecipe()
{
Image = "thatbenbierens/prometheus-envconf:latest";
}
2023-04-13 14:36:17 +02:00
protected override void Initialize(StartupConfig startupConfig)
{
var config = startupConfig.Get<PrometheusStartupConfig>();
AddExposedPortAndVar("PROM_PORT");
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
}
}
}