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

Calculate percentile on metric value #15557

Open
Druson opened this issue Dec 30, 2024 · 0 comments
Open

Calculate percentile on metric value #15557

Druson opened this issue Dec 30, 2024 · 0 comments

Comments

@Druson
Copy link

Druson commented Dec 30, 2024

Is your feature request related to a problem? Please describe.

  • In some cases the logs contains duplicate log line (but with different timestamp), I want to dedup it firstly then calculate the percentile.

Describe the solution you'd like

histogram_quantile(0.95, first_over_time({service_name="xxx"}|=`response`|=`duration=`|unwrap duration[$__auto]) by(request_id) )

Describe alternatives you've considered

  • use recording rule.

Additional context

  • N/A.
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

No branches or pull requests

1 participant