19 lines
572 B
C#
19 lines
572 B
C#
using KubernetesWorkflow;
|
|
|
|
namespace DistTestCore.Metrics
|
|
{
|
|
public class PrometheusContainerRecipe : ContainerRecipeFactory
|
|
{
|
|
public override string AppName => "prometheus";
|
|
public override string Image => "codexstorage/dist-tests-prometheus:sha-f97d7fd";
|
|
|
|
protected override void Initialize(StartupConfig startupConfig)
|
|
{
|
|
var config = startupConfig.Get<PrometheusStartupConfig>();
|
|
|
|
AddExposedPortAndVar("PROM_PORT");
|
|
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
|
|
}
|
|
}
|
|
}
|