From e85e14718172a8b10362ed17c6728a101f6ba8b5 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Fri, 20 Dec 2024 12:07:01 +0100 Subject: [PATCH] feat(metrics): Add db metrics for grafana --- manifests/grafana/database.yaml | 4 ++++ manifests/kubelet-servicemonitor.yaml | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/manifests/grafana/database.yaml b/manifests/grafana/database.yaml index ce89b2b..0c66214 100644 --- a/manifests/grafana/database.yaml +++ b/manifests/grafana/database.yaml @@ -47,3 +47,7 @@ spec: limits: cpu: 500m memory: 500Mi + + monitoring: + enablePodMonitor: true + diff --git a/manifests/kubelet-servicemonitor.yaml b/manifests/kubelet-servicemonitor.yaml index 3b827d5..8f99561 100644 --- a/manifests/kubelet-servicemonitor.yaml +++ b/manifests/kubelet-servicemonitor.yaml @@ -8,5 +8,9 @@ spec: matchLabels: app.kubernetes.io/name: kubelet endpoints: - - port: http-metrics - path: /metrics + - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token + path: /metrics + port: https-metrics + scheme: https + tlsConfig: + insecureSkipVerify: true