Update readme

This commit is contained in:
Carlos de Paula 2020-05-25 20:52:39 -03:00
parent 80bedf1e20
commit 5b75c81a6a

View File

@ -10,8 +10,6 @@ The content of this project is written in jsonnet and is an extension of the fan
If you like this project and others I've been contributing and would like to support me, please check-out my [Patreon page](https://www.patreon.com/carlosedp)! If you like this project and others I've been contributing and would like to support me, please check-out my [Patreon page](https://www.patreon.com/carlosedp)!
To continue using my previous stack with manifests and previous versions of the operator and components, use the legacy repo tag from: https://github.com/carlosedp/prometheus-operator-ARM/tree/legacy.
Components included in this package: Components included in this package:
* The Prometheus Operator * The Prometheus Operator
@ -23,15 +21,16 @@ Components included in this package:
* Grafana * Grafana
* SMTP relay to Gmail for Grafana notifications (optional) * SMTP relay to Gmail for Grafana notifications (optional)
There are additional modules (disabled by default) to monitor other components of the infra-structure. These can be disabled on `vars.jsonnet` file by setting the module in `installModules` to `false`. There are additional modules (disabled by default) to monitor other components of the infra-structure. These can be enabled or disabled on `vars.jsonnet` file by setting the module `enabled` flag in `modules` to `true` or `false`.
The additional modules are: The additional modules are:
* ARM_exporter to generate temperature metrics * arm-exporter to generate temperature metrics (works on some ARM boards like RaspberryPi)
* MetalLB metrics * MetalLB metrics
* Traefik metrics * Traefik metrics
* ElasticSearch metrics * ElasticSearch metrics
* APC UPS metrics * APC UPS metrics
* GMail SMTP relay module
There are also options to set the ingress domain suffix and enable persistence for Grafana and Prometheus. There are also options to set the ingress domain suffix and enable persistence for Grafana and Prometheus.
@ -54,13 +53,8 @@ $ make deploy
# Or manually: # Or manually:
$ make $ make
$ kubectl apply -f manifests/setup/
$ kubectl apply -f manifests/ $ kubectl apply -f manifests/
# It can take a few seconds for the above 'create manifests' command to fully create the following resources, so verify the resources are ready before proceeding.
$ until kubectl get customresourcedefinitions servicemonitors.monitoring.coreos.com ; do date; sleep 1; echo ""; done
$ until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done
$ kubectl apply -f manifests/ # This command sometimes may need to be done twice (to workaround a race condition)
``` ```
If you get an error from applying the manifests, run the `make deploy` or `kubectl apply -f manifests/` again. Sometimes the resources required to apply the CRDs are not deployed yet. If you get an error from applying the manifests, run the `make deploy` or `kubectl apply -f manifests/` again. Sometimes the resources required to apply the CRDs are not deployed yet.
@ -111,13 +105,8 @@ $ make deploy
$ make vendor $ make vendor
$ make $ make
$ kubectl apply -f manifests/setup/
$ kubectl apply -f manifests/ $ kubectl apply -f manifests/
# It can take a few seconds for the above 'create manifests' command to fully create the following resources, so verify the resources are ready before proceeding.
$ until kubectl get customresourcedefinitions servicemonitors.monitoring.coreos.com ; do date; sleep 1; echo ""; done
$ until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done
$ kubectl apply -f manifests/ # This command sometimes may need to be done twice (to workaround a race condition)
``` ```
If you get an error from applying the manifests, run the `make deploy` or `kubectl apply -f manifests/` again. Sometimes the resources required to apply the CRDs are not deployed yet. If you get an error from applying the manifests, run the `make deploy` or `kubectl apply -f manifests/` again. Sometimes the resources required to apply the CRDs are not deployed yet.
@ -148,7 +137,7 @@ The project requires json-bundler and the jsonnet compiler. The Makefile does th
```bash ```bash
git clone https://github.com/carlosedp/cluster-monitoring git clone https://github.com/carlosedp/cluster-monitoring
cd prometheus-operator-ARM cd cluster-monitoring
make vendor make vendor
# Change the jsonnet files... # Change the jsonnet files...
make make