diff --git a/charts/stable/uptime-kuma/templates/common.yaml b/charts/stable/uptime-kuma/templates/common.yaml index 9699ed7d301..0dd42f50429 100644 --- a/charts/stable/uptime-kuma/templates/common.yaml +++ b/charts/stable/uptime-kuma/templates/common.yaml @@ -1,13 +1,5 @@ {{- include "tc.common.loader.init" . }} -{{- if hasKey .Values "metrics" -}} -{{- if .Values.metrics.enabled -}} -{{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "true" -}} -{{- $_ := set .Values.podAnnotations "prometheus.io/path" "/metrics" -}} -{{- $_ := set .Values.podAnnotations "prometheus.io/port" (.Values.service.metrics.ports.metrics.targetPort | quote) -}} -{{- end -}} -{{- end -}} - {{- include "uptime.servicemonitor" . -}} {{- include "uptime.prometheusrule" . -}} diff --git a/charts/stable/uptime-kuma/values.yaml b/charts/stable/uptime-kuma/values.yaml index 252ca751a11..4226525d1bb 100644 --- a/charts/stable/uptime-kuma/values.yaml +++ b/charts/stable/uptime-kuma/values.yaml @@ -13,23 +13,14 @@ podSecurityContext: security: PUID: 0 +env: + UPTIME_KUMA_PORT: "{{ .Values.service.main.ports.main.port }}" + service: main: ports: main: port: 3001 - targetPort: 3001 - - # Metrics Services - metrics: - enabled: true - type: ClusterIP - ports: - metrics: - enabled: true - protocol: HTTP - port: 3002 - targetPort: 3002 persistence: config: