Skip to content

Commit

Permalink
Merge pull request #115 from Disper/metrics
Browse files Browse the repository at this point in the history
adjust configuration for metrics
  • Loading branch information
kyma-bot authored Dec 29, 2023
2 parents 77f253a + 375bb00 commit 3ab67d9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
7 changes: 5 additions & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Namespace
metadata:
labels:
control-plane: infrastructure-manager
app.kubernetes.io/name: namespace
app.kubernetes.io/name: infrastructure-manager
app.kubernetes.io/instance: system
app.kubernetes.io/component: infrastructure-manager.kyma-project.io
app.kubernetes.io/created-by: infrastructure-manager
Expand All @@ -18,7 +18,7 @@ metadata:
namespace: system
labels:
control-plane: infrastructure-manager
app.kubernetes.io/name: deployment
app.kubernetes.io/name: infrastructure-manager
app.kubernetes.io/instance: infrastructure-manager
app.kubernetes.io/component: infrastructure-manager.kyma-project.io
app.kubernetes.io/created-by: infrastructure-manager
Expand Down Expand Up @@ -79,6 +79,9 @@ spec:
capabilities:
drop:
- "ALL"
ports:
- containerPort: 8080
name: metrics
livenessProbe:
httpGet:
path: /healthz
Expand Down
23 changes: 23 additions & 0 deletions config/manager/metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
labels:
control-plane: infrastructure-manager
app.kubernetes.io/name: metrics
app.kubernetes.io/instance: infrastructure-manager
app.kubernetes.io/component: infrastructure-manager.kyma-project.io
app.kubernetes.io/created-by: infrastructure-manager
app.kubernetes.io/part-of: infrastructure-manager
app.kubernetes.io/managed-by: kustomize
name: infrastructure-manager-metrics
namespace: kcp-system
spec:
ports:
- name: metrics
port: 8080
protocol: TCP
appProtocol: http
targetPort: metrics
selector:
app.kubernetes.io/name: infrastructure-manager
app.kubernetes.io/component: infrastructure-manager.kyma-project.io
9 changes: 5 additions & 4 deletions config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceMonitor
metadata:
labels:
control-plane: infrastructure-manager
app.kubernetes.io/name: servicemonitor
app.kubernetes.io/name: infrastructure-manager-metrics-monitor
app.kubernetes.io/instance: infrastructure-manager-metrics-monitor
app.kubernetes.io/component: metrics
app.kubernetes.io/created-by: infrastructure-manager
Expand All @@ -16,11 +16,12 @@ metadata:
spec:
endpoints:
- path: /metrics
port: https
scheme: https
port: metrics
scheme: http
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
insecureSkipVerify: true
selector:
matchLabels:
control-plane: infrastructure-manager
app.kubernetes.io/name: metrics
app.kubernetes.io/component: infrastructure-manager.kyma-project.io

0 comments on commit 3ab67d9

Please sign in to comment.