Skip to content

Commit

Permalink
Make Swarm ServiceMonitor discoverable by Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
afalhambra-hivemq committed Dec 3, 2024
1 parent 1d74023 commit 87fa1ae
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 2,475 deletions.
2 changes: 1 addition & 1 deletion charts/hivemq-swarm/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
release: {{ .Release.Name }}
{{- include "hivemq-swarm.labels" . | nindent 4 }}
release: {{ .Values.monitoring.serviceMonitor.releaseName | default .Release.Name }}
name: {{ include "hivemq-swarm.fullname" . }}
{{- if .Values.monitoring.serviceMonitor.namespace }}
namespace: {{ .Values.monitoring.serviceMonitor.namespace }}
Expand Down
Loading

0 comments on commit 87fa1ae

Please sign in to comment.