Skip to content

feat(layer/prometheus): Support custom metric bucket for Histogram#3275

Merged
Xuanwo merged 9 commits intoapache:mainfrom
Zheaoli:manjusaka/prometheus-layer
Oct 15, 2023
Merged

feat(layer/prometheus): Support custom metric bucket for Histogram#3275
Xuanwo merged 9 commits intoapache:mainfrom
Zheaoli:manjusaka/prometheus-layer

Conversation

@Zheaoli
Copy link
Copy Markdown
Member

@Zheaoli Zheaoli commented Oct 13, 2023

For now, the OpenDAL hardcode the metric bucket in Prometheus Histogram. In production, we always want to customize it depending on the file size and normal I/O time in out environment.

I make this PR try to make this option configable

@Zheaoli Zheaoli requested a review from Xuanwo as a code owner October 13, 2023 09:19
@github-actions github-actions Bot added the releases-note/feat The PR implements a new feature or has a title that begins with "feat" label Oct 13, 2023
@Zheaoli Zheaoli force-pushed the manjusaka/prometheus-layer branch from bfa44b9 to 7e23f64 Compare October 13, 2023 09:19
Comment thread core/src/layers/prometheus.rs Outdated
@Zheaoli Zheaoli requested review from Xuanwo and suyanhanx October 13, 2023 14:54
Comment thread core/src/layers/prometheus.rs
Comment thread core/src/layers/prometheus.rs Outdated
@Zheaoli Zheaoli force-pushed the manjusaka/prometheus-layer branch 3 times, most recently from 9b7a4bf to 47cac68 Compare October 13, 2023 18:01
Comment thread core/src/layers/prometheus.rs Outdated
@Zheaoli Zheaoli force-pushed the manjusaka/prometheus-layer branch from 47cac68 to 4856eff Compare October 15, 2023 12:04
@Zheaoli Zheaoli requested review from Xuanwo and suyanhanx October 15, 2023 12:06
Comment thread core/src/layers/prometheus.rs Outdated
Comment thread core/src/layers/prometheus.rs Outdated
Comment thread core/src/layers/prometheus.rs Outdated
Comment thread core/src/layers/prometheus.rs Outdated
@Zheaoli Zheaoli requested a review from PsiACE as a code owner October 15, 2023 15:32
Signed-off-by: Manjusaka <me@manjusaka.me>
Signed-off-by: Manjusaka <me@manjusaka.me>
@Zheaoli Zheaoli force-pushed the manjusaka/prometheus-layer branch from 1cf39f4 to fe8327a Compare October 15, 2023 15:34
Signed-off-by: Manjusaka <me@manjusaka.me>
Comment thread core/src/layers/prometheus.rs Outdated
Comment thread core/src/layers/prometheus.rs Outdated
Comment thread website/docs/layers/_category_.yml Outdated
Comment thread website/docs/layers/prometheus.mdx Outdated
Zheaoli and others added 5 commits October 15, 2023 23:36
Co-authored-by: Xuanwo <github@xuanwo.io>
Co-authored-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Manjusaka <me@manjusaka.me>
Signed-off-by: Manjusaka <me@manjusaka.me>
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thank you for your patience.

@Xuanwo Xuanwo merged commit 8d9c7f4 into apache:main Oct 15, 2023
@Zheaoli Zheaoli deleted the manjusaka/prometheus-layer branch October 15, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants