mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-04 22:43:07 +00:00
19 lines
560 B
C#
19 lines
560 B
C#
using KubernetesWorkflow;
|
|
|
|
namespace MetricsPlugin
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|