Files
charts/bitnami/drupal/templates/prometheusrule.yaml
Matthieu ROBIN 9978bc0a57 [bitnami/drupal] Implement service monitor and prometheus rules (#12380)
* Add prometheusrules template

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Add servicemonitor template

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Add service for metrics

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Update values.yaml

Add default values

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Update documentation

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Bump version to 12.5.0

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Update Chart.lock

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Update values.schema.json

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Bump version to 6.2.0

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Revert Solr version

It was a mistake

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update bitnami/drupal/templates/metrics-svc.yaml

Co-authored-by: Fran Mulero <fmulero@vmware.com>
Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Update bitnami/drupal/values.yaml

Co-authored-by: Fran Mulero <fmulero@vmware.com>
Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Update documentation

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Fix indentation

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Fix documentation metadata

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

* Switch from 'http-metrics' to 'metrics'

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>

Signed-off-by: Matthieu ROBIN <matthieu.robin13@orange.fr>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Fran Mulero <fmulero@vmware.com>
2022-09-23 17:42:05 +02:00

22 lines
1.1 KiB
YAML

{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: {{ template "common.names.fullname" . }}
namespace: {{ default .Release.Namespace .Values.metrics.prometheusRule.namespace | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.metrics.prometheusRule.additionalLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.metrics.prometheusRule.additionalLabels "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
groups:
- name: {{ include "common.names.fullname" . }}
rules: {{- include "common.tplvalues.render" ( dict "value" .Values.metrics.prometheusRule.rules "context" $ ) | nindent 8 }}
{{- end }}