Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Prometheus metrics #28

Open
cbcoutinho opened this issue Sep 22, 2024 · 1 comment
Open

Enable Prometheus metrics #28

cbcoutinho opened this issue Sep 22, 2024 · 1 comment

Comments

@cbcoutinho
Copy link
Contributor

cbcoutinho commented Sep 22, 2024

I would like to simplify metrics collection for Jellyfin using this Helm chart, as Jellyfin currently supports exposing Prometheus metrics, although this functionality is currently disabled by default in the upstream image.

This is how I'm currently working around the limitation in the helm chart, based on #27; however, I'm open to improvements.

# values.yaml
  image:
    command:
      - bash
      - '-c'
      - >-
        sed 's,<EnableMetrics>false</EnableMetrics>,<EnableMetrics>true</EnableMetrics>,' -i /config/config/system.xml &&
        /jellyfin/jellyfin

As well as creating a ServiceMonitor:

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: jellyfin-svc-monitor
  namespace: jellyfin
  labels:
    release: observability
spec:
  namespaceSelector:
    matchNames:
      - jellyfin
  selector:
    matchLabels:
      app.kubernetes.io/name: jellyfin
  endpoints:
    - port: http
      path: /metrics
      interval: 15s
@Supporterino
Copy link
Contributor

Hi @cbcoutinho,

I took your issue as a general idea and modified it to be modular inside the helm chart until the upstream docker container provides a better way to enable metrics. Check #39 for status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants