-
Notifications
You must be signed in to change notification settings - Fork 482
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
PrometheusLayer: Add a new metrics called bytes_duration_seconds
#4644
Comments
Understood. I also have the same concerns.
I found that the three different metrics layer in OpenDAL observes the request duration in different ways. MetricsLayerThe opendal/core/src/layers/metrics.rs Lines 787 to 804 in bfe9e44
There is one exception: The block_write opendal/core/src/layers/metrics.rs Lines 636 to 645 in bfe9e44
PrometheusLayerThe opendal/core/src/layers/prometheus.rs Lines 345 to 369 in bfe9e44
PrometheusClientLayerThe opendal/core/src/layers/prometheus_client.rs Lines 577 to 588 in bfe9e44
opendal/core/src/layers/prometheus_client.rs Lines 637 to 643 in bfe9e44
DocumentAccording to the document, users might expect to observe the time spent on reading/writing bytes from opendal/core/src/layers/metrics.rs Lines 37 to 48 in bfe9e44
opendal/core/src/layers/prometheus.rs Line 49 in bfe9e44
Questions
|
Yes, there are historical reasons why the two layers did not evolve simultaneously. And we do need to use a consistent way to record the request duration. Our pattern will be:
We don't need seperate metric for |
Do we still need
Do you mean that Will we have a metric |
The idea of tracking the duration for a reader and writer seems illogical to me because it might include irrelevant time periods. For instance, if you create a new writer and have them write every 10 seconds, measuring their duration doesn't make sense.
The current time only measures the cost of
read
/write
, users can use this to know if they spent too much time on opening areader
/writer
.I think we can add a new metrics called
bytes_duration_seconds
, so we can observe the time we spent on reading/writing bytes.Originally posted by @Xuanwo in GreptimeTeam/greptimedb#4041 (comment)
The text was updated successfully, but these errors were encountered: