add prometheus monitoring
This commit is contained in:
@@ -26,7 +26,7 @@ spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`media-backend.kluster.moll.re`)
|
||||
- match: Host(`media-backend.kluster.moll.re`) && !Path(`/metrics`)
|
||||
middlewares:
|
||||
- name: jellyfin-websocket
|
||||
- name: jellyfin-server-headers
|
||||
|
14
apps/media/jellyfin.servicemonitor.yaml
Normal file
14
apps/media/jellyfin.servicemonitor.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: jellyfin
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: jellyfin-server
|
||||
endpoints:
|
||||
- port: 8096
|
||||
|
||||
# this exposes metrics on port 8096 as enabled in the jellyfin config
|
||||
# https://jellyfin.org/docs/general/networking/monitoring/
|
||||
# the metrics are available at /metrics but blocked by the ingress
|
@@ -10,6 +10,7 @@ resources:
|
||||
- web.deployment.yaml
|
||||
- web.service.yaml
|
||||
- ingress.yaml
|
||||
- jellyfin.servicemonitor.yaml
|
||||
|
||||
images:
|
||||
- name: jellyfin/jellyfin
|
||||
|
Reference in New Issue
Block a user