Skip to content

Commit fd8b9ca

Browse files
committed
add metrics Service and ServiceMonitor to shoot-grafter chart
On-behalf-of: @SAP krzysztof.zagorski@sap.com
1 parent 9b2a267 commit fd8b9ca

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{{/*
2+
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and Greenhouse contributors
3+
SPDX-License-Identifier: Apache-2.0
4+
*/}}
5+
6+
---
7+
apiVersion: v1
8+
kind: Service
9+
metadata:
10+
name: shoot-grafter-metrics
11+
namespace: {{ .Release.Namespace }}
12+
labels:
13+
app: shoot-grafter
14+
spec:
15+
type: ClusterIP
16+
selector:
17+
app: shoot-grafter
18+
ports:
19+
- name: metrics
20+
port: 8080
21+
targetPort: 8080
22+
protocol: TCP
23+
24+
---
25+
apiVersion: monitoring.coreos.com/v1
26+
kind: ServiceMonitor
27+
metadata:
28+
name: shoot-grafter
29+
namespace: {{ .Release.Namespace }}
30+
labels:
31+
app: shoot-grafter
32+
{{- with .Values.monitoring.labels }}
33+
{{- toYaml . | nindent 4 }}
34+
{{- end }}
35+
spec:
36+
endpoints:
37+
- honorLabels: true
38+
interval: 30s
39+
port: metrics
40+
scheme: http
41+
path: /metrics
42+
namespaceSelector:
43+
matchNames:
44+
- {{ .Release.Namespace }}
45+
selector:
46+
matchLabels:
47+
app: shoot-grafter

shoot-grafter/charts/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
replicaCount: 1
5+
56
image:
67
registry: ghcr.io/cloudoperators
78
repository: shoot-grafter
89
pullPolicy: IfNotPresent
10+
11+
monitoring:
12+
labels:
13+
plugin: kube-monitoring

0 commit comments

Comments
 (0)