2023-04-13 14:36:17 +02:00
|
|
|
|
using KubernetesWorkflow;
|
|
|
|
|
|
|
|
|
|
namespace DistTestCore.Metrics
|
|
|
|
|
{
|
|
|
|
|
public class PrometheusContainerRecipe : ContainerRecipeFactory
|
|
|
|
|
{
|
2023-07-17 11:12:14 +02:00
|
|
|
|
public override string Image { get; }
|
2023-04-14 12:37:05 +02:00
|
|
|
|
|
2023-07-17 11:12:14 +02:00
|
|
|
|
public PrometheusContainerRecipe()
|
|
|
|
|
{
|
2023-07-31 09:16:52 +02:00
|
|
|
|
Image = "codexstorage/dist-tests-prometheus:sha-f97d7fd";
|
2023-07-17 11:12:14 +02:00
|
|
|
|
}
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|