diff --git a/applicationsets/prometheus-scrape-config.yaml b/applicationsets/prometheus-scrape-config.yaml new file mode 100644 index 0000000..2af8740 --- /dev/null +++ b/applicationsets/prometheus-scrape-config.yaml @@ -0,0 +1,27 @@ +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/manifests/prometheus/prometheus-additional-scrape-configs.yaml b/manifests/prometheus/prometheus-additional-scrape-configs.yaml index 62aee1a..57231cb 100644 --- a/manifests/prometheus/prometheus-additional-scrape-configs.yaml +++ b/manifests/prometheus/prometheus-additional-scrape-configs.yaml @@ -15,3 +15,10 @@ stringData: authorization: type: Bearer credentials: prometheusmetricstoken + + - job_name: 'vault' + metrics_path: /metrics + scheme: http + static_configs: + - targets: + - vault.dev-tools.svc.cluster.local:8200