Add appset for scraong
This commit is contained in:
parent
f9e44e8b84
commit
323cd123b8
27
applicationsets/prometheus-scrape-config.yaml
Normal file
27
applicationsets/prometheus-scrape-config.yaml
Normal 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
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user