信号与指标
每个服务至少暴露哪些指标?
| 信号 | 类型 | 维度 | 用途 |
|---|---|---|---|
| 请求量 | counter | service、method、status | 发现流量变化 |
| 错误率 | counter | service、method、code | 发现故障 |
| 延迟分位数 | histogram | service、method | 定位长尾 |
| 重试 / 熔断 / 限流 | counter | method、reason | 发现流量放大与保护触发 |
| 连接池 | gauge | target、state | 容量与建连异常 |
| 队列 / 并发 | gauge | queue、worker | 饱和度 |