chore: small observability fixes and improvements #71
@@ -62,6 +62,8 @@ spec:
|
|||||||
{{- if .Values.observability.enabled }}
|
{{- if .Values.observability.enabled }}
|
||||||
- name: MANAGEMENT_METRICS_TAGS_APPLICATION
|
- name: MANAGEMENT_METRICS_TAGS_APPLICATION
|
||||||
value: {{ .Values.observability.metrics.applicationTag | quote }}
|
value: {{ .Values.observability.metrics.applicationTag | quote }}
|
||||||
|
- name: HTTP_SERVER_REQUESTS_HISTOGRAM_ENABLED
|
||||||
|
value: {{ .Values.observability.metrics.httpServerRequestsHistogram | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $postgresEnv }}
|
{{- if $postgresEnv }}
|
||||||
{{- $postgresEnv | nindent 12 }}
|
{{- $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
|
enabled: true
|
||||||
metrics:
|
metrics:
|
||||||
applicationTag: movienight
|
applicationTag: movienight
|
||||||
httpServerRequestsHistogram: true
|
httpServerRequestsHistogram: "true"
|
||||||
vmagent:
|
vmagent:
|
||||||
scrapeInterval: 10s
|
scrapeInterval: 10s
|
||||||
backendJobName: movienight-backend
|
backendJobName: movienight-backend
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ management:
|
|||||||
application: ${MANAGEMENT_METRICS_TAGS_APPLICATION:${spring.application.name}}
|
application: ${MANAGEMENT_METRICS_TAGS_APPLICATION:${spring.application.name}}
|
||||||
distribution:
|
distribution:
|
||||||
percentiles-histogram:
|
percentiles-histogram:
|
||||||
http.server.requests: ${MANAGEMENT_METRICS_DISTRIBUTION_PERCENTILES_HISTOGRAM_HTTP_SERVER_REQUESTS:false}
|
http.server.requests: ${HTTP_SERVER_REQUESTS_HISTOGRAM_ENABLED:false}
|
||||||
info:
|
info:
|
||||||
env:
|
env:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user