Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentinel的扩展模块 “sentinel-extension\sentinel-prometheus-metric-exporter” 是否有必要? #3461

Open
bingSea opened this issue Oct 25, 2024 · 0 comments

Comments

@bingSea
Copy link

bingSea commented Oct 25, 2024

最近读Sentinel源码,发现里面多出一个扩展模块 sentinel-prometheus-metric-exporter,基于之前对Sentinel的使用经验,对其必要性产生怀疑,理由如下:
我们知道,在Sentinel中有个sentinel-dashboard模块,其中有个类src/main/java/com/alibaba/csp/sentinel/dashboard/repository/metric/InMemoryMetricsRepository.java, 这个类是在内存中保留了各节点5分钟的监控信息,既然监控信息已经收集起来了, 为什么不直接在这里扩展一个metric-exporter,所有的节点监控都在这里暴露了,这样不用麻烦在每个应用内开一个metric-exporter,应用只用关注自己的业务开发即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant