CPU 正常不代表服务健康。请求延迟、错误率、队列长度才是真信号。
操作步骤
# RED 三指标最实用
curl -s http://localhost:9090/metrics
# process_resident_memory_bytes
# http_request_duration_seconds_count
# http_requests_total{code="500"}
要点速览
- RED 三指标:速率(Rate)、错误(Errors)、时延(Duration)最实用。
- 业务指标(如订单数)比系统指标更贴近用户。
- 指标要有标签维度,才能下钻定位。
监控看 RED:速率、错误、时延,比单看 CPU 更懂服务。