diff --git a/apps/argocd/base/metrics.yaml b/apps/argocd/base/metrics.yaml new file mode 100644 index 000000000..6a5c105bf --- /dev/null +++ b/apps/argocd/base/metrics.yaml @@ -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 diff --git a/apps/argocd/kustomization.yaml b/apps/argocd/kustomization.yaml index 13e678372..b213ce036 100644 --- a/apps/argocd/kustomization.yaml +++ b/apps/argocd/kustomization.yaml @@ -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: diff --git a/apps/home/ha/base/kustomization.yaml b/apps/home/ha/base/kustomization.yaml index 3a0898af0..ae0e520d6 100644 --- a/apps/home/ha/base/kustomization.yaml +++ b/apps/home/ha/base/kustomization.yaml @@ -7,3 +7,4 @@ resources: - svc.yaml - ingress.yaml - certificate.yaml + - metrics.yaml diff --git a/apps/home/ha/base/metrics.yaml b/apps/home/ha/base/metrics.yaml new file mode 100644 index 000000000..7dc959ccf --- /dev/null +++ b/apps/home/ha/base/metrics.yaml @@ -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: + metrics_path: /api/prometheus + scheme: HTTP + tls_config: + insecure_skip_verify: true + scrape_interval: 60s + metricsPath: /metrics diff --git a/apps/home/ha/base/secret.yaml b/apps/home/ha/base/secret.yaml new file mode 100644 index 000000000..f5211ef66 --- /dev/null +++ b/apps/home/ha/base/secret.yaml @@ -0,0 +1,8 @@ +kind: Secret +apiVersion: v1 +metadata: + name: ha-long-token + annotations: + avp.kubernetes.io/path: "kv/data/home" +stringData: + home-token: