mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-10 11:06:42 +00:00
* 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>
26 lines
857 B
C#
26 lines
857 B
C#
using KubernetesWorkflow;
|
|
|
|
namespace DistTestCore.Metrics
|
|
{
|
|
public class GrafanaContainerRecipe : DefaultContainerRecipe
|
|
{
|
|
public override string AppName => "grafana";
|
|
public override string Image => "grafana/grafana-oss:10.0.3";
|
|
|
|
public const string DefaultAdminUser = "adminium";
|
|
public const string DefaultAdminPassword = "passwordium";
|
|
|
|
protected override void InitializeRecipe(StartupConfig startupConfig)
|
|
{
|
|
AddExposedPort(3000);
|
|
|
|
AddEnvVar("GF_AUTH_ANONYMOUS_ENABLED", "true");
|
|
AddEnvVar("GF_AUTH_ANONYMOUS_ORG_NAME", "Main Org.");
|
|
AddEnvVar("GF_AUTH_ANONYMOUS_ORG_ROLE", "Editor");
|
|
|
|
AddEnvVar("GF_SECURITY_ADMIN_USER", DefaultAdminUser);
|
|
AddEnvVar("GF_SECURITY_ADMIN_PASSWORD", DefaultAdminPassword);
|
|
}
|
|
}
|
|
}
|