diff --git a/applicationsets/prometheus-scrape-config.yaml b/applicationsets/prometheus-scrape-config.yaml deleted file mode 100644 index 0aec840..0000000 --- a/applicationsets/prometheus-scrape-config.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# apiVersion: argoproj.io/v1alpha1 -# kind: ApplicationSet -# metadata: -# name: prometheus-scrape-config -# namespace: argocd -# spec: -# generators: -# - list: -# elements: -# - name: prometheus-scrape -# path: manifests/prometheus -# template: -# metadata: -# name: '{{name}}' -# spec: -# project: observability -# source: -# repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git -# targetRevision: master -# path: '{{path}}' -# destination: -# server: https://kubernetes.default.svc -# namespace: monitoring -# syncPolicy: {} - # automated: - # prune: true - # selfHeal: true diff --git a/applicationsets/prometheus-scrape-secret.yaml b/applicationsets/prometheus-scrape-secret.yaml new file mode 100644 index 0000000..51272c0 --- /dev/null +++ b/applicationsets/prometheus-scrape-secret.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: prometheus-scrape-secret + namespace: argocd +spec: + project: observability + source: + repoURL: https://git.dvirlabs.com/dvirlabs/observability-stack.git + targetRevision: master + path: manifests/prometheus-scrape-secret + destination: + server: https://kubernetes.default.svc + namespace: monitoring + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/manifests/prometheus-scrape-secret/secret.yaml b/manifests/prometheus-scrape-secret/secret.yaml new file mode 100644 index 0000000..09ab896 --- /dev/null +++ b/manifests/prometheus-scrape-secret/secret.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Secret +metadata: + name: prometheus-additional-scrape-configs + namespace: monitoring + labels: + app.kubernetes.io/name: prometheus +type: Opaque +stringData: + additional-scrape-configs.yaml: | + # This content will be auto-updated by the pipeline + [] diff --git a/manifests/prometheus/prometheus-additional-scrape-configs.yaml b/manifests/prometheus/prometheus-additional-scrape-configs.yaml deleted file mode 100644 index 94c39de..0000000 --- a/manifests/prometheus/prometheus-additional-scrape-configs.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: prometheus-additional-scrape-configs - namespace: monitoring - labels: - app.kubernetes.io/name: prometheus -data: - additional-scrape-configs.yaml: | - - job_name: gitea - metrics_path: /metrics - static_configs: - - targets: - - gitea-http.gitea.svc.cluster.local:3000 - authorization: - type: Bearer - credentials: prometheusmetricstoken - - - job_name: vault - metrics_path: /metrics - static_configs: - - targets: - - vault.dev-tools.svc.cluster.local:8200