2
0
mirror of synced 2025-02-08 14:43:56 +00:00
cs-codex-dist-tests/DistTestCore/Metrics/PrometheusContainerRecipe.cs

19 lines
573 B
C#
Raw Normal View History

2023-04-13 14:36:17 +02:00
using KubernetesWorkflow;
namespace DistTestCore.Metrics
{
public class PrometheusContainerRecipe : DefaultContainerRecipe
2023-04-13 14:36:17 +02:00
{
2023-08-07 15:51:44 +02:00
public override string AppName => "prometheus";
2023-08-17 11:06:45 +02:00
public override string Image => "codexstorage/dist-tests-prometheus:latest";
2023-04-13 14:36:17 +02:00
protected override void InitializeRecipe(StartupConfig startupConfig)
2023-04-13 14:36:17 +02:00
{
var config = startupConfig.Get<PrometheusStartupConfig>();
AddExposedPortAndVar("PROM_PORT");
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
}
}
}