Skip to content

Commit b4573b2

Browse files
dzane17kolchfa-aws
andcommitted
Update _observing-your-data/query-insights/top-n-queries.md
Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: David Zane <[email protected]>
1 parent 74c1ab1 commit b4573b2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

_observing-your-data/query-insights/top-n-queries.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nav_order: 10
77

88
# Top N queries
99

10-
Monitoring the top N queries in query insights features can help you gain real-time insights into the top queries with high latency within a certain time frame (for example, the last hour).
10+
Monitoring the top N queries using query insights allows you to gain real-time visibility into the queries with the greatest latency or resource consumption over a specified time period (for example, the last hour).
1111

1212
## Configuring top N query monitoring
1313

@@ -72,13 +72,15 @@ PUT _cluster/settings
7272

7373
## Monitoring the top N queries
7474

75-
You can use the Insights API endpoint to obtain the top N queries. Specify the `type` parameter to get top N results for each metric type. Calling this API without `type` returns top N `latency` results by default.
75+
You can use the Insights API endpoint to retrieve the top N queries. This API returns top N `latency` results by default.
7676

7777
```json
7878
GET /_insights/top_queries
7979
```
8080
{% include copy-curl.html %}
8181

82+
Specify the `type` parameter to retrieve the top N results for other metric types. The results will be sorted in descending order based on the specified metric type.
83+
8284
```json
8385
GET /_insights/top_queries?type=latency
8486
```
@@ -94,7 +96,7 @@ GET /_insights/top_queries?type=memory
9496
```
9597
{% include copy-curl.html %}
9698

97-
If you are not seeing results, verify top N is enabled for the target metric type and ensure search requests were sent during the current time window.
99+
If your query returns no results, ensure that top N is enabled for the target metric type and that search requests were made within the current [time window](#configuring-the-window-size).
98100
{: .important}
99101

100102
## Exporting top N query data

0 commit comments

Comments
 (0)