-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #732 from eminaktas/feature/metric-scape
feat: Add metric scrape configs in Helm Chart
- Loading branch information
Showing
10 changed files
with
132 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
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 eq .Values.kind "Deployment" }} | ||
{{- if eq .Values.service.enabled true }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
{{- include "descheduler.labels" . | nindent 4 }} | ||
name: {{ template "descheduler.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- name: http-metrics | ||
port: 10258 | ||
protocol: TCP | ||
targetPort: 10258 | ||
selector: | ||
{{- include "descheduler.selectorLabels" . | nindent 4 }} | ||
type: ClusterIP | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{- if eq .Values.kind "Deployment" }} | ||
{{- if eq .Values.serviceMonitor.enabled true }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ template "descheduler.fullname" . }}-servicemonitor | ||
namespace: {{ .Values.serviceMonitor.namespace | default .Release.Namespace }} | ||
labels: | ||
{{- include "descheduler.labels" . | nindent 4 }} | ||
spec: | ||
jobLabel: jobLabel | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
selector: | ||
matchLabels: | ||
{{- include "descheduler.selectorLabels" . | nindent 6 }} | ||
endpoints: | ||
- honorLabels: {{ .Values.serviceMonitor.honorLabels | default true }} | ||
port: http-metrics | ||
{{- if .Values.serviceMonitor.interval }} | ||
interval: {{ .Values.serviceMonitor.interval }} | ||
{{- end }} | ||
scheme: https | ||
tlsConfig: | ||
{{- if eq .Values.serviceMonitor.insecureSkipVerify true }} | ||
insecureSkipVerify: true | ||
{{- end }} | ||
{{- if .Values.serviceMonitor.serverName }} | ||
serverName: {{ .Values.serviceMonitor.serverName }} | ||
{{- end}} | ||
{{- if .Values.serviceMonitor.metricRelabelings }} | ||
metricRelabelings: | ||
{{ tpl (toYaml .Values.serviceMonitor.metricRelabelings | indent 4) . }} | ||
{{- end }} | ||
{{- if .Values.serviceMonitor.relabelings }} | ||
relabelings: | ||
{{ tpl (toYaml .Values.serviceMonitor.relabelings | indent 4) . }} | ||
{{- end }} | ||
{{- 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