Add application for scraping

This commit is contained in:
dvirlabs 2025-06-25 21:03:38 +03:00
parent a2d11d783e
commit cb30b27b3e
4 changed files with 30 additions and 50 deletions

View File

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

View 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

View 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
[]

View File

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