-
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 <[email protected]> * Update sync-from-upstream.yaml Signed-off-by: Zach Stone <[email protected]> * fix(charts): remove erroneous 'metadata' key from ClusterRole object (#119) Signed-off-by: Mike Dougherty <[email protected]> Co-authored-by: Jim Bugwadia <[email protected]> Signed-off-by: Zach Stone <[email protected]> * Enable metrics endpoint and add service monitor Signed-off-by: Zach Stone <[email protected]> * Update generated install Signed-off-by: Zach Stone <[email protected]> * Do not enable ServiceMonitor by default Signed-off-by: Zach Stone <[email protected]> * Rerun codegen Signed-off-by: Zach Stone <[email protected]> --------- Signed-off-by: Zach Stone <[email protected]> Signed-off-by: Mike Dougherty <[email protected]> Co-authored-by: Mike Dougherty <[email protected]> Co-authored-by: Jim Bugwadia <[email protected]>
- 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