This project covers the implementation of a Kubernetes cluster that includes deployments of monitoring applications (Grafana, Prometheus) targeting an nginx server.
For each task, you will find a set of scripts and, sometimes, yaml files. The scripts are ordered via a number at the beginning. Run each script, starting from the one that begins with 0, ending with the highest number.
For example:
cd task1
./0-setup.sh
./1-test.sh
The tasks are organised as follows:
Kubernetes cluster creation and nginx server deployment.
Deploy and expose Prometheus exporter as a service.
Deploy Prometheus via Helm and configure it. Test via queries.
Deploy Grafana via Helm and configure it. In the UI, I added http://prometheus-server
as a data source and I configured this dashboard.
Perform a basic denial of service attack on the nginx server as a learning experience (i.e. to see how the monitoring apps work).