-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable builtin metrics and add default ServiceMonitor (#159)
* Create sync-from-upstream.yaml Signed-off-by: Zach Stone <zach@giantswarm.io> * Update sync-from-upstream.yaml Signed-off-by: Zach Stone <zach@giantswarm.io> * fix(charts): remove erroneous 'metadata' key from ClusterRole object (#119) Signed-off-by: Mike Dougherty <mike.dougherty@missionlane.com> Co-authored-by: Jim Bugwadia <jim@nirmata.com> Signed-off-by: Zach Stone <zach@giantswarm.io> * Enable metrics endpoint and add service monitor Signed-off-by: Zach Stone <zach@giantswarm.io> * Update generated install Signed-off-by: Zach Stone <zach@giantswarm.io> * Do not enable ServiceMonitor by default Signed-off-by: Zach Stone <zach@giantswarm.io> * Rerun codegen Signed-off-by: Zach Stone <zach@giantswarm.io> --------- Signed-off-by: Zach Stone <zach@giantswarm.io> Signed-off-by: Mike Dougherty <mike.dougherty@missionlane.com> Co-authored-by: Mike Dougherty <mikedougherty@users.noreply.github.com> Co-authored-by: Jim Bugwadia <jim@nirmata.com>
- Loading branch information
1 parent
ca35f64
commit a52d85d
Showing
6 changed files
with
71 additions
and
0 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,36 @@ | ||
{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "reports-server.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "reports-server.labels" . | nindent 4 }} | ||
{{- with .Values.metrics.serviceMonitor.additionalLabels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "reports-server.selectorLabels" . | nindent 6 }} | ||
endpoints: | ||
- port: https | ||
path: /metrics | ||
scheme: https | ||
tlsConfig: | ||
insecureSkipVerify: true | ||
{{- if .Values.metrics.serviceMonitor.interval}} | ||
interval: {{ .Values.metrics.serviceMonitor.interval }} | ||
{{- end }} | ||
{{- if .Values.metrics.serviceMonitor.scrapeTimeout}} | ||
scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }} | ||
{{- end }} | ||
{{- with .Values.metrics.serviceMonitor.metricRelabelings }} | ||
metricRelabelings: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.metrics.serviceMonitor.relabelings }} | ||
relabelings: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- 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