From 2a6063b1b57a4f456c6fd1b378e254eb2f0a3266 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Wed, 7 May 2025 03:30:08 +0300 Subject: [PATCH] Add prometheus int and prod --- applicationsets/prometheus-appset.yaml | 38 +++++++++++++++++++ charts/prometheus/my-values/values-int.yaml | 34 +++++++++++++++++ .../{ => my-values}/values-prod.yaml | 0 charts/prometheus/values-int.yaml | 0 4 files changed, 72 insertions(+) create mode 100644 charts/prometheus/my-values/values-int.yaml rename charts/prometheus/{ => my-values}/values-prod.yaml (100%) delete mode 100644 charts/prometheus/values-int.yaml diff --git a/applicationsets/prometheus-appset.yaml b/applicationsets/prometheus-appset.yaml index e69de29..091fa69 100644 --- a/applicationsets/prometheus-appset.yaml +++ b/applicationsets/prometheus-appset.yaml @@ -0,0 +1,38 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: prometheus-appset + namespace: argocd +spec: + generators: + - list: + elements: + - env: prod + valuesFile: values-prod.yaml + nameSuffix: prometheus-prod + host: prometheus.dvirlabs.com + - env: int + valuesFile: values-int.yaml + nameSuffix: prometheus-int + host: prometheus-int.dvirlabs.com + template: + metadata: + name: '{{nameSuffix}}' + spec: + project: observability + source: + repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git + targetRevision: master + path: charts/prometheus + helm: + valueFiles: + - my-values/values-{{env}}.yaml + destination: + server: https://kubernetes.default.svc + namespace: monitoring + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true \ No newline at end of file diff --git a/charts/prometheus/my-values/values-int.yaml b/charts/prometheus/my-values/values-int.yaml new file mode 100644 index 0000000..ebc89b3 --- /dev/null +++ b/charts/prometheus/my-values/values-int.yaml @@ -0,0 +1,34 @@ +# values.yaml + +alertmanager: + enabled: false + +pushgateway: + enabled: false + +nodeExporter: + enabled: false + +kubeStateMetrics: + enabled: true + +server: + enabled: true + ingress: + enabled: true + ingressClassName: traefik + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" + hosts: + - prometheus-int.dvirlabs.com + tls: [] + + service: + type: ClusterIP + port: 80 + + extraFlags: + - web.enable-lifecycle + + retention: "15d" diff --git a/charts/prometheus/values-prod.yaml b/charts/prometheus/my-values/values-prod.yaml similarity index 100% rename from charts/prometheus/values-prod.yaml rename to charts/prometheus/my-values/values-prod.yaml diff --git a/charts/prometheus/values-int.yaml b/charts/prometheus/values-int.yaml deleted file mode 100644 index e69de29..0000000