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