Adding prometheus

This commit is contained in:
Jonny Ervine 2021-10-12 20:51:35 +08:00
parent bf34f0431e
commit 84d6d19c6d
2 changed files with 20 additions and 1 deletions

View File

@ -11,5 +11,9 @@ spec:
targetPort: 7878
protocol: TCP
name: radarr
- port: 9707
targetPort: 9707
protocol: TCP
name: radarr-metrics
selector:
{{- include "radarr.selectorLabels" . | nindent 4 }}

View File

@ -23,7 +23,22 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
- args:
- exportarr
- radarr
name: radarr-metrics
image: ghcr.io/onedr0p/exportarr:latest
imagePullPolicy: IfNotPresent
ports:
- name: radarr-metrics
containerPort: 9707
protocol: TCP
env:
- name: PORT
value: "9707"
- name: URL
value: "http://127.0.0.1:7878"
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"