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:
parent
6da7e9ce2a
commit
390bd257e7
1 changed files with 27 additions and 0 deletions
|
@ -38,6 +38,33 @@ This tutorial will show you how to install [Prometheus](https://prometheus.io/)
|
||||||
prometheus.io/scrape: "true"
|
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
|
## Deploy and configure Prometheus Server
|
||||||
|
|
Loading…
Reference in a new issue