diff --git a/cluster/apps/authentik/helm-release.yaml b/cluster/apps/authentik/helm-release.yaml index 0e4a6b4..84d6919 100644 --- a/cluster/apps/authentik/helm-release.yaml +++ b/cluster/apps/authentik/helm-release.yaml @@ -46,15 +46,15 @@ spec: host: "redis-master.database" # password: "${SECRET_DATABASE_REDIS_PASS}" - prometheus: - serviceMonitor: - create: true - labels: - release: kube-prometheus-stack - rules: - create: true - labels: - release: kube-prometheus-stack +# prometheus: +# serviceMonitor: +# create: true +# labels: +# release: kube-prometheus-stack +# rules: +# create: true +# labels: +# release: kube-prometheus-stack env: AUTHENTIK_HOST: &host "auth.${SECRET_NEW_DOMAIN}" diff --git a/cluster/apps/authentik/kustomization.yaml b/cluster/apps/authentik/kustomization.yaml index bfbc1ad..b94ecfc 100644 --- a/cluster/apps/authentik/kustomization.yaml +++ b/cluster/apps/authentik/kustomization.yaml @@ -8,4 +8,5 @@ resources: #- ./network_policy.yaml - ./traefik-middleware.yaml - ./dashboard.yaml +- ./service-monitor.yaml #- ./ldap-outpost \ No newline at end of file diff --git a/cluster/apps/authentik/service-monitor.yaml b/cluster/apps/authentik/service-monitor.yaml new file mode 100644 index 0000000..177d835 --- /dev/null +++ b/cluster/apps/authentik/service-monitor.yaml @@ -0,0 +1,16 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: authentik + namespace: authentik + labels: + release: kube-prometheus-stack +spec: + selector: + matchLabels: + app.kubernetes.io/name: authentik + endpoints: + - port: http-metrics + interval: 30s + scrapeTimeout: 3s + path: /metrics \ No newline at end of file