Monitoring and Logging
Definition:
Monitoring involves observing the system’s health, performance, and uptime.
Logging is about collecting and analyzing system and application-generated data (logs).
Why it’s important:
● Helps quickly detect system crashes.
● Keeps track of server health continuously.
● Essential for troubleshooting and security auditing.
Practical Example:
● Suppose your web app suddenly becomes unavailable.
● A monitoring tool like Prometheus alerts you that "CPU usage is high" or "Memory is
exhausted."
● Checking logs through Elasticsearch, you find the exact error that caused the crash.
Popular Tools:
● Prometheus (Monitoring)
● Grafana (Dashboard visualization)
● ELK Stack (Elasticsearch, Logstash, Kibana — for centralized logging)
●