
Monitoring your Kubernetes Cluster with Prometheus and Grafana.
And here is how to install this.
sudo su
apt-get update && apt-get install -y build-essential golang
git clone https://github.com/carlosedp/cluster-monitoring.git
cd cluster-monitoring
We have to edit the vars.jsonnet file so that this is working on our Kubernetes Cluster.
vi vars.jsonnet
Find thise settings in the config file and change them.
armExporter = true
k3s = true
master_ip = 192.168.0.220
suffixDomain = 192.168.0.220.nip.io
192.168.0.220 is my master change this to your ip address of your Kubernetes Cluster master ip.
make vendor
make
kubectl apply -f manifests/setup/
kubectl apply -f manifests/
Now the installation is finish we can take a look – is all installed.
kubectl get ingress -n monitoring

https://grafana.192.168.0.220.nip.io #open grafana for the cluster
https://prometheus.192.168.0.220.nip.io #open prometheus
https://alertmanager.192.168.0.220.nip.io #open alertmanager
Initial password for Grafana is admin, admin.
I have add this to pfSense to get the url’s to work alternative is to add this to your hostfile.
The simpe test is to ping grafana.192.168.0.220.nip.io this host must respond with 192.168.0.220 otherwise can you not reach the website of Grafana.
