fix(authentik): manually create a service monitor

This commit is contained in:
SeanOMik 2023-08-06 00:22:30 -04:00
parent e3a2ef3394
commit 3866f0333d
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 26 additions and 9 deletions

View File

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

View File

@ -8,4 +8,5 @@ resources:
#- ./network_policy.yaml
- ./traefik-middleware.yaml
- ./dashboard.yaml
- ./service-monitor.yaml
#- ./ldap-outpost

View File

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