feat(observability): replace metrics-rs with prometheus-client#12787
feat(observability): replace metrics-rs with prometheus-client#12787bohutang merged 88 commits intodatabendlabs:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
* updates * updates * Update 02-query-config.md * Update create-catalog.md * Update presign.md
* chore: styles * chore: Replaced Twitter Logo * fix: styles * fix: tag styles
Xuanwo
left a comment
There was a problem hiding this comment.
Please enable opendal's prometheus layer and disable it's metrics layer to make it work with databend.
I tried upgrade opendal but failed due to the api seems changed a lot, I choose to only disable the MetricsLayer in this PR yet, and enable the prometheus client layer later after opendal upgraded. It seems that currently there's a StorageMetricsAccessor which also covers the metrics on accessing opendal, but the metrics in StorageMetricsAccessor is kind of a subset of the opendal metrics, I suppose that StorageMetricsAccessor could be removed after the opendal upgraded with PrometheusClientLayer enabled. |
drmingdrmer
left a comment
There was a problem hiding this comment.
Reviewed 39 of 40 files at r1, 3 of 3 files at r2.
Reviewable status: 40 of 42 files reviewed, all discussions resolved (waiting on @Xuanwo)
|
Hi, this PR contains breaking changes introduced in OpenDAL v0.40.0, please read our upgrade note carefully to make sure nothing is broken: https://opendal.apache.org/docs/rust/opendal/docs/upgrade/index.html#upgrade-to-v040 |
Oh, please ignore this comment. Seems opendal not upgraded yet. |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
This PR migrated all the metrics into prometheus-client, and:
support reset metrics(in another PR)Closes #12688
Closes #12870
This change is