2
0
mirror of synced 2025-01-28 01:06:15 +00:00
cs-codex-dist-tests/DistTestCore/Metrics/PrometheusContainerRecipe.cs

20 lines
569 B
C#
Raw Normal View History

2023-04-13 14:36:17 +02:00
using KubernetesWorkflow;
namespace DistTestCore.Metrics
{
public class PrometheusContainerRecipe : ContainerRecipeFactory
{
2023-04-14 12:37:05 +02:00
public const string DockerImage = "thatbenbierens/prometheus-envconf:latest";
protected override string Image => DockerImage;
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);
}
}
}