-
Notifications
You must be signed in to change notification settings - Fork 756
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
Feature: Refactoring Databend Metrics Component with Prometheus #9422
Comments
OpenDAL will support both native proemtheus client and metrics without histogram: |
@everpcpc can you help take a look? quq |
Something we can refactor during this issue: collect all metrics together as a |
do we need Summary(Quantiles)?both crate Summary is not aggregatable. Buckets is much easier to impl, without worry about OOM. in contrast, meta:
query:
background:this issue is now a project of OSPP https://summer-ospp.ac.cn/org/prodetail/236460552 personally, I think buckets is more useful in production. Just to confirm. |
I'd prefer a just enough solution like the In cases such as databend-query or meta, the distribution of a metric value is predictable, making a versatile |
I'll take this issue because there are some needs to cover more metrics. Please contact me if you're interested to work on this together. |
Summary
metrics-rs is a general abstraction layer across different metrics solutions like statsd, prometheus, new-relic, etc.
However, a general abstraction have a bit additional cost above a raw proemtheus client:
In a pulling metrics model, the memory allocation is mostly fixed for a set of labels. However in a push model, sometimes we need a buffer to store the recent metrics temporarly, like:
metrics-rs/metrics#245 (comment)
Nowadays prometheus is the de facto standard in the metrics area, we can consider take a raw prometheus client without considering pushing metrics to others like
statsd
, it have some benefits:We can choose between:
The text was updated successfully, but these errors were encountered: