forked from helm/charts
-
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.
[stable/ark] Several improvements on naming, decoupling and metrics (h…
…elm#11068) * [stable/ark] Several improvements on naming, decoupling and metrics * Use new naming: * Rename backupStorageProvider to backupStorageLocation * Rename persistentVolumeProvider to volumeSnapshotLocation * Add configuration.provider so that backupStorageLocation is decoupled from the cloud provider where ark it deployed to * Fixed typo in metricsAddress (now renamed to configuration.metrics.address) * Expose metrics port with configuration.metrics.enabled Signed-off-by: Pablo Castellano <[email protected]> * Allow setting new prefix parameter Signed-off-by: Pablo Castellano <[email protected]> * Fix and document prefix parameter Signed-off-by: Pablo Castellano <[email protected]> * Major version bump Signed-off-by: Pablo Castellano <[email protected]> * Add prometheus monitoring Originally by JoschaLaubach (helm#9496) Adapted by PabloCastellano to latest chart available Signed-off-by: Pablo Castellano <[email protected]>
- Loading branch information
1 parent
bf10057
commit f63198f
Showing
9 changed files
with
104 additions
and
27 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
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,20 @@ | ||
{{- if .Values.metrics.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "ark.fullname" . }} | ||
labels: | ||
release: {{ .Release.Name }} | ||
app: {{ template "ark.name" . }} | ||
chart: {{ template "ark.chart" . }} | ||
heritage: {{ .Release.Service }} | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: monitoring | ||
port: 8085 | ||
targetPort: monitoring | ||
selector: | ||
release: {{ .Release.Name }} | ||
app: {{ template "ark.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ template "ark.fullname" . }} | ||
labels: | ||
release: {{ .Release.Name }} | ||
app: {{ template "ark.name" . }} | ||
chart: {{ template "ark.chart" . }} | ||
heritage: {{ .Release.Service }} | ||
{{- if .Values.metrics.serviceMonitor.additionalLabels }} | ||
{{ toYaml .Values.metrics.serviceMonitor.additionalLabels | indent 4 }} | ||
{{- end }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
release: {{ .Release.Name }} | ||
app: {{ template "ark.name" . }} | ||
endpoints: | ||
- port: monitoring | ||
interval: {{ .Values.metrics.scrapeInterval }} | ||
{{- 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