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

feat(bazarr) Adding exportarr to expose metrics to prometheus #14761

Merged
merged 10 commits into from
Dec 20, 2023
2 changes: 1 addition & 1 deletion charts/stable/bazarr/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kubeVersion: ">=1.24.0-0"
apiVersion: v2
name: bazarr
version: 15.1.3
version: 15.2.0
appVersion: 1.4.0
description:
Bazarr is a companion application to Sonarr and Radarr. It manages and
Expand Down
3 changes: 3 additions & 0 deletions charts/stable/bazarr/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
metrics:
main:
apiKey: newsn7zz12j67l4cwovjt6cyq6raqzmz
9 changes: 9 additions & 0 deletions charts/stable/bazarr/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ questions:
default: 568

# Include{resources}
# Include{metrics}
- variable: apiKey
label: "Bazarr API key"
description: "Can be found in the Bazarr settings"
schema:
type: string
default: ""
required: true
PrivatePuffin marked this conversation as resolved.
Show resolved Hide resolved
# Include{prometheusRule}
# Include{advanced}
# Include{addons}
# Include{codeserver}
Expand Down
70 changes: 69 additions & 1 deletion charts/stable/bazarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,85 @@ image:
repository: ghcr.io/onedr0p/bazarr
pullPolicy: IfNotPresent
tag: 1.4.0@sha256:c81c4d9cbec093d5a999cfa3cd1af01d3f00d6292d6f5c33608510cef0ed83c7
exportarrImage:
repository: tccr.io/truecharts/exportarr
pullPolicy: IfNotPresent
tag: v1.6.0@sha256:ee118701a2ebe8ccb5c25e1003fbed9ef7ce217d4e4b8b6df30cc2a0def818f8
service:
main:
ports:
main:
port: 6767
protocol: http
targetPort: 6767
metrics:
enabled: true
type: ClusterIP
targetSelector: exportarr
ports:
metrics:
enabled: true
port: 7879
targetSelector: exportarr

workload:
exportarr:
enabled: "{{ .Values.metrics.main.enabled }}"
type: Deployment
strategy: RollingUpdate
replicas: 1
podSpec:
containers:
exportarr:
primary: true
enabled: true
imageSelector: exportarrImage
args:
- bazarr
probes:
liveness:
enabled: true
type: http
path: /healthz
port: "{{ .Values.service.metrics.ports.metrics.port }}"
readiness:
enabled: true
type: http
path: /healthz
port: "{{ .Values.service.metrics.ports.metrics.port }}"
startup:
enabled: true
type: http
path: /healthz
port: "{{ .Values.service.metrics.ports.metrics.port }}"
env:
INTERFACE: 0.0.0.0
PORT: "{{ .Values.service.metrics.ports.metrics.port }}"
URL: '{{ printf "http://%v:%v" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.main.ports.main.port }}'
APIKEY: "{{ .Values.metrics.main.apiKey }}"

persistence:
config:
enabled: true
mountPath: /config
targetSelector:
main:
main:
mountPath: /config
exportarr:
exportarr:
mountPath: /config
readOnly: true

metrics:
main:
enabled: true
type: "servicemonitor"
endpoints:
- port: metrics
path: /metrics
targetSelector: metrics
apiKey: ""

portal:
open:
enabled: true
Loading