-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ServiceMonitor and Grafana dashboard for HiveMQ Platform Helm chart
- Loading branch information
1 parent
bee4339
commit c4fa668
Showing
34 changed files
with
17,128 additions
and
227 deletions.
There are no files selected for viewing
8,168 changes: 8,168 additions & 0 deletions
8,168
charts/hivemq-platform/files/grafana-dashboard.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
charts/hivemq-platform/templates/hivemq-grafana-dashboard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if .Values.monitoring.enabled }} | ||
{{- include "hivemq-platform.validate-prometheus-monitoring-stack-installed" . -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
grafana_dashboard: "1" | ||
{{- include "hivemq-platform.labels" . | nindent 4 }} | ||
name: {{ include "hivemq-platform.name" (dict "name" "dashboard" "releaseName" .Release.Name) }} | ||
{{- if and (hasKey .Values.monitoring "dashboard") (hasKey .Values.monitoring.dashboard "namespace") }} | ||
namespace: {{ .Values.monitoring.dashboard.namespace }} | ||
{{- else }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} | ||
data: | ||
hivemq-dashboard.json: | | ||
{{- .Files.Get "files/grafana-dashboard.json" | nindent 4 }} | ||
{{- end }} |
30 changes: 30 additions & 0 deletions
30
charts/hivemq-platform/templates/hivemq-service-monitor.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{- if .Values.monitoring.enabled }} | ||
{{- include "hivemq-platform.validate-prometheus-monitoring-stack-installed" . -}} | ||
{{- include "hivemq-platform.validate-metrics-services" . -}} | ||
{{- include "hivemq-platform.validate-metrics-is-enabled" . -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
{{- include "hivemq-platform.labels" . | nindent 4 }} | ||
release: {{ .Values.monitoring.serviceMonitor.releaseName | default .Release.Name }} | ||
name: {{ include "hivemq-platform.name" (dict "name" "service-monitor" "releaseName" .Release.Name) }} | ||
{{- if .Values.monitoring.serviceMonitor.namespace }} | ||
namespace: {{ .Values.monitoring.serviceMonitor.namespace }} | ||
{{- else }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "hivemq-platform.selector-labels" . | nindent 6 }} | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
endpoints: | ||
- port: {{ include "hivemq-platform.metrics-container-port-name" . }} | ||
path: {{ .Values.metrics.path }} | ||
interval: {{ .Values.monitoring.serviceMonitor.interval }} | ||
scrapeTimeout: {{ .Values.monitoring.serviceMonitor.scrapeTimeout }} | ||
jobLabel: {{ include "hivemq-platform.name" (dict "name" "service-monitor" "releaseName" .Release.Name) }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
charts/hivemq-platform/tests/hivemq_platform_release_notes_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
suite: HiveMQ Platform NOTES tests | ||
suite: HiveMQ Platform - NOTES tests | ||
templates: | ||
- NOTES.txt | ||
release: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.