a4b6b561d7
* Add Prometheus annotations for Codex Pods (#48) * Remove unnecessary condition (#48) * Update Annotations to be handled via ContainerRecipe (#48) * Wires up metrics port to codex pod annotation * Cleans up handling of pod labels * Fix annotations names (#48) --------- Co-authored-by: benbierens <thatbenbierens@gmail.com>
19 lines
573 B
C#
19 lines
573 B
C#
using KubernetesWorkflow;
|
|
|
|
namespace DistTestCore.Metrics
|
|
{
|
|
public class PrometheusContainerRecipe : DefaultContainerRecipe
|
|
{
|
|
public override string AppName => "prometheus";
|
|
public override string Image => "codexstorage/dist-tests-prometheus:latest";
|
|
|
|
protected override void InitializeRecipe(StartupConfig startupConfig)
|
|
{
|
|
var config = startupConfig.Get<PrometheusStartupConfig>();
|
|
|
|
AddExposedPortAndVar("PROM_PORT");
|
|
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
|
|
}
|
|
}
|
|
}
|