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