@@ -1307,6 +1307,142 @@ Each repository type may also include other statistics about the repositories of
1307
1307
1308
1308
====
1309
1309
1310
+ `ccs`::
1311
+ (object) Contains information relating to <<modules-cross-cluster-search, cross-cluster search>> settings and activity in the cluster.
1312
+ +
1313
+ .Properties of `ccs`
1314
+ [%collapsible%open]
1315
+ =====
1316
+
1317
+
1318
+ `_search`:::
1319
+ (object) Contains telemetry information about the <<modules-cross-cluster-search, cross-cluster searches>> in the cluster.
1320
+ +
1321
+ .Properties of `_search`
1322
+ [%collapsible%open]
1323
+ ======
1324
+ `total`:::
1325
+ (integer) The total number of cross-cluster search requests that have been executed by the cluster.
1326
+
1327
+ `success`:::
1328
+ (integer) The total number of cross-cluster search requests that have been successfully executed by the cluster.
1329
+
1330
+ `skipped`:::
1331
+ (integer) The total number of cross-cluster search requests that had at least one remote cluster skipped.
1332
+
1333
+ `took`:::
1334
+ (object) Contains statistics about the time taken to execute cross-cluster search requests.
1335
+ +
1336
+ .Properties of `took`
1337
+ [%collapsible%open]
1338
+ =======
1339
+ `max`:::
1340
+ (integer) The maximum time taken to execute a cross-cluster search request, in milliseconds.
1341
+
1342
+ `avg`:::
1343
+ (integer) The median time taken to execute a cross-cluster search request, in milliseconds.
1344
+
1345
+ `p90`:::
1346
+ (integer) The 90th percentile of the time taken to execute cross-cluster search requests, in milliseconds.
1347
+ =======
1348
+
1349
+ `took_mrt_true`::
1350
+ (object) Contains statistics about the time taken to execute cross-cluster search requests for which the
1351
+ <<ccs-minimize-roundtrips,`ccs_minimize_roundtrips`>> setting was set to `true`.
1352
+ +
1353
+ .Properties of `took_mrt_true`
1354
+ [%collapsible%open]
1355
+ =======
1356
+ `max`:::
1357
+ (integer) The maximum time taken to execute a cross-cluster search request, in milliseconds.
1358
+
1359
+ `avg`:::
1360
+ (integer) The median time taken to execute a cross-cluster search request, in milliseconds.
1361
+
1362
+ `p90`:::
1363
+ (integer) The 90th percentile of the time taken to execute cross-cluster search requests, in milliseconds.
1364
+ =======
1365
+
1366
+ `took_mrt_false`::
1367
+ (object) Contains statistics about the time taken to execute cross-cluster search requests for which the
1368
+ <<ccs-minimize-roundtrips,`ccs_minimize_roundtrips`>> setting was set to `false`.
1369
+ +
1370
+ .Properties of `took_mrt_false`
1371
+ [%collapsible%open]
1372
+ =======
1373
+ `max`:::
1374
+ (integer) The maximum time taken to execute a cross-cluster search request, in milliseconds.
1375
+
1376
+ `avg`:::
1377
+ (integer) The median time taken to execute a cross-cluster search request, in milliseconds.
1378
+
1379
+ `p90`:::
1380
+ (integer) The 90th percentile of the time taken to execute cross-cluster search requests, in milliseconds.
1381
+ =======
1382
+
1383
+ `remotes_per_search_max`::
1384
+ (integer) The maximum number of remote clusters that were queried in a single cross-cluster search request.
1385
+
1386
+ `remotes_per_search_avg`::
1387
+ (integer) The average number of remote clusters that were queried in a single cross-cluster search request.
1388
+
1389
+ `failure_reasons`::
1390
+ (object) Contains statistics about the reasons for cross-cluster search request failures.
1391
+ The keys are the failure reasons names and the values are the number of requests that failed for that reason.
1392
+
1393
+ `features`::
1394
+ (object) Contains statistics about the features used in cross-cluster search requests. The keys are the names of the search feature,
1395
+ and the values are the number of requests that used that feature. Single request can use more than one feature
1396
+ (e.g. both `async` and `wildcard`). Known features are:
1397
+
1398
+ * `async` - <<async-search, Async search>>
1399
+
1400
+ * `mrt` - <<ccs-minimize-roundtrips,`ccs_minimize_roundtrips`>> setting was set to `true`.
1401
+
1402
+ * `wildcard` - <<api-multi-index,Multi-target syntax>> for indices with wildcards was used in the search request.
1403
+
1404
+ `clients`::
1405
+ (object) Contains statistics about the clients that executed cross-cluster search requests.
1406
+ The keys are the names of the clients, and the values are the number of requests that were executed by that client.
1407
+ Only known clients (such as `kibana` or `elasticsearch`) are counted.
1408
+
1409
+ `clusters`::
1410
+ (object) Contains statistics about the clusters that were queried in cross-cluster search requests.
1411
+ The keys are cluster names, and the values are per-cluster telemetry data.
1412
+ This also includes the local cluster itself, which uses the name `(local)`.
1413
+ +
1414
+ .Properties of per-cluster data:
1415
+ [%collapsible%open]
1416
+ =======
1417
+ `total`:::
1418
+ (integer) The total number of successful (not skipped) cross-cluster search requests that were executed against this cluster.
1419
+ This may include requests where partial results were returned, but not requests in which the cluster has been skipped entirely.
1420
+
1421
+ `skipped`:::
1422
+ (integer) The total number of cross-cluster search requests for which this cluster was skipped.
1423
+
1424
+ `took`:::
1425
+ (object) Contains statistics about the time taken to execute requests against this cluster.
1426
+ +
1427
+ .Properties of `took`
1428
+ [%collapsible%open]
1429
+ ========
1430
+ `max`:::
1431
+ (integer) The maximum time taken to execute a cross-cluster search request, in milliseconds.
1432
+
1433
+ `avg`:::
1434
+ (integer) The median time taken to execute a cross-cluster search request, in milliseconds.
1435
+
1436
+ `p90`:::
1437
+ (integer) The 90th percentile of the time taken to execute cross-cluster search requests, in milliseconds.
1438
+ ========
1439
+
1440
+ =======
1441
+
1442
+ ======
1443
+
1444
+ =====
1445
+
1310
1446
[[cluster-stats-api-example]]
1311
1447
==== {api-examples-title}
1312
1448
@@ -1607,7 +1743,35 @@ The API returns the following response:
1607
1743
},
1608
1744
"repositories": {
1609
1745
...
1610
- }
1746
+ },
1747
+ "ccs": {
1748
+ "_search": {
1749
+ "total": 7,
1750
+ "success": 7,
1751
+ "skipped": 0,
1752
+ "took": {
1753
+ "max": 36,
1754
+ "avg": 20,
1755
+ "p90": 33
1756
+ },
1757
+ "took_mrt_true": {
1758
+ "max": 33,
1759
+ "avg": 15,
1760
+ "p90": 33
1761
+ },
1762
+ "took_mrt_false": {
1763
+ "max": 36,
1764
+ "avg": 26,
1765
+ "p90": 36
1766
+ },
1767
+ "remotes_per_search_max": 3,
1768
+ "remotes_per_search_avg": 2.0,
1769
+ "failure_reasons": { ... },
1770
+ "features": { ... },
1771
+ "clients": { ... },
1772
+ "clusters": { ... }
1773
+ }
1774
+ }
1611
1775
}
1612
1776
--------------------------------------------------
1613
1777
// TESTRESPONSE[s/"plugins": \[[^\]]*\]/"plugins": $body.$_path/]
@@ -1618,10 +1782,15 @@ The API returns the following response:
1618
1782
// TESTRESPONSE[s/"packaging_types": \[[^\]]*\]/"packaging_types": $body.$_path/]
1619
1783
// TESTRESPONSE[s/"snapshots": \{[^\}]*\}/"snapshots": $body.$_path/]
1620
1784
// TESTRESPONSE[s/"repositories": \{[^\}]*\}/"repositories": $body.$_path/]
1785
+ // TESTRESPONSE[s/"clusters": \{[^\}]*\}/"clusters": $body.$_path/]
1786
+ // TESTRESPONSE[s/"features": \{[^\}]*\}/"features": $body.$_path/]
1787
+ // TESTRESPONSE[s/"clients": \{[^\}]*\}/"clients": $body.$_path/]
1788
+ // TESTRESPONSE[s/"failure_reasons": \{[^\}]*\}/"failure_reasons": $body.$_path/]
1621
1789
// TESTRESPONSE[s/"field_types": \[[^\]]*\]/"field_types": $body.$_path/]
1622
1790
// TESTRESPONSE[s/"runtime_field_types": \[[^\]]*\]/"runtime_field_types": $body.$_path/]
1623
1791
// TESTRESPONSE[s/"search": \{[^\}]*\}/"search": $body.$_path/]
1624
- // TESTRESPONSE[s/: true|false/: $body.$_path/]
1792
+ // TESTRESPONSE[s/"remotes_per_search_avg": [.0-9]+/"remotes_per_search_avg": $body.$_path/]
1793
+ // TESTRESPONSE[s/: (true|false)/: $body.$_path/]
1625
1794
// TESTRESPONSE[s/: (\-)?[0-9]+/: $body.$_path/]
1626
1795
// TESTRESPONSE[s/: "[^"]*"/: $body.$_path/]
1627
1796
// These replacements do a few things:
0 commit comments