Skip to content

[Website]: Percentile ranks aggregation - load_time_ranks example is wrong #2567

@Vahor

Description

@Vahor

Type of issue

Inaccurate

What documentation page is affected

https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-percentile-rank-aggregation

What happened?

Assume your data consists of website load times. You may have a service agreement that 95% of page loads complete within 500ms and 99% of page loads complete within 600ms.

After the example, the documentation says

From this information you can determine you are hitting the 99% load time target but not quite hitting the 95% load time target

but with those values it does not seems right:

 "aggregations": {
    "load_time_ranks": {
      "values": {
        "500.0": 55.0,
        "600.0": 64.0
      }
    }
  }
}

Here I read it as 55% of values are below 500 and 64% are below 600.

In 8.8

the example was

"500.0": 90.01,
"600.0": 100.0

with these values we have 100% below 600 so the 99% target is ok, and 90% for 500 so 95% is not quite hitting.

It seems the old value was correct.

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:DeveloperIssues owned by the Developer Docs Teamcommunitysource:webIssues originating from the elastic.co docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions