Skip to content

Commit

Permalink
Merge pull request docker-mailserver#110 from cfis/issue_103
Browse files Browse the repository at this point in the history
Enable adding customer labels to ServiceMonitor. docker-mailserver#103
  • Loading branch information
cfis authored May 4, 2024
2 parents 736490e + f958f2b commit 6e9c4d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/docker-mailserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "13.3.1"
description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.
name: docker-mailserver
version: 3.0.9
version: 3.0.10
sources:
- https://github.com/docker-mailserver/docker-mailserver-helm
maintainers:
Expand Down
3 changes: 3 additions & 0 deletions charts/docker-mailserver/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
{{- if .Values.metrics.serviceMonitor.labels }}
{{ toYaml .Values.metrics.serviceMonitor.labels | indent 4 }}
{{ end }}
name: {{ template "dockermailserver.fullname" . }}
spec:
endpoints:
Expand Down
2 changes: 2 additions & 0 deletions charts/docker-mailserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ metrics:
serviceMonitor:
enabled: false
scrapeInterval: 15s
## Optionally add additional labels to the deployment
labels: {}

## ConfigMaps (and Secrets) are used to copy docker-mailserver configuration files
## into running containers. This chart automatically sets up any config files that
Expand Down

0 comments on commit 6e9c4d3

Please sign in to comment.