Monitoring and Alert management tricks using Promtool and amtool
These days I am busy and exploring the most critical stuff of the cloud that is Monitoring. There were many ways to monitor the 'Kubernetes Cluster', CNCF recommendation on 'metric' data is ' Prometheus ' stack that is using Grafana , AlertManager . Install Prometheus your laptop I've chosen the Prometheus for Windows amd64 option as my system with Windows 7. download link Validating Prometheus alert rules After creating the Alert rule how do I check it is correct syntax or not. There is a nice tool that comes with Prometheus installation. Let me demonstrate the scenario where I've selected 7 important alert rules for my project. set PROMETHEUS_HOME=C:\Users\pavan\myprom\prometheus-2.8.1.windows-amd64 set AM_HOME=C:\Users\pavan\myprom\alertmanager-0.16.1.windows-amd64 set PATH=%PROMETHEUS_HOME%;%AM_HOME%;%PATH% After Setting the PATH you can validate the alerting rules with the following command: promtool check rules my-mon_alertrules.yml C...