chore: small observability fixes and improvements #71

Merged
ITQ merged 2 commits from feat/setup-observability-in-k8s into develop 2026-08-01 14:25:55 +00:00
4 changed files with 38 additions and 2 deletions
@@ -62,6 +62,8 @@ spec:
{{- if .Values.observability.enabled }}
- name: MANAGEMENT_METRICS_TAGS_APPLICATION
value: {{ .Values.observability.metrics.applicationTag | quote }}
- name: HTTP_SERVER_REQUESTS_HISTOGRAM_ENABLED
value: {{ .Values.observability.metrics.httpServerRequestsHistogram | quote }}
{{- end }}
{{- if $postgresEnv }}
{{- $postgresEnv | nindent 12 }}
@@ -0,0 +1,34 @@
{{- if .Values.observability.enabled }}
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: {{ include "movienight.fullname" . }}-scrape
labels:
{{- include "movienight.componentLabels" (dict "root" . "component" "scrape") | nindent 4 }}
{{- with .Values.observability.scrape.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.global.annotations }}
annotations:
{{- with .Values.global.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "movienight.componentSelectorLabels" (dict "root" . "component" "backend") | nindent 4 }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
endpoints:
- port: management
path: /actuator/prometheus
interval: 10s
podTargetLabels:
- app.kubernetes.io/component
- app.kubernetes.io/instance
{{- end }}
+1 -1
View File
@@ -124,7 +124,7 @@ observability:
enabled: true
metrics:
applicationTag: movienight
httpServerRequestsHistogram: true
httpServerRequestsHistogram: "true"
vmagent:
scrapeInterval: 10s
backendJobName: movienight-backend
+1 -1
View File
@@ -84,7 +84,7 @@ management:
application: ${MANAGEMENT_METRICS_TAGS_APPLICATION:${spring.application.name}}
distribution:
percentiles-histogram:
http.server.requests: ${MANAGEMENT_METRICS_DISTRIBUTION_PERCENTILES_HISTOGRAM_HTTP_SERVER_REQUESTS:false}
http.server.requests: ${HTTP_SERVER_REQUESTS_HISTOGRAM_ENABLED:false}
info:
env:
enabled: true