diff --git a/sonarr/templates/statefulset.yaml b/sonarr/templates/statefulset.yaml index dd3248c..21e3410 100644 --- a/sonarr/templates/statefulset.yaml +++ b/sonarr/templates/statefulset.yaml @@ -23,6 +23,25 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: + - args: + - exportarr + - sonarr + name: sonarr-metrics + image: ghcr.io/onedr0p/exportarr:latest + imagePullPolicy: IfNotPresent + ports: + - name: sonarr-metrics + containerPort: 9707 + protocol: TCP + env: + - name: PORT + value: "9707" + - name: URL + value: "http://127.0.0.1:8989" + - name: ENABLE_EPISODE_QUALITY_METRICS + value: "true" + - name: APIKEY + value: "{{ .Values.metrics.apikey }}" - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }}