The simple demo example of Prometheus + Grafana + Nginx demo in the Kubernetes cluster.
This demo was used with GCP Kubernetes cluster. As a demo dashboard was used official nginx dashboard.
- gcloud (installation guide is here)
- kubectl (installation guide is here)
To start using gcloud utility execute next command
gcloud init
Execute the next command to sign in
gcloud auth login
Select your GCP project (if you have one) or create a new one (you can do it via GCP Web Interface)
gcloud projects list
gcloud config set project <YOUR_PROJECT_ID>
Finally, we can setup demo cluster
gcloud container clusters create demo-cluster --zone europe-west4-a
kubectl will be automatically configured to your created cluster
You can check your demo-cluster status with next command
kubectl get nodes
- Clone this git repository
git clone https://github.com/ltblueberry/monitoring-demo
- Execute install.sh script
./install.sh
- Execute get-urls.sh script to get all services URLs.
./get-urls.sh
Now you can check it all with web-browser
- Execute uninstall.sh script
./uninstall.sh
Copyright (c) 2020 ltblueberry