mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-05-26 11:09:32 +00:00
25 lines
812 B
C#
25 lines
812 B
C#
using KubernetesWorkflow;
|
|
using KubernetesWorkflow.Recipe;
|
|
|
|
namespace MetricsPlugin
|
|
{
|
|
public class PrometheusContainerRecipe : ContainerRecipeFactory
|
|
{
|
|
public override string AppName => "prometheus";
|
|
public override string Image => "logosstorage/dist-tests-prometheus:latest";
|
|
|
|
public const string PortTag = "prometheus_port_tag";
|
|
|
|
protected override void Initialize(StartupConfig startupConfig)
|
|
{
|
|
var config = startupConfig.Get<PrometheusStartupConfig>();
|
|
|
|
ScheduleInPoolsWithLabel("workload-type", "tests-pods");
|
|
AddToleration("cloud.google.com/gke-spot", "true", "NoSchedule");
|
|
|
|
AddExposedPortAndVar("PROM_PORT", PortTag);
|
|
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
|
|
}
|
|
}
|
|
}
|