mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-09 08:53:13 +00:00
23 lines
606 B
C#
23 lines
606 B
C#
using KubernetesWorkflow;
|
|
|
|
namespace DistTestCore.Metrics
|
|
{
|
|
public class PrometheusContainerRecipe : ContainerRecipeFactory
|
|
{
|
|
public override string Image { get; }
|
|
|
|
public PrometheusContainerRecipe()
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|