Merge pull request 'chore: small observability fixes and improvements' (#71) from feat/setup-observability-in-k8s into develop
Reviewed-on: #71
This commit was merged in pull request #71.
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user