Skip to content

如何实现熔断指标监控

HaojunRen edited this page May 31, 2024 · 2 revisions

全链路调用过程中,实施端到端Sentinel熔断时,在不同场景下会触发如下四个事件

  • Pass
  • Block
  • Success
  • Exception

通过Prometheus Micrometer对上述事件进行计数统计,可输出Grafana看板上

使用者可以通过如下开关打开或者关闭输出功能项

# 启动和关闭Sentinel Metric通过次数统计输出功能。缺失则默认为true
spring.application.strategy.metric.sentinel.pass.qps.output.enabled=true
# 启动和关闭Sentinel Metric阻塞次数统计输出功能。缺失则默认为true
spring.application.strategy.metric.sentinel.block.qps.output.enabled=true
# 启动和关闭Sentinel Metric成功次数统计输出功能。缺失则默认为true
spring.application.strategy.metric.sentinel.success.qps.output.enabled=true
# 启动和关闭Sentinel Metric异常次数统计输出功能。缺失则默认为true
spring.application.strategy.metric.sentinel.exception.qps.output.enabled=true




2017-2050 ©Nepxion Studio Apache License

           

Total visits

讲义篇

集成篇

概念篇

实践篇

功能篇

配置篇

扩展篇

测试篇

升级篇

贡献篇

Clone this wiki locally