Proposal about expand more channel for metric export #3314
Labels
area/metrics
Issues or PRs related to metrics and monitoring
kind/feature
Category issues or prs related to feature request.
Issue Description
Hi, community. I am a new learner for sentinel whose design is amazing to me. When i was reading the source code, i found that the mertic export is so simple currently which can be found in
MetricWriter
. The channel for exporting is only to export to a file. And this has been hard code in project which makes it difficult to extern, for example, we hope to collect all app metric into database, mongodb and so on to do data analysis but no way with current design.Describe what feature you want
Add the more channel or way to expand for metric exporting.
Describe your initial design (if present)
I wanna to design a interface to do mertic export. Here are definition:
The default implement is the origin way to export: file export.
This interface will be held in
MetricTimerListener
.I am not sure whether my idea is right. Please correct me if any mistake. Thanks.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: