Fix observability and startup probe issues

- Explicitly configure management port 8081 in application.yaml to resolve connection refused errors.
- Adjust startupProbe failure threshold and initial delay in Helm chart to allow for a one-minute startup time.
- Update vmagent to use Kubernetes pod discovery for metrics scraping, adding necessary RBAC Role and RoleBinding.
- Introduce 'json-logging' Spring profile for structured console logging in Kubernetes.
- Add support for VictoriaMetrics Operator CRDs (VMSingle, VMAgent, VMPodScrape) to leverage the existing operator in the cluster.
- Review and refine observability templates for better integration with the VictoriaMetrics stack.

Co-authored-by: devitq <118541411+devitq@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot]
2026-05-23 00:05:16 +00:00
co-authored by devitq
parent 2b1946a7a5
commit 2d6012866b
10 changed files with 139 additions and 12 deletions
@@ -0,0 +1,20 @@
{{- if and .Values.observability.enabled .Values.observability.victoriaMetrics.enabled .Values.observability.victoriaMetrics.operator.enabled }}
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMPodScrape
metadata:
name: {{ include "movienight.fullname" . }}-backend
labels:
{{- include "movienight.componentLabels" (dict "root" . "component" "backend") | nindent 4 }}
spec:
podMetricsEndpoints:
- port: management
path: /actuator/prometheus
{{- if .Values.observability.metrics.httpServerRequestsHistogram }}
relabelConfigs:
- targetLabel: application
replacement: {{ .Values.observability.metrics.applicationTag | quote }}
{{- end }}
selector:
matchLabels:
{{- include "movienight.componentSelectorLabels" (dict "root" . "component" "backend") | nindent 6 }}
{{- end }}