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

[DGS-18780] Ensure p99 metrics are correctly published #519

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

pritishatx
Copy link
Contributor

@pritishatx pritishatx commented Dec 17, 2024

We noticed that the percentile latency metrics in rest-utils (request-latency-95 and request-latency-99) are capped out at 10s (code ref).

The PR makes PERCENTILE_MAX_LATENCY_IN_MS configurable in RestConfig, with 10s as the default value.

Slack thread

@pritishatx pritishatx requested review from a team as code owners December 17, 2024 16:00
@pritishatx pritishatx closed this Dec 17, 2024
@pritishatx pritishatx changed the title [DGS-18780] Ensure [DGS-18780] Ensure p99 metrics are correctly published Dec 17, 2024
@pritishatx pritishatx reopened this Dec 17, 2024
@pritishatx pritishatx requested a review from ehumber December 17, 2024 21:17
Copy link
Member

@mattwong949 mattwong949 left a comment

Choose a reason for hiding this comment

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

LGTM

@pritishatx pritishatx merged commit e8029bb into master Jan 15, 2025
2 checks passed
@pritishatx pritishatx deleted the percentilemaxms branch January 15, 2025 20:45
).define(
PERCENTILE_MAX_LATENCY_MS_CONFIG,
Type.DOUBLE,
PERCENTILE_MAX_LATENCY_MS_DEFAULT,
Copy link
Member

Choose a reason for hiding this comment

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

[minor] we should have put the validation here to avoid non positive value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, let me get back with a fix for this.

Copy link
Member

Choose a reason for hiding this comment

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

thanks @pritishatx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @trnguyencflt, raised a PR to add the validation.

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