mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
chart: add podmonitor
This commit is contained in:
parent
7e51265bc7
commit
dbaf61d662
15
charts/bbgo/templates/podmonitor.yaml
Normal file
15
charts/bbgo/templates/podmonitor.yaml
Normal 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 }}
|
|
@ -64,6 +64,9 @@ ingress:
|
||||||
# hosts:
|
# hosts:
|
||||||
# - chart-example.local
|
# - chart-example.local
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# 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
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
|
|
Loading…
Reference in New Issue
Block a user