Skip to content

Commit

Permalink
[monitoring] added HA & ArgoCD ScrapeConfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Feb 19, 2024
1 parent e265d67 commit 5e767ec
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/argocd/base/metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: monitoring.coreos.com/v1alpha1
kind: ScrapeConfig
metadata:
name: argocd
spec:
staticConfigs:
- targets:
- argocd-metrics.argocd.svc.cluster.local:8082
- argocd-server-metrics.argocd.svc.cluster.local:8083
- argocd-repo-server.argocd.svc.cluster.local:8084
metricsPath: /metrics
1 change: 1 addition & 0 deletions apps/argocd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ resources:
- https://github.com/gruberdev/homelab/apps/networking/cloudflared
- https://raw.githubusercontent.com/argoproj/argo-cd/v2.9.5/manifests/install.yaml
- base/styles-cm.yaml
- base/metrics.yaml

namespace: argocd
images:
Expand Down
1 change: 1 addition & 0 deletions apps/home/ha/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ resources:
- svc.yaml
- ingress.yaml
- certificate.yaml
- metrics.yaml
16 changes: 16 additions & 0 deletions apps/home/ha/base/metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: monitoring.coreos.com/v1alpha1
kind: ScrapeConfig
metadata:
name: homeassistant-metrics
spec:
staticConfigs:
- targets:
- homeassistant.homeassistant.svc.cluster.local:80
job_name: hass
bearer_token: <path:kv/data/home#auth-token>
metrics_path: /api/prometheus
scheme: HTTP
tls_config:
insecure_skip_verify: true
scrape_interval: 60s
metricsPath: /metrics
8 changes: 8 additions & 0 deletions apps/home/ha/base/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Secret
apiVersion: v1
metadata:
name: ha-long-token
annotations:
avp.kubernetes.io/path: "kv/data/home"
stringData:
home-token: <auth-token>

0 comments on commit 5e767ec

Please sign in to comment.