mirror of
https://github.com/bitnami/charts.git
synced 2026-03-03 06:58:45 +08:00
* 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>
42 lines
1.9 KiB
YAML
42 lines
1.9 KiB
YAML
{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}
|
|
namespace: {{ default .Release.Namespace .Values.metrics.serviceMonitor.namespace | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.metrics.serviceMonitor.additionalLabels }}
|
|
{{- include "common.tplvalues.render" (dict "value" .Values.metrics.serviceMonitor.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:
|
|
endpoints:
|
|
- port: metrics
|
|
{{- if .Values.metrics.serviceMonitor.interval }}
|
|
interval: {{ .Values.metrics.serviceMonitor.interval }}
|
|
{{- end }}
|
|
{{- if .Values.metrics.serviceMonitor.scrapeTimeout }}
|
|
scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }}
|
|
{{- end }}
|
|
{{- if .Values.metrics.serviceMonitor.honorLabels }}
|
|
honorLabels: {{ .Values.metrics.serviceMonitor.honorLabels }}
|
|
{{- end }}
|
|
{{- if .Values.metrics.serviceMonitor.relabellings }}
|
|
relabelings: {{- toYaml .Values.metrics.serviceMonitor.relabellings | nindent 6 }}
|
|
{{- end }}
|
|
{{- if .Values.metrics.serviceMonitor.metricRelabelings }}
|
|
metricRelabelings: {{- toYaml .Values.metrics.serviceMonitor.metricRelabelings | nindent 6 }}
|
|
{{- end }}
|
|
namespaceSelector:
|
|
matchNames:
|
|
- {{ .Release.Namespace }}
|
|
selector:
|
|
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
|
|
app.kubernetes.io/component: metrics
|
|
{{- end }}
|