Skip to content
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

Enable custom latency buckets #1376

Merged
merged 7 commits into from
Jun 21, 2023
Merged

Conversation

amishra-u
Copy link
Contributor

Prometheus provides a default latency bucket, and that may not be helpful all use case. This change provide capability to define custom latency buckets.

@amishra-u amishra-u requested a review from werkt as a code owner June 16, 2023 23:57
@luxe
Copy link
Contributor

luxe commented Jun 18, 2023

awesome! I'm not sure why the formatter didn't fix the buildifer issue. If you can get that green, we can land.

@amishra-u
Copy link
Contributor Author

awesome! I'm not sure why the formatter didn't fix the buildifer issue. If you can get that green, we can land.

Running buildifier fixed it.

@amishra-u
Copy link
Contributor Author

awesome! I'm not sure why the formatter didn't fix the buildifer issue. If you can get that green, we can land.

Fixed it.

@@ -9,8 +9,9 @@ server:
actionCacheReadOnly: false
port: 8980
grpcMetrics:
enabled: false
provideLatencyHistograms: false
enabled: true
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason to have lines 12:13 and 95:96 be different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing specific, I was testing locally and updated to ensure both combination works.

provideLatencyHistograms: false
enabled: true
provideLatencyHistograms: true
latencyBuckets: [0.001, 0.005, 0.01, 0.05, 0.075, 0.1, 0.25, 0.5, 1.0, 2.0, 5.0, 10.0]
Copy link
Contributor

Choose a reason for hiding this comment

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

we still get the infinite bucket, right? i also suggest example to include buckets up to 60s, and then 60+ since 60s is default for bazel.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated example config with infinity bucket. Also in the example I have used different latency buckets for server and workers as developers can have different latency bucket for server and worker.

@luxe luxe merged commit e99878b into buildfarm:main Jun 21, 2023
amishra-u added a commit to amishra-u/bazel-buildfarm that referenced this pull request Jul 3, 2023
amishra-u added a commit to amishra-u/bazel-buildfarm that referenced this pull request Jul 3, 2023
luxe pushed a commit that referenced this pull request Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants