Add appset for scraong

This commit is contained in:
dvirlabs 2025-06-01 08:08:37 +03:00
parent f9e44e8b84
commit 323cd123b8
2 changed files with 34 additions and 0 deletions

View File

@ -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

View File

@ -15,3 +15,10 @@ stringData:
authorization: authorization:
type: Bearer type: Bearer
credentials: prometheusmetricstoken credentials: prometheusmetricstoken
- job_name: 'vault'
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- vault.dev-tools.svc.cluster.local:8200