2
0
mirror of synced 2025-01-12 17:44:08 +00:00
cs-codex-dist-tests/ProjectPlugins/MetricsPlugin/PrometheusContainerRecipe.cs
2023-10-19 11:12:08 +02:00

21 lines
631 B
C#

using KubernetesWorkflow;
namespace MetricsPlugin
{
public class PrometheusContainerRecipe : ContainerRecipeFactory
{
public override string AppName => "prometheus";
public override string Image => "codexstorage/dist-tests-prometheus:latest";
public const string PortTag = "prometheus_port_tag";
protected override void Initialize(StartupConfig startupConfig)
{
var config = startupConfig.Get<PrometheusStartupConfig>();
AddExposedPortAndVar("PROM_PORT", PortTag);
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
}
}
}