k3s-infra/apps/media/jellyfin.servicemonitor.yaml
2023-12-31 17:58:15 +01:00

18 lines
433 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: jellyfin
labels:
metrics: prometheus
spec:
selector:
matchLabels:
app: jellyfin-server
endpoints:
- path: /metrics
targetPort: "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