sofastack / sofa-jraft

A production-grade java implementation of RAFT consensus algorithm.
https://www.sofastack.tech/projects/sofa-jraft/
Apache License 2.0
3.56k stars 1.14k forks source link

【监控指标】RheaKVStore目前能否支持监控指标对接Prometheus #1127

Closed Tacode closed 1 month ago

Tacode commented 1 month ago

Your question

目前看官方文档给出Jraft的一些监控指标都是通过输出到log4j 等日志库的形式展现出来的,咨询一下这块有啥方式能够对接到Prometheus

fengjiachun commented 1 month ago

jraft 使用 dropwizard metrics,理论上可导出为 prometheus 格式,我随便搜了下搜到这个项目(不对此次推荐负责,请务必自行了解清楚) https://github.com/dhatim/dropwizard-prometheus