From 5ab7e6d51dc484ede0f4705df917a0dd43936fe8 Mon Sep 17 00:00:00 2001 From: Janis Date: Sat, 9 May 2026 16:25:25 +0200 Subject: [PATCH] feat(grafana): add Grafana Alloy application configuration and update health probe settings --- .../grafana-alloy/grafana-alloy.yaml | 35 ++++++++++++++++++ grafana-alloy/eu-central-1/values.yaml | 11 ++++++ nowchess/base/nowchess-rollouts.yaml | 36 +++++++++---------- 3 files changed, 64 insertions(+), 18 deletions(-) create mode 100644 eu-central-1/argo-apps/grafana-alloy/grafana-alloy.yaml create mode 100644 grafana-alloy/eu-central-1/values.yaml diff --git a/eu-central-1/argo-apps/grafana-alloy/grafana-alloy.yaml b/eu-central-1/argo-apps/grafana-alloy/grafana-alloy.yaml new file mode 100644 index 0000000..996def6 --- /dev/null +++ b/eu-central-1/argo-apps/grafana-alloy/grafana-alloy.yaml @@ -0,0 +1,35 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: grafana-alloy + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" +spec: + project: default + destination: + namespace: monitoring + server: https://kubernetes.default.svc + sources: + - repoURL: https://grafana.github.io/helm-charts + chart: grafana-cloud-onboarding + targetRevision: 0.4.7 + helm: + valueFiles: + - $values/grafana-alloy/eu-central-1/values.yaml + - repoURL: git@git.janis-eccarius.de:NowChess/GitOps.git + targetRevision: main + ref: values + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + retry: + limit: 3 + backoff: + duration: 10s + factor: 2 + maxDuration: 1m diff --git a/grafana-alloy/eu-central-1/values.yaml b/grafana-alloy/eu-central-1/values.yaml new file mode 100644 index 0000000..5c66000 --- /dev/null +++ b/grafana-alloy/eu-central-1/values.yaml @@ -0,0 +1,11 @@ +cluster: + name: nowchess-eu-central-1 + +grafanaCloud: + fleetManagement: + url: https://fleet-management-prod-011.grafana.net + auth: + username: "1623630" + existingSecret: + name: grafana-alloy-credentials + key: api-key diff --git a/nowchess/base/nowchess-rollouts.yaml b/nowchess/base/nowchess-rollouts.yaml index ddaed32..73facdd 100644 --- a/nowchess/base/nowchess-rollouts.yaml +++ b/nowchess/base/nowchess-rollouts.yaml @@ -64,13 +64,13 @@ spec: httpGet: path: /q/health/live port: 8083 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8083 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: @@ -125,13 +125,13 @@ spec: httpGet: path: /q/health/live port: 8087 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8087 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: @@ -196,13 +196,13 @@ spec: httpGet: path: /q/health/live port: 8086 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8086 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: @@ -283,13 +283,13 @@ spec: httpGet: path: /q/health/live port: 8080 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8080 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: @@ -345,13 +345,13 @@ spec: httpGet: path: /q/health/live port: 8081 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8081 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: @@ -402,13 +402,13 @@ spec: httpGet: path: /q/health/live port: 8088 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8088 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: @@ -460,13 +460,13 @@ spec: httpGet: path: /q/health/live port: 8082 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8082 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: @@ -537,13 +537,13 @@ spec: httpGet: path: /q/health/live port: 8085 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8085 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: @@ -605,13 +605,13 @@ spec: httpGet: path: /q/health/live port: 8084 - initialDelaySeconds: 10 + initialDelaySeconds: 0 periodSeconds: 10 readinessProbe: httpGet: path: /q/health/ready port: 8084 - initialDelaySeconds: 5 + initialDelaySeconds: 0 periodSeconds: 5 resources: requests: