NOTE
How to Design a Monitoring System
Monitoring observes systems through logs, metrics, and traces. These notes examine centralized queries, trend-based alerting, and request-path diagnosis.
This is a historical learning note and may contain outdated or incomplete understanding.
1. What Is Monitoring
- Log monitoring (Log): collect logs from code in one place for unified querying and processing.
- Metric monitoring (Metrics): record the time and value of events to observe trends.
- Call-chain monitoring (Tracing): record the complete process of a request. It is used to see which nodes the request passed through and how much time each node consumed.
2. Why Monitoring Is Needed
A microservice architecture consists of many services cooperating to complete a request. Once an exception occurs, we need to quickly locate the service with the problem, which requires monitoring.
3. How to Implement Monitoring
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub