Compare commits

...

2 Commits

Author SHA1 Message Date
0c94180823 hardcode the exporter port 2024-03-16 09:36:56 -06:00
f59d77f8bc fix metrics switch 2024-03-16 09:34:09 -06:00
4 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: qbittorrent name: qbittorrent
version: 0.0.2 version: 0.0.4
description: Chart for qBittorrent description: Chart for qBittorrent
keywords: keywords:
- downloads - downloads

View File

@@ -60,7 +60,7 @@ spec:
containerPort: {{ .Values.server.service.http.port }} containerPort: {{ .Values.server.service.http.port }}
protocol: TCP protocol: TCP
- name: metrics - name: metrics
containerPort: {{ .Values.metrics.exporter.env.port }} containerPort: 9022
protocol: TCP protocol: TCP
securityContext: securityContext:
{{- toYaml .Values.gluetun.securityContext | nindent 12 }} {{- toYaml .Values.gluetun.securityContext | nindent 12 }}
@@ -106,6 +106,8 @@ spec:
value: "http://localhost" value: "http://localhost"
- name: QBITTORRENT_PORT - name: QBITTORRENT_PORT
value: "{{ .Values.server.service.http.port }}" value: "{{ .Values.server.service.http.port }}"
- name: EXPORTER_PORT
value: 9022
{{- end }} {{- end }}
volumes: volumes:

View File

@@ -1,4 +1,4 @@
{{- if and .Values.metrics.enabled .Values.server.metrics.serviceMonitor.enabled }} {{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1 apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor kind: ServiceMonitor
metadata: metadata:

View File

@@ -80,7 +80,5 @@ metrics:
value: admin value: admin
- name: QBITTORRENT_PASS - name: QBITTORRENT_PASS
value: "" value: ""
- name: EXPORTER_PORT
value: 9022
- name: EXPORTER_LOG_LEVEL - name: EXPORTER_LOG_LEVEL
value: INFO value: INFO