chore: small observability fixes and improvements #71
@@ -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 }}
|
||||
@@ -124,7 +124,7 @@ observability:
|
||||
enabled: true
|
||||
metrics:
|
||||
applicationTag: movienight
|
||||
httpServerRequestsHistogram: true
|
||||
httpServerRequestsHistogram: "true"
|
||||
vmagent:
|
||||
scrapeInterval: 10s
|
||||
backendJobName: movienight-backend
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user