forked from flyteorg/flyte
-
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.
Add service monitor for flyte admin and propeller service (flyteorg#4427
) * Add service monitor for flyte admin and propeller service Signed-off-by: vraiyani <[email protected]> * make interval/scrapeTimeout configurable for service monitors Signed-off-by: vraiyani <[email protected]> --------- Signed-off-by: vraiyani <[email protected]> Co-authored-by: David Espejo <[email protected]>
- Loading branch information
1 parent
956b24e
commit 568e686
Showing
9 changed files
with
110 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if and .Values.flyteadmin.serviceMonitor.enabled .Values.flyteadmin.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ template "flyteadmin.name" . }} | ||
namespace: {{ template "flyte.namespace" . }} | ||
labels: | ||
{{- with .Values.flyteadmin.serviceMonitor.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
endpoints: | ||
- interval: {{ .Values.flyteadmin.serviceMonitor.interval }} | ||
port: http-metrics | ||
path: /metrics | ||
scrapeTimeout: {{ .Values.flyteadmin.serviceMonitor.scrapeTimeout }} | ||
selector: | ||
matchLabels: {{ include "flyteadmin.selectorLabels" . | nindent 6 }} | ||
{{- end }} |
19 changes: 19 additions & 0 deletions
19
charts/flyte-core/templates/propeller/service-monitor.yaml
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,19 @@ | ||
{{- if and .Values.flytepropeller.service.enabled .Values.flytepropeller.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
namespace: {{ template "flyte.namespace" . }} | ||
name: {{ template "flytepropeller.name" . }} | ||
labels: | ||
{{- with .Values.flytepropeller.serviceMonitor.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
endpoints: | ||
- interval: {{ .Values.flytepropeller.serviceMonitor.interval }} | ||
port: http-metrics | ||
path: /metrics | ||
scrapeTimeout: {{ .Values.flytepropeller.serviceMonitor.scrapeTimeout }} | ||
selector: | ||
matchLabels: {{ include "flytepropeller.selectorLabels" . | nindent 6 }} | ||
{{- 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,15 @@ | ||
{{- if and .Values.flytepropeller.enabled .Values.flytepropeller.service.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: {{ template "flyte.namespace" . }} | ||
name: {{ template "flytepropeller.name" . }} | ||
labels: {{ include "flytepropeller.labels" . | nindent 4 }} | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: http-metrics | ||
protocol: TCP | ||
port: 10254 | ||
selector: {{ include "flytepropeller.selectorLabels" . | nindent 4 }} | ||
{{- 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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
|
||
flyteadmin: | ||
serviceMonitor: | ||
enabled: false | ||
service: | ||
annotations: | ||
projectcontour.io/upstream-protocol.h2c: grpc | ||
|
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