-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add optional prometheus
ServiceMonitor
for when `synapse.metrics.en…
…abled` is set to true (#594) * add optional prometheus serviceMonitor for when synapse.metric.enabled is set to true * helm-docs: automated action * fix label templating for servicemonitor --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1bf9154
commit 4cd2925
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if and .Values.synapse.metrics.enabled .Values.synapse.metrics.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "matrix.fullname" . }}-synapse | ||
labels: | ||
{{- include "matrix.labels" . | nindent 4 }} | ||
{{- include "matrix.synapse.labels" . | nindent 4}} | ||
spec: | ||
endpoints: | ||
- interval: 30s | ||
targetPort: {{ .Values.synapse.metrics.port }} | ||
path: /_synapse/metrics | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace | quote }} | ||
selector: | ||
matchLabels: | ||
{{- include "matrix.labels" . | nindent 6 }} | ||
{{- include "matrix.synapse.labels" . | nindent 6 }} | ||
{{- 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