Lists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based on CPU usage.
HTTP request
GET https://bigtableadmin.googleapis.com/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The cluster name to list hot tablets. Value is in the following form: Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
startTime |
The start time to list hot tablets. The hot tablets in the response will have start times between the requested start time and end time. Start time defaults to Now if it is unset, and end time defaults to Now - 24 hours if it is unset. The start time should be less than the end time, and the maximum allowed time range between start time and end time is 48 hours. Start time and end time should have values between Now and Now - 14 days. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
The end time to list hot tablets. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
pageSize |
Maximum number of results per page. A pageSize that is empty or zero lets the server choose the number of items to return. A pageSize which is strictly positive will return at most that many items. A negative pageSize will cause an error. Following the first request, subsequent paginated calls do not need a pageSize field. If a pageSize is set in subsequent calls, it must match the pageSize given in the first request. |
pageToken |
The value of |
Request body
The request body must be empty.
Response body
Response message for BigtableInstanceAdmin.ListHotTablets.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"hotTablets": [
{
object ( |
Fields | |
---|---|
hotTablets[] |
List of hot tablets in the tables of the requested cluster that fall within the requested time range. Hot tablets are ordered by node cpu usage percent. If there are multiple hot tablets that correspond to the same tablet within a 15-minute interval, only the hot tablet with the highest node cpu usage will be included in the response. |
nextPageToken |
Set if not all hot tablets could be returned in a single response. Pass this value to |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/bigtable.admin
https://www.googleapis.com/auth/bigtable.admin.cluster
https://www.googleapis.com/auth/bigtable.admin.instance
https://www.googleapis.com/auth/cloud-bigtable.admin
https://www.googleapis.com/auth/cloud-bigtable.admin.cluster
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
HotTablet
A tablet is a defined by a start and end key and is explained in https://cloud.google.com/bigtable/docs/overview#architecture and https://cloud.google.com/bigtable/docs/performance#optimization. A Hot tablet is a tablet that exhibits high average cpu usage during the time interval from start time to end time.
JSON representation |
---|
{ "name": string, "tableName": string, "startTime": string, "endTime": string, "startKey": string, "endKey": string, "nodeCpuUsagePercent": number } |
Fields | |
---|---|
name |
The unique name of the hot tablet. Values are of the form |
tableName |
Name of the table that contains the tablet. Values are of the form |
startTime |
Output only. The start time of the hot tablet. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Output only. The end time of the hot tablet. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
startKey |
Tablet Start Key (inclusive). |
endKey |
Tablet End Key (inclusive). |
nodeCpuUsagePercent |
Output only. The average CPU usage spent by a node on this tablet over the startTime to endTime time range. The percentage is the amount of CPU used by the node to serve the tablet, from 0% (tablet was not interacted with) to 100% (the node spent all cycles serving the hot tablet). |