From 390bd257e70daee84eb6334437fd6b31a965604f Mon Sep 17 00:00:00 2001 From: Jennifer Kirsch <7807969+DysphoricUnicorn@users.noreply.github.com> Date: Fri, 6 Aug 2021 20:57:30 +0200 Subject: [PATCH] Add documentation for monitoring without helm (#7455) * Add documentation for monitoring without helm As someone who is currently learning Kubernetes without using helm, I wasn't able to get the ingress controller to export metrics without asking someone more experienced for help. I think a bit more information would be a good addition for my fellow Kubernetes newcomers. If there are any wording/ formatting issues, I will be happy to update this. * Fix typo --- docs/user-guide/monitoring.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/user-guide/monitoring.md b/docs/user-guide/monitoring.md index 6471f997e..d02e1a682 100644 --- a/docs/user-guide/monitoring.md +++ b/docs/user-guide/monitoring.md @@ -38,6 +38,33 @@ This tutorial will show you how to install [Prometheus](https://prometheus.io/) prometheus.io/scrape: "true" .. ``` + - If you are **not using helm**, you will have to edit your manifests like this: + - Service manifest: + ``` + apiVersion: v1 + kind: Service + metadata: + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "10254" + .. + spec: + ports: + - name: prometheus + port: 10254 + targetPort: prometheus + .. + + ``` + + - DaemonSet manifest: + ``` + .. + ports: + - name: prometheus + containerPort: 10254 + .. + ``` ## Deploy and configure Prometheus Server