[MacOsX] – How to install Prometheus, Grafana, and AlertManager in Minikube?

Pre-requirements:

Have the Minikube installed and working already. See the post How to install Minikube with UI in the MacOsX? in order to achieve it.

Steps to install

  • Run the following command:

minikube delete && minikube start –vm-driver hyperkit –kubernetes-version=v1.14.4 –memory=4096 –bootstrapper=kubeadm –extra-config=kubelet.authentication-token-webhook=true –extra-config=kubelet.authorization-mode=Webhook –extra-config=scheduler.address=0.0.0.0 –extra-config=controller-manager.address=0.0.0.0

NOTE: If you are not using hyperkit just change the  –vm-driver or do not add it to use the default one.

  • Run :
minikube addons disable metrics-server

kubectl create -f manifests/

Prometheus:

  • Run the following command to expose the Prometheus UI/service.

kubectl –namespace monitoring port-forward svc/prometheus-k8s 9090

Screenshot 2019-10-02 at 12.42.56.png

Grafana

  • Run the following command to expose the Grafana UI/service.
$ kubectl --namespace monitoring port-forward svc/grafana 3000

Alert Manager

  • Run the following command to expose the Alert Manager UI/service.
$ kubectl --namespace monitoring port-forward svc/alertmanager-main 9093
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s