WIP feat(sabnzbd) adding exportarr for metrics (#17988)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Ac1dburn <ac1dburnez@gmail.com>
This commit is contained in:
Ac1dburn
2024-02-14 11:30:18 -05:00
committed by GitHub
parent a3e0d3fb2f
commit fc7c559ca2
4 changed files with 92 additions and 7 deletions
+1 -1
View File
@@ -34,4 +34,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/sabnzbd
- https://ghcr.io/onedr0p/sabnzbd
type: application
version: 17.2.9
version: 17.2.10
@@ -0,0 +1,3 @@
metrics:
main:
apiKey: newsn7zz12j67l4cwovjt6cyq6raqzmz
+8
View File
@@ -89,6 +89,14 @@ questions:
type: int
default: 568
# Include{resources}
# Include{metrics}
- variable: apiKey
label: "Sabnzbd API key"
description: "Can be found in the Bazarr settings"
schema:
type: string
default: ""
required: true
# Include{advanced}
# Include{addons}
# Include{codeserver}
+80 -6
View File
@@ -2,23 +2,97 @@ image:
repository: ghcr.io/onedr0p/sabnzbd
pullPolicy: IfNotPresent
tag: 4.2.2@sha256:5b1f15c8d25afa2342505492486361d4ecf14449e1453aeea45cd7c1e5eeb63a
exportarrImage:
repository: ghcr.io/onedr0p/exportarr
pullPolicy: IfNotPresent
tag: v1.6.0@sha256:b522e128509b766cf66f847190fccd225ff194dc76775fe6a215f2dd3010cac2
service:
main:
ports:
main:
port: 10097
targetPort: 8080
persistence:
config:
enabled: true
mountPath: "/config"
portal:
open:
metrics:
enabled: true
type: ClusterIP
targetSelector: exportarr
ports:
metrics:
enabled: true
port: 8990
targetSelector: exportarr
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
env:
SABNZBD__HOST_WHITELIST_ENTRIES: ""
SABNZBD__PORT: "{{ .Values.service.main.ports.main.port }}"
exportarr:
enabled: "{{ .Values.metrics.main.enabled }}"
type: Deployment
strategy: RollingUpdate
replicas: 1
podSpec:
containers:
exportarr:
primary: true
enabled: true
imageSelector: exportarrImage
args:
- sabnzbd
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
targetSelector:
main:
main:
mountPath: /config
exportarr:
exportarr:
mountPath: /config
readOnly: true
metrics:
main:
enabled: false
type: "servicemonitor"
endpoints:
- port: metrics
path: /metrics
targetSelector: metrics
# Required for exportarr
apiKey: ""
portal:
open:
enabled: true