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