Add PrometheusRule and ServiceMonitor to common (#47)

* Add PrometheusRule and ServiceMonitor to common

* Bump Kind version
This commit is contained in:
2023-03-05 08:29:38 +00:00
committed by GitHub
parent 067d636a28
commit 855c04e7f3
6 changed files with 80 additions and 2 deletions

View File

@@ -55,4 +55,12 @@ Main entrypoint for the common library chart. It will render all underlying temp
{{- if .Values.secret -}}
{{ include "common.secret" . | nindent 0 }}
{{- end -}}
{{- if .Values.metrics.enabled -}}
{{ include "common.serviceMonitor" . | nindent 0 }}
{{- end -}}
{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled -}}
{{ include "common.prometheusRule" . | nindent 0 }}
{{- end -}}
{{- end -}}