From 6b9cdc026969157f56223f54226928e2a48069bd Mon Sep 17 00:00:00 2001 From: Akash LM Date: Tue, 30 Jan 2024 12:02:13 +0530 Subject: [PATCH 1/2] Added vault-service-monitor --- ...=> kubernetes-pods-metrics-dashboard.yaml} | 0 .../templates/vault-servicemonitor.yaml | 28 +++++++++++++++++++ 2 files changed, 28 insertions(+) rename charts/monitoring/templates/{kubermetes-pods-metrics dashboard.yaml => kubernetes-pods-metrics-dashboard.yaml} (100%) create mode 100644 charts/monitoring/templates/vault-servicemonitor.yaml diff --git a/charts/monitoring/templates/kubermetes-pods-metrics dashboard.yaml b/charts/monitoring/templates/kubernetes-pods-metrics-dashboard.yaml similarity index 100% rename from charts/monitoring/templates/kubermetes-pods-metrics dashboard.yaml rename to charts/monitoring/templates/kubernetes-pods-metrics-dashboard.yaml diff --git a/charts/monitoring/templates/vault-servicemonitor.yaml b/charts/monitoring/templates/vault-servicemonitor.yaml new file mode 100644 index 0000000..25986e6 --- /dev/null +++ b/charts/monitoring/templates/vault-servicemonitor.yaml @@ -0,0 +1,28 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + labels: + app.kubernetes.io/instance: vault + app.kubernetes.io/name: vault + release: prometheus + name: {{ include "monitoring.fullname" . }}-vault +spec: + endpoints: + - interval: 30s + params: + format: + - prometheus + path: /v1/sys/metrics + port: http + scheme: http + scrapeTimeout: 10s + tlsConfig: + insecureSkipVerify: true + namespaceSelector: + matchNames: + - capten + selector: + matchLabels: + app.kubernetes.io/instance: vault + app.kubernetes.io/name: vault + vault-internal: "true" \ No newline at end of file From 42cf96f51c30438703a85863a18b970f83764214 Mon Sep 17 00:00:00 2001 From: Akash LM Date: Tue, 30 Jan 2024 12:06:00 +0530 Subject: [PATCH 2/2] Incremented chart version --- charts/monitoring/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/monitoring/Chart.yaml b/charts/monitoring/Chart.yaml index e008c99..cb1ca7e 100644 --- a/charts/monitoring/Chart.yaml +++ b/charts/monitoring/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.16.0 description: A Helm chart for Monitoring name: monitoring type: application -version: 0.1.12 +version: 0.1.13 dependencies: - name: prometheus-msteams condition: prometheus-msteams.enabled