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
This commit is contained in:
Jennifer Kirsch 2021-08-06 20:57:30 +02:00 committed by GitHub
parent 6da7e9ce2a
commit 390bd257e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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