Monitoring is a crucial aspect of any Ops pipeline and for technologies like Kubernetes which is a rage right now, a robust monitoring setup can bolster your confidence to migrate production workloads from VMs to Containers.
Today we will deploy a Production grade Prometheus based monitoring system, in less than 5 minutes.
_Note: All the manifests being used are present in this _Github Repo. I recommend cloning it before you start.
PS: Leave a star if you like it.
Before deploying, please update “<your_slack_hook>” , “<your_victorops_hook>” , _‘<YOUR_API_KEY>’ _. If you use a notification channel other than these, please follow thisdocumentationand update the config
kubectl apply -f k8s/monitoring/alertmanager/
This will create the following:
Shell
root$ kubectl get pods -l app=alertmanager2
NAME READY STATUS RESTARTS AGE3
alertmanager-42s7s25467-b2vqb 1/1 Running 0 2m4
root$ kubectl get svc -l name=alertmanager5
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE6
alertmanager LoadBalancer 10.12.8.110 10.0.0.6 9093:32634/TCP 2m7
root$ kubectl get configmap8
NAME DATA AGE9
alertmanager 1 2m
In your browser, navigate to http://:9093 and you should see the alertmanager console.
#tutorial #kubernetes #cloud native #prometheus