mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-10 11:06:42 +00:00
19 lines
567 B
C#
19 lines
567 B
C#
using KubernetesWorkflow;
|
|
|
|
namespace DistTestCore.Metrics
|
|
{
|
|
public class PrometheusContainerRecipe : ContainerRecipeFactory
|
|
{
|
|
public override string AppName => "prometheus";
|
|
public override string Image => "codexstorage/dist-tests-prometheus:latest";
|
|
|
|
protected override void Initialize(StartupConfig startupConfig)
|
|
{
|
|
var config = startupConfig.Get<PrometheusStartupConfig>();
|
|
|
|
AddExposedPortAndVar("PROM_PORT");
|
|
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
|
|
}
|
|
}
|
|
}
|