-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add short readme for the monitoring stack and link to it from the main prow readme. Signed-off-by: Lennart Jern <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Kube-prometheus for Metal3 Prow | ||
|
||
This monitoring stack is based on | ||
[kube-prometheus](https://github.com/prometheus-operator/kube-prometheus/tree/main). | ||
We also took inspiration from how [k8s.io is monitoring | ||
ProwJobs](https://github.com/kubernetes/k8s.io/pull/5355). | ||
|
||
This is how you apply it in the cluster: | ||
|
||
```bash | ||
kubectl apply -f manifests/setup | ||
kubectl apply -f manifests | ||
kubectl apply -f prow-rules.yaml | ||
``` | ||
|
||
The `manifests` are rendered using jsonnet based on | ||
`metal3-kube-prometheus.jsonnet`. Use the build script to render them after | ||
making changes: | ||
|
||
```bash | ||
make build | ||
``` | ||
|
||
## How to access? | ||
|
||
For now, we have not exposed grafana or any other component. You can access them | ||
by using port-forward like this (after setting up access to the cluster itself): | ||
|
||
```bash | ||
kubectl -n monitoring port-forward svc/grafana 3000 | ||
``` | ||
|
||
Then go to <localhost:3000>. |