mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-04 16:24:22 +00:00
20 lines
569 B
C#
20 lines
569 B
C#
using KubernetesWorkflow;
|
|
|
|
namespace DistTestCore.Metrics
|
|
{
|
|
public class PrometheusContainerRecipe : ContainerRecipeFactory
|
|
{
|
|
public const string DockerImage = "thatbenbierens/prometheus-envconf:latest";
|
|
|
|
protected override string Image => DockerImage;
|
|
|
|
protected override void Initialize(StartupConfig startupConfig)
|
|
{
|
|
var config = startupConfig.Get<PrometheusStartupConfig>();
|
|
|
|
AddExposedPortAndVar("PROM_PORT");
|
|
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
|
|
}
|
|
}
|
|
}
|