Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/fluent-bit/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ metadata:
namespace: {{ default .Release.Namespace .Values.serviceMonitor.namespace }}
labels:
{{- include "fluent-bit.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- else }}
{{- with .Values.serviceMonitor.selector }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
jobLabel: app.kubernetes.io/instance
endpoints:
Expand Down
9 changes: 7 additions & 2 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,13 @@ serviceMonitor:
# namespace: monitoring
# interval: 10s
# scrapeTimeout: 10s
# selector:
# prometheus: my-prometheus
# ## additionalLabels: Additional labels to add to the ServiceMonitor metadata
# ## This is the recommended way to add labels for Prometheus Operator selection
# additionalLabels: {}
# # prometheus: my-prometheus
# ## selector: (DEPRECATED) Use additionalLabels instead
# ## This field is maintained for backward compatibility but additionalLabels is preferred
# selector: {}
# ## metric relabel configs to apply to samples before ingestion.
# ##
# metricRelabelings:
Expand Down