Add application for scraping
This commit is contained in:
parent
a2d11d783e
commit
cb30b27b3e
@ -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
|
||||
18
applicationsets/prometheus-scrape-secret.yaml
Normal file
18
applicationsets/prometheus-scrape-secret.yaml
Normal file
@ -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
|
||||
12
manifests/prometheus-scrape-secret/secret.yaml
Normal file
12
manifests/prometheus-scrape-secret/secret.yaml
Normal file
@ -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
|
||||
[]
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user