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 a545f71
Show file tree
Hide file tree
Showing 7 changed files with 2,553 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 a545f71

Please sign in to comment.