Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/rest-api/pages/rest-bucket-stats.adoc
Original file line number Diff line number Diff line change
@@ -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/<bucket-name>/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.
Expand Down
8 changes: 6 additions & 2 deletions modules/rest-api/partials/rest-buckets-table.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@
| 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/[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-multiple.adoc[Getting Multiple Statistics]

| `GET`
| `/pools/default/buckets/default`
Expand Down
4 changes: 2 additions & 2 deletions modules/rest-api/partials/rest-xdcr-table.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@


| `GET`
| `/pools/default/buckets/[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]

|===