2
0
mirror of synced 2025-01-13 10:04:29 +00:00
cs-codex-dist-tests/ProjectPlugins/MetricsPlugin/PrometheusContainerRecipe.cs
2023-09-20 10:51:47 +02:00

19 lines
560 B
C#

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