-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add serviceMonitor * revert apiVerion * fixing trailing space
- Loading branch information
Ivan Vandot
authored
Apr 13, 2020
1 parent
ce579ea
commit 98daab6
Showing
5 changed files
with
104 additions
and
33 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
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,42 @@ | ||
{{- if and .Values.serviceMonitor.enabled .Values.beeConfig.enable_debug_api -}} | ||
|
||
--- | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "bee.fullname" . }} | ||
{{- if .Values.serviceMonitor.namespace }} | ||
namespace: {{ .Values.serviceMonitor.namespace }} | ||
{{- end }} | ||
labels: | ||
app: {{ include "bee.name" . }} | ||
chart: {{ .Chart.Name }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- if .Values.serviceMonitor.additionalLabels }} | ||
{{ toYaml .Values.serviceMonitor.additionalLabels | indent 4 }} | ||
{{- end }} | ||
spec: | ||
endpoints: | ||
- port: debug | ||
path: /metrics | ||
{{- if .Values.serviceMonitor.scrapeInterval }} | ||
interval: {{ .Values.serviceMonitor.scrapeInterval }} | ||
{{- end }} | ||
{{- if .Values.serviceMonitor.honorLabels }} | ||
honorLabels: true | ||
{{- end }} | ||
{{- if .Values.serviceMonitor.relabelings }} | ||
relabelings: | ||
{{ toYaml .Values.serviceMonitor.relabelings | indent 6 }} | ||
{{- end }} | ||
|
||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
selector: | ||
matchLabels: | ||
app: {{ include "bee.name" . }} | ||
release: {{ .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