chart: add podmonitor

This commit is contained in:
c9s 2021-12-27 23:24:35 +08:00
parent 7e51265bc7
commit dbaf61d662
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{{- if .Values.metrics.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "bbgo.fullname" . }}
labels:
{{- include "bbgo.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "bbgo.selectorLabels" . | nindent 6 }}
podMetricsEndpoints:
- port: metrics
{{- end }}

View File

@ -64,6 +64,9 @@ ingress:
# hosts:
# - chart-example.local
metrics:
enabled: false
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little