From 92ed285b6bbf3f54f3f0fad2f2642bc46b36bef1 Mon Sep 17 00:00:00 2001 From: supritha-kumar Date: Tue, 23 Sep 2025 09:05:19 +0530 Subject: [PATCH 1/4] Update rest-xdcr-table.adoc Had made changes for 7.6 which have been approved by reporter porting the changes to other versions of Server https://github.com/couchbase/docs-server/pull/3859/files --- modules/rest-api/partials/rest-xdcr-table.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rest-api/partials/rest-xdcr-table.adoc b/modules/rest-api/partials/rest-xdcr-table.adoc index de6a8c9753..945dee3ad7 100644 --- a/modules/rest-api/partials/rest-xdcr-table.adoc +++ b/modules/rest-api/partials/rest-xdcr-table.adoc @@ -44,7 +44,7 @@ | `GET` -| `/pools/default/buckets/[source_bucket]/stats/[destination_endpoint]` +| `/pools/defaults/stats/range/[source_bucket]/stats/[destination_endpoint]` | xref:rest-api:rest-xdcr-statistics.adoc[Getting Statistics] |=== From 11400b4bbdb833247c13c090c37d9d080347736a Mon Sep 17 00:00:00 2001 From: supritha-kumar Date: Tue, 23 Sep 2025 09:15:39 +0530 Subject: [PATCH 2/4] Update rest-buckets-table.adoc Had made changes for 7.6 which have been approved by reporter porting the changes to other versions of Server https://github.com/couchbase/docs-server/pull/3859/files --- modules/rest-api/partials/rest-buckets-table.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/rest-api/partials/rest-buckets-table.adoc b/modules/rest-api/partials/rest-buckets-table.adoc index 87b5554d42..b0d0c6e8e0 100644 --- a/modules/rest-api/partials/rest-buckets-table.adoc +++ b/modules/rest-api/partials/rest-buckets-table.adoc @@ -23,8 +23,8 @@ | xref:rest-api:rest-retrieve-bucket-nodes.adoc[Listing Nodes by Bucket] | `GET` -| `/pools/default/buckets/[bucket-name]/stats` -| xref:rest-api:rest-bucket-stats.adoc[Getting Bucket Statistics] +| `pools/default/stats/range` +| xref:rest-api:rest-statistics.adoc[Statistics] | `GET` | `/pools/default/buckets/default` From dbc65f27e8d8ea48746d9cf785dcf93a2cfe6430 Mon Sep 17 00:00:00 2001 From: rao-shwe Date: Tue, 23 Sep 2025 13:18:49 +0530 Subject: [PATCH 3/4] added missing slash in line 26 --- modules/rest-api/partials/rest-buckets-table.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rest-api/partials/rest-buckets-table.adoc b/modules/rest-api/partials/rest-buckets-table.adoc index b0d0c6e8e0..cf1f39aa15 100644 --- a/modules/rest-api/partials/rest-buckets-table.adoc +++ b/modules/rest-api/partials/rest-buckets-table.adoc @@ -23,7 +23,7 @@ | xref:rest-api:rest-retrieve-bucket-nodes.adoc[Listing Nodes by Bucket] | `GET` -| `pools/default/stats/range` +| `/pools/default/stats/range` | xref:rest-api:rest-statistics.adoc[Statistics] | `GET` From 198b520e00957e044f0e25ebcffe7617e797ef0e Mon Sep 17 00:00:00 2001 From: Shwetha Rao Date: Fri, 10 Oct 2025 14:04:21 +0530 Subject: [PATCH 4/4] Added correct information --- modules/rest-api/pages/rest-bucket-stats.adoc | 7 ++++++- modules/rest-api/partials/rest-buckets-table.adoc | 6 +++++- modules/rest-api/partials/rest-xdcr-table.adoc | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/modules/rest-api/pages/rest-bucket-stats.adoc b/modules/rest-api/pages/rest-bucket-stats.adoc index b2b8afe8e8..aaeadff1f2 100644 --- a/modules/rest-api/pages/rest-bucket-stats.adoc +++ b/modules/rest-api/pages/rest-bucket-stats.adoc @@ -1,11 +1,16 @@ = Getting Bucket Statistics -:description: pass:q[To retrieve bucket statistics, use the `GET` operation with the `/pools/default/buckets/bucket_name/stats` URI.] +:description: pass:q[See the IMPORTANT note.] :page-topic-type: reference :page-aliases: rest-api:rest-node-retrieve-stats +[.deprecated]#Deprecated# + [abstract] {description} +IMPORTANT: As of Couchbase Server 8.0, the REST API endpoint `GET /pools/default/buckets//stats` is deprecated. +For retrieving bucket statistics details, use xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic] or xref:rest-api:rest-statistics-multiple.adoc[Getting Multiple Statistics] instead. + == HTTP method and URI Statistics can be retrieved at the bucket level. diff --git a/modules/rest-api/partials/rest-buckets-table.adoc b/modules/rest-api/partials/rest-buckets-table.adoc index cf1f39aa15..94e8987762 100644 --- a/modules/rest-api/partials/rest-buckets-table.adoc +++ b/modules/rest-api/partials/rest-buckets-table.adoc @@ -23,8 +23,12 @@ | xref:rest-api:rest-retrieve-bucket-nodes.adoc[Listing Nodes by Bucket] | `GET` +| `/pools/default/stats/range/[metric_name]/[function-expression]` +| xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic] + +| `POST` | `/pools/default/stats/range` -| xref:rest-api:rest-statistics.adoc[Statistics] +| xref:rest-api:rest-statistics-multiple.adoc[Getting Multiple Statistics] | `GET` | `/pools/default/buckets/default` diff --git a/modules/rest-api/partials/rest-xdcr-table.adoc b/modules/rest-api/partials/rest-xdcr-table.adoc index 945dee3ad7..8b5361709e 100644 --- a/modules/rest-api/partials/rest-xdcr-table.adoc +++ b/modules/rest-api/partials/rest-xdcr-table.adoc @@ -44,7 +44,7 @@ | `GET` -| `/pools/defaults/stats/range/[source_bucket]/stats/[destination_endpoint]` -| xref:rest-api:rest-xdcr-statistics.adoc[Getting Statistics] +| `/pools/default/stats/range/[statistics_name]` +| xref:rest-api:rest-statistics-single.adoc[Getting a Single Statistic] |===