Query Admin REST API
- reference
Overview
The Query Admin REST API is a secondary API provided by the Query service. This API enables you to retrieve statistics about the clusters and nodes running the Query service; view or specify node-level settings; and view or delete requests.
Version information
Version : 7.6
Host information
{scheme}://{host}:{port}
The URL scheme, host, and port are as follows.
Component | Description |
---|---|
scheme |
The URL scheme. Use Values: |
host |
The host name or IP address of a node running the Query service. Example: |
port |
The Query service REST port. Use Values: |
Resources
This section describes the operations available with this REST API. The operations are grouped in the following categories.
Active Requests
Table of Contents
Delete an Active Request
Retrieve Active Index Requests
Retrieve an Active Request
Retrieve All Active Requests
Delete an Active Request
DELETE /admin/active_requests/{request}
Parameters
Name | Description | Schema |
---|---|---|
request |
The name of a request.
This is the |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The active request was successfully terminated. |
|
500 |
Returns an error message if the active request could not be found. |
Object |
Example HTTP Request
Refer to Terminate an Active Request for examples.
Retrieve Active Index Requests
GET /admin/indexes/active_requests
Description
Returns all active index requests.
- Use Retrieve an Active Request to get information about an active index request.
- Use Delete an Active Request to terminate an active index request.
-
application/json
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of strings, each of which is the requestID of an active index request. |
String array |
Retrieve an Active Request
GET /admin/active_requests/{request}
Parameters
Name | Description | Schema |
---|---|---|
request |
The name of a request.
This is the |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object containing information about the specified active request. |
Example HTTP Request
Refer to Get Active Requests for examples.
Retrieve All Active Requests
GET /admin/active_requests
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of objects, each of which contains information about one active request. |
Requests array |
Example HTTP Request
Refer to Get Active Requests for examples.
Completed Requests
Table of Contents
Delete a Completed Request
Retrieve Completed Index Requests
Retrieve a Completed Request
Retrieve All Completed Requests
Delete a Completed Request
DELETE /admin/completed_requests/{request}
Parameters
Name | Description | Schema |
---|---|---|
request |
The name of a request.
This is the |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The completed request was successfully purged. |
|
500 |
Returns an error message if the completed request could not be found. |
Object |
Example HTTP Request
Refer to Purge the Completed Requests for examples.
Retrieve Completed Index Requests
GET /admin/indexes/completed_requests
Description
Returns all completed index requests.
- Use Retrieve a Completed Request to get information about a completed index request.
- Use Delete a Completed Request to purge a completed index request.
-
application/json
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of strings, each of which is the requestID of a completed index request. |
String array |
Retrieve a Completed Request
GET /admin/completed_requests/{request}
Parameters
Name | Description | Schema |
---|---|---|
request |
The name of a request.
This is the |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object containing information about the specified completed request. |
Example HTTP Request
Refer to Get Completed Requests for examples.
Retrieve All Completed Requests
GET /admin/completed_requests
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of objects, each of which contains information about one completed request. |
Requests array |
Example HTTP Request
Refer to Get Completed Requests for examples.
Configuration
Operations for cluster and node configuration.
Read a Cluster
GET /admin/clusters/{cluster}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object giving information about the specified cluster. |
Read All Clusters
GET /admin/clusters
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of objects, each of which gives information about one cluster. |
Cluster Information array |
Read Configuration
GET /admin/config
Description
Returns the configuration of the query service on the cluster.
-
application/json
Read a Node
GET /admin/clusters/{cluster}/nodes/{node}
Description
Returns information about the specified node in the specified cluster.
-
application/json
Parameters
Name | Description | Schema |
---|---|---|
cluster |
The name of a cluster. |
String |
node |
The name of a node. |
String |
Read All Nodes
GET /admin/clusters/{cluster}/nodes
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of objects, each of which gives information about one node. |
Node Information array |
Default
Other operations.
Run Garbage Collector
GET /admin/gc
Description
Runs the garbage collector.
A message is written to query.log
whenever the garbage collector endpoint is invoked.
-
application/json
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Indicates that the garbage collector was invoked. |
|
401 |
Error 10000: authentication failure. The invoking user is not a valid full-admin user. |
Object |
Ping
GET /admin/ping
Run Garbage Collector and Release Memory
POST /admin/gc
Description
Run the garbage collector and attempts to return freed memory to the OS.
A message is written to query.log
whenever the garbage collector endpoint is invoked.
-
application/json
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Indicates that the garbage collector was invoked. |
|
401 |
Error 10000: authentication failure. The invoking user is not a valid full-admin user. |
Object |
Prepared Statements
Table of Contents
Delete a Prepared Statement
Retrieve a Prepared Statement
Retrieve Prepared Index Statements
Retrieve All Prepared Statements
Delete a Prepared Statement
DELETE /admin/prepareds/{name}
Parameters
Name | Description | Schema |
---|---|---|
name |
The name of a prepared statement. This may be a UUID that was assigned automatically, or a name that was user-specified when the statement was created. |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The prepared statement was successfully deleted. |
|
500 |
Returns an error message if the prepared statement could not be found. |
Object |
Example HTTP Request
Refer to Delete Prepared Statements for examples.
Retrieve a Prepared Statement
GET /admin/prepareds/{name}
Parameters
Name | Description | Schema |
---|---|---|
name |
The name of a prepared statement. This may be a UUID that was assigned automatically, or a name that was user-specified when the statement was created. |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object containing information about the specified prepared statement. |
Example HTTP Request
Refer to Get Prepared Statements for examples.
Retrieve Prepared Index Statements
GET /admin/indexes/prepareds
Description
Returns all prepared index statements.
- Use Retrieve a Prepared Statement to get information about a prepared index statement.
- Use Delete a Prepared Statement to delete a prepared index statement.
-
application/json
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of strings, each of which is the name of a prepared index statement. |
String array |
Retrieve All Prepared Statements
GET /admin/prepareds
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of objects, each of which contains information about one prepared statement. |
Prepared Statements array |
Example HTTP Request
Refer to Get Prepared Statements for examples.
Settings
Operations for query settings.
Retrieve Node-Level Query Settings
GET /admin/settings
Description
Returns node-level query settings.
-
application/json
Refer to Configure Queries for more information. |
Update Node-Level Query Settings
POST /admin/settings
Description
Updates node-level query settings.
-
application/json
-
application/x-www-form-urlencoded
-
application/json
Refer to Configure Queries for more information. |
Parameters
Name | Description | Schema |
---|---|---|
Body |
An object specifying node-level query settings. |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object giving node-level query settings, including the latest changes. |
Statistics
Operations for query statistics.
Get Debug Variables
GET /debug/vars
Responses
HTTP Code | Description | Schema |
---|---|---|
302 |
Redirects to the Retrieve All Statistics endpoint. |
String (text/html) |
Retrieve a Statistic
GET /admin/stats/{stat}
Parameters
Name | Description | Schema |
---|---|---|
stat |
The name of a statistic. Only top-level statistic names can be used. You cannot specify a metric. Values: |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object containing all metrics for the specified statistic. Each statistic has a different set of metrics. |
Retrieve All Statistics
GET /admin/stats
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object containing all statistics. Each statistic consists of a top-level statistic name and a metric name. Each statistic has a different set of metrics. |
Retrieve Vitals
GET /admin/vitals
Description
Returns data about the running state and health of the query engine. This information can be very useful to assess the current workload and performance characteristics of a query engine, and hence load-balance the requests being sent to various query engines.
-
application/json
Example HTTP Request
Refer to Get System Vitals for examples.
Definitions
This section describes the properties consumed and returned by this REST API.
Cluster Information
Garbage Collection
Logging Parameters
Metrics
Node Information
Requests
Settings
Prepared Statements
Statistics
Vital Statistics
Cluster Information
Property | Schema | |
---|---|---|
name |
The name of the cluster. |
String |
datastore |
The URL of the datastore. |
String |
configstore |
The URL of the configstore. |
String |
accountstore |
The URL of the accountstore. |
String |
version |
String |
Garbage Collection
Property | Schema | |
---|---|---|
freed |
The amount of memory freed. |
Integer |
released |
Only returned by the POST method. The amount of memory released to the OS. |
Integer |
status |
The status of the garbage collector. |
String |
Logging Parameters
Property | Schema | |
---|---|---|
aborted |
If true, all requests that generate a panic are logged. Default: |
Boolean |
client |
The IP address of the client. If specified, all completed requests from this IP address are logged. Default: |
String |
context |
The opaque ID or context provided by the client. If specified, all completed requests with this client context ID are logged. Refer to the request-level |
String |
error |
An error number. If specified, all completed queries returning this error number are logged. Default: |
Integer (int32) |
tag |
A unique string which tags a set of qualifiers. Refer to Configure Completed Requests for more information. Default: |
String |
threshold |
A duration in milliseconds. If specified, all completed queries lasting longer than this threshold are logged. This is another way of specifying the node-level Default: |
Integer (int32) |
user |
A user name, as given in the request credentials. If specified, all completed queries with this user name are logged. Default: |
String |
Metrics
Property | Schema | |
---|---|---|
count |
A single value that represents the current state. |
Integer |
15m.rate |
15-minute exponentially weighted moving average. |
Big Decimal |
1m.rate |
1-minute exponentially weighted moving average. |
Big Decimal |
5m.rate |
5-minute exponentially weighted moving average. |
Big Decimal |
mean.rate |
Mean rate since the query service started. |
Big Decimal |
max |
The maximum value. |
Integer |
mean |
The mean value. |
Big Decimal |
median |
The median value. |
Big Decimal |
min |
The minimum value. |
Integer |
stddev |
The standard deviation. |
Big Decimal |
75% |
The 75th percentile. |
Big Decimal |
95% |
The 95th percentile. |
Big Decimal |
99% |
The 99th percentile. |
Big Decimal |
99.9% |
The 99.9th percentile. |
Big Decimal |
Node Information
Property | Schema | |
---|---|---|
cluster |
The name of the cluster. |
String |
name |
The URL of the node, including port number. |
String |
queryEndpoint |
The HTTP URL of the query endpoint. |
String |
adminEndpoint |
The HTTP URL of the admin endpoint. |
String |
querySecure |
The HTTPS URL of the query endpoint. |
String |
adminSecure |
The HTTPS URL of the admin endpoint. |
String |
options |
String |
Requests
Property | Schema | |
---|---|---|
clientContextID |
The opaque ID or context provided by the client.
Refer to the request-level |
String |
elapsedTime |
The time taken from when the request was acknowledged by the service to when the request was completed. It includes the time taken by the service to schedule the request. |
String (duration) |
errorCount |
Total number of errors encountered while executing the query. |
Integer |
memoryQuota |
The memory quota for the request, in MB. This property is only returned if a memory quota is set for the query. |
Integer |
node |
IP address and port number of the node where the query is executed. |
String |
phaseCounts |
Count of documents processed at selective phases involved in the query execution, such as authorize, index scan, fetch, parse, plan, run, etc. For active requests, this property is dynamic, depending on the documents processed by various phases up to this moment in time. Polling the active requests again may return different values. Example: |
Object |
phaseOperators |
Indicates the numbers of each kind of query operator involved in different phases of the query processing. For instance, a non-covering index path might involve one index scan and one fetch operator. A join would probably involve two or more fetches, one per keyspace. A union select would have twice as many operator counts, one per each branch of the union. Example: |
Object |
phaseTimes |
Cumulative execution times for various phases involved in the query execution, such as authorize, index scan, fetch, parse, plan, run, etc. For active requests, this property is dynamic, depending on the documents processed by various phases up to this moment in time. Polling the active requests again may return different values. Example: |
Object |
remoteAddr |
IP address and port number of the client application, from where the query is received. |
String |
requestId |
Unique request ID internally generated for the query. |
UUID (uuid) |
requestTime |
Timestamp when the query is received. |
Date (date-time) |
resultCount |
Total number of documents returned in the query result. |
Integer |
resultSize |
Total number of bytes returned in the query result. |
Integer |
scanConsistency |
The value of the query setting Scan Consistency used for the query. |
String |
serviceTime |
Total amount of calendar time taken to complete the query. |
String (duration) |
state |
The state of the query execution, such as Note that the To find requests that were successful, use this field in conjunction with the |
String |
statement |
The query statement being executed. |
String |
useCBO |
Whether the cost-based optimizer is enabled for the query. |
Boolean |
usedMemory |
The amount of document memory used to execute the request. This property is only returned if a memory quota is set for the query. |
Integer |
userAgent |
Name of the client application or program that issued the query. |
String |
users |
Username with whose privileges the query is run. |
String |
Settings
Property | Schema | |
---|---|---|
atrcollection |
Specifies the collection where active transaction records are stored. The collection must be present. If not specified, the active transaction record is stored in the default collection in the default scope in the bucket containing the first mutated document within the transaction. The value must be a string in the form The request-level Default: |
String |
auto-prepare |
Specifies whether the query engine should create a prepared statement every time a SQL++ request is submitted, whether the PREPARE statement is included or not. Refer to Auto-Prepare for more information. Default: |
Boolean |
cleanupclientattempts |
When enabled, the Query service preferentially aims to clean up just transactions that it has created, leaving transactions for the distributed cleanup process only when it is forced to. The cluster-level Default: |
Boolean |
cleanuplostattempts |
When enabled, the Query service takes part in the distributed cleanup process, and cleans up expired transactions created by any client. The cluster-level Default: |
Boolean |
cleanupwindow |
Specifies how frequently the Query service checks its subset of active transaction records for cleanup. Decreasing this setting causes expiration transactions to be found more swiftly, with the tradeoff of increasing the number of reads per second used for the scanning process. The value for this setting is a string.
Its format includes an amount and a mandatory unit, e.g.
The cluster-level Default: |
String (duration) |
completed |
A nested object that sets the parameters for the completed requests catalog. All completed requests that match these parameters are tracked in the completed requests catalog. Refer to Configure Completed Requests for more information and examples. |
|
completed-limit |
Sets the number of requests to be logged in the completed requests catalog. As new completed requests are added, old ones are removed. Increase this when the completed request keyspace is not big enough to track the slow requests, such as when you want a larger sample of slow requests. Refer to Configure Completed Requests for more information and examples. The cluster-level Default: |
Integer (int32) |
completed-max-plan-size |
A plan size in bytes. Limits the size of query execution plans that can be logged in the completed requests catalog. Values larger than the maximum limit are silently treated as the maximum limit. Queries with plans larger than this are not logged. You must obtain execution plans for such queries via profiling or using the EXPLAIN statement. Refer to Configure Completed Requests for more information. The cluster-level Default: |
Integer (int32) |
completed-stream-size |
Couchbase Server 7.6.4 A file size in MiB.
When specified, completed requests are saved to the Couchbase Server Specify Completed request streaming is available in Couchbase Server 7.6.4 and later. Refer to Stream Completed Requests for more information and examples. |
Integer (int32) |
completed-threshold |
A duration in milliseconds. All completed queries lasting longer than this threshold are logged in the completed requests catalog. Specify Refer to Configure Completed Requests for more information and examples. The cluster-level Default: |
Integer (int32) |
controls |
Specifies if there should be a controls section returned with the request results. When set to NOTE: If the request qualifies for caching, these values will also be cached in the The request-level Default: |
Boolean |
cpuprofile |
The absolute path and filename to write the CPU profile to a local file. The output file includes a controls section and performance measurements, such as memory allocation and garbage collection, to pinpoint bottlenecks and ways to improve your code execution. NOTE: If To stop Default: |
String |
debug |
Use debug mode. When set to Default: |
Boolean |
distribute |
This field is only available with the POST method. When specified alongside other settings, this field instructs the node that is processing the request to cascade those settings to all other query nodes. The actual value of this field is ignored. Example: |
Boolean |
functions-limit |
Maximum number of user-defined functions. Default: |
Integer (int32) |
keep-alive-length |
Maximum size of buffered result. Default: |
Integer (int32) |
loglevel |
Log level used in the logger. All values, in descending order of data:
The cluster-level Values: |
String |
max-index-api |
Max index API. This setting is provided for technical support only. |
Integer (int32) |
max-parallelism |
Specifies the maximum parallelism for queries on this node. If the value is zero or negative, the maximum parallelism is restricted to the number of allowed cores. Similarly, if the value is greater than the number of allowed cores, the maximum parallelism is restricted to the number of allowed cores. (The number of allowed cores is the same as the number of logical CPUs. In Community Edition, the number of allowed cores cannot be greater than 4. In Enterprise Edition, there is no limit to the number of allowed cores.) The cluster-level In addition, there is a request-level NOTE: To enable queries to run in parallel, you must specify the cluster-level Refer to Max Parallelism for more information. Default: |
Integer (int32) |
memory-quota |
Specifies the maximum amount of memory a request may use on this node, in MB.
Note that the overall node memory quota is this setting multiplied by the node-level Specify This parameter enforces a ceiling on the memory used for the tracked documents required for processing a request. It does not take into account any other memory that might be used to process a request, such as the stack, the operators, or some intermediate values. Within a transaction, this setting enforces the memory quota for the transaction by tracking the delta table and the transaction log (approximately). The cluster-level In addition, the request-level Default: |
Integer (int32) |
memprofile |
Filename to write the diagnostic memory usage log. NOTE: If To stop Default: |
String |
mutexprofile |
Mutex profile. This setting is provided for technical support only. Default: |
Boolean |
n1ql-feat-ctrl |
SQL++ feature control. This setting is provided for technical support only. The value may be an integer, or a string representing a hexadecimal number. The cluster-level Default: |
Integer (int32) |
node-quota |
Sets the soft memory limit for this node, in MB. The garbage collector tries to keep below this target. It is not a hard, absolute limit, and memory usage may exceed this value. When set to The cluster-level Default: |
Integer (int32) |
node-quota-val-percent |
The percentage of the The cluster-level Default: |
Integer (int32) |
num-cpus |
The number of CPUs the Query service can use on this node. Note that this setting requires a restart of the Query service to take effect. When set to The number of CPUs can never be greater than the number of logical CPUs. In Community Edition, the number of allowed CPUs cannot be greater than 4. In Enterprise Edition, there is no limit to the number of allowed CPUs. The cluster-level Default: |
Integer (int32) |
numatrs |
Specifies the total number of active transaction records. The cluster-level In addition, the request-level |
String |
pipeline-batch |
Controls the number of items execution operators can batch for Fetch from the KV. The cluster-level In addition, the request-level Default: |
Integer (int32) |
pipeline-cap |
Maximum number of items each execution operator can buffer between various operators. The cluster-level In addition, the request-level Default: |
Integer (int32) |
plus-servicers |
The number of service threads for transactions where the scan consistency is Example: |
Integer (int32) |
prepared-limit |
Maximum number of prepared statements in the cache. When this cache reaches the limit, the least recently used prepared statements will be discarded as new prepared statements are created. The cluster-level Default: |
Integer (int32) |
pretty |
Specifies whether query results are returned in pretty format. The request-level Default: |
Boolean |
profile |
Specifies if there should be a profile section returned with the request results. The valid values are:
NOTE: If Refer to Monitoring and Profiling Details for more information and examples. The request-level Values: |
String |
request-size-cap |
Maximum size of a request. Default: |
Integer (int32) |
scan-cap |
Maximum buffered channel size between the indexer client and the query service for index scans. This parameter controls when to use scan backfill. Use The cluster-level In addition, the request-level Default: |
Integer (int32) |
servicers |
The number of service threads for the query. The default is 4 times the number of cores on the query node. Note that the overall node memory quota is this setting multiplied by the node-level Default: |
Integer (int32) |
timeout |
Maximum time to spend on the request before timing out (ns). The value for this setting is an integer, representing a duration in nanoseconds. It must not be delimited by quotes, and must not include a unit. Specify The cluster-level In addition, the request-level Default: |
Long (int64) |
txtimeout |
Maximum time to spend on a transaction before timing out (ns).
This setting only applies to requests containing the The value for this setting is an integer, representing a duration in nanoseconds. It must not be delimited by quotes, and must not include a unit. Specify The cluster-level In addition, the request-level Default: |
Long (int64) |
use-cbo |
Specifies whether the cost-based optimizer is enabled. The cluster-level In addition, the request-level Default: |
Boolean |
use-replica |
Specifies whether a query can fetch data from a replica vBucket if active vBuckets are inaccessible. The possible values are:
The cluster-level In addition, the request-level Do not enable read from replica when you require consistent results. Only SELECT queries that are not within a transaction can read from replica. Reading from replica is only possible if the cluster uses Couchbase Server 7.6.0 or later. Note that KV range scans cannot currently be started on a replica vBucket. If a query uses sequential scan and a data node becomes unavailable, the query might return an error, even if read from replica is enabled for the request. Values: |
String |
Prepared Statements
Property | Schema | |
---|---|---|
encoded_plan |
The full prepared statement in encoded format. |
String |
featureControls |
This property is provided for technical support only. It is only returned when retrieving a specific prepared statement, not when retrieving all prepared statements. |
Integer |
indexApiVersion |
This property is provided for technical support only. It is only returned when retrieving a specific prepared statement, not when retrieving all prepared statements. |
Integer |
name |
The name of the prepared statement. This may be a UUID that was assigned automatically, or a name that was user-specified when the statement was created. |
String |
namespace |
The namespace in which the prepared statement is stored.
Currently, only the |
String |
node |
The node on which the prepared statement is stored. |
String |
statement |
The text of the query. |
String |
uses |
The count of times the prepared statement has been executed. |
Integer |
avgElapsedTime |
The mean time taken from when the request to execute the prepared statement was acknowledged by the service, to when the request was completed. It includes the time taken by the service to schedule the request. This property is only returned when the prepared statement has been executed. It is only returned when retrieving a specific prepared statement, not when retrieving all prepared statements. |
String (duration) |
avgServiceTime |
The mean amount of calendar time taken to complete the execution of the prepared statement. This property is only returned when the prepared statement has been executed. It is only returned when retrieving a specific prepared statement, not when retrieving all prepared statements. |
String (duration) |
lastUse |
Date and time of last use. This property is only returned when the prepared statement has been executed. |
Date (date-time) |
maxElapsedTime |
The maximum time taken from when the request to execute the prepared statement was acknowledged by the service, to when the request was completed. It includes the time taken by the service to schedule the request. This property is only returned when the prepared statement has been executed. It is only returned when retrieving a specific prepared statement, not when retrieving all prepared statements. |
String (duration) |
maxServiceTime |
The maximum amount of calendar time taken to complete the execution of the prepared statement. This property is only returned when the prepared statement has been executed. It is only returned when retrieving a specific prepared statement, not when retrieving all prepared statements. |
String (duration) |
minElapsedTime |
The minimum time taken from when the request to execute the prepared statement was acknowledged by the service, to when the request was completed. It includes the time taken by the service to schedule the request. This property is only returned when the prepared statement has been executed. It is only returned when retrieving a specific prepared statement, not when retrieving all prepared statements. |
String (duration) |
minServiceTime |
The minimum amount of calendar time taken to complete the execution of the prepared statement. This property is only returned when the prepared statement has been executed. It is only returned when retrieving a specific prepared statement, not when retrieving all prepared statements. |
String (duration) |
Statistics
Property | Schema | |
---|---|---|
active_requests.count |
Total number of active requests. |
Integer |
at_plus.count |
Total number of query requests with |
Integer |
audit_actions.count |
The total number of audit records sent to the server. Some requests cause more than one audit record to be emitted. Records in the output queue that have not yet been sent to the server are not counted. |
Integer |
audit_actions_failed.count |
The total number of audit records sent to the server that failed. |
Integer |
audit_requests_filtered.count |
The number of potentially auditable requests that cause no audit action to be taken. |
Integer |
audit_requests_total.count |
The total number of potentially auditable requests sent to the query engine. |
Integer |
cancelled.count |
Total number of cancelled requests. |
Integer |
deletes.count |
Total number of DELETE operations. |
Integer |
errors.count |
The total number of query errors returned so far. |
Integer |
index_scans.count |
Total number of secondary index scans. |
Integer |
inserts.count |
Total number of INSERT operations. |
Integer |
invalid_requests.count |
Total number of requests for unsupported endpoints. |
Integer |
mutations.count |
Total number of document mutations. |
Integer |
prepared.count |
Total number of prepared statements executed. |
Integer |
primary_scans.count |
Total number of primary index scans. |
Integer |
queued_requests.count |
Total number of queued requests. |
Integer |
request_time.count |
Total end-to-end time to process all queries (ns). |
Integer |
request_timer.15m.rate |
Number of query requests processed per second. 15-minute exponentially weighted moving average. |
Big Decimal |
request_timer.1m.rate |
Number of query requests processed per second. 1-minute exponentially weighted moving average. |
Big Decimal |
request_timer.5m.rate |
Number of query requests processed per second. 5-minute exponentially weighted moving average. |
Big Decimal |
request_timer.75% |
End-to-end time to process a query (ns). The 75th percentile. |
Big Decimal |
request_timer.95% |
End-to-end time to process a query (ns). The 95th percentile. |
Big Decimal |
request_timer.99% |
End-to-end time to process a query (ns). The 99th percentile. |
Big Decimal |
request_timer.99.9% |
End-to-end time to process a query (ns). The 99.9th percentile. |
Big Decimal |
request_timer.count |
Total number of query requests. |
Integer |
request_timer.max |
End-to-end time to process a query (ns). The maximum value. |
Integer |
request_timer.mean |
End-to-end time to process a query (ns). The mean value. |
Big Decimal |
request_timer.mean.rate |
Number of query requests processed per second. Mean rate since the query service started. |
Big Decimal |
request_timer.median |
End-to-end time to process a query (ns). The median value. |
Big Decimal |
request_timer.min |
End-to-end time to process a query (ns). The minimum value. |
Integer |
request_timer.stddev |
End-to-end time to process a query (ns). The standard deviation. |
Big Decimal |
requests.count |
Total number of query requests. |
Integer |
requests_1000ms.count |
Number of queries that take longer than 1000ms. |
Integer |
requests_250ms.count |
Number of queries that take longer than 250ms. |
Integer |
requests_5000ms.count |
Number of queries that take longer than 5000ms. |
Integer |
requests_500ms.count |
Number of queries that take longer than 500ms. |
Integer |
result_count.count |
Total number of results (documents) returned by the query engine. |
Integer |
result_size.count |
Total size of data returned by the query engine (bytes). |
Integer |
scan_plus.count |
Total number of query requests with |
Integer |
selects.count |
Total number of SELECT requests. |
Integer |
service_time.count |
Time to execute all queries (ns). |
Integer |
unbounded.count |
Total number of query requests with |
Integer |
updates.count |
Total number of UPDATE requests. |
Integer |
warnings.count |
The total number of query warnings returned so far. |
Integer |
Vital Statistics
Property | Schema | |
---|---|---|
bucket.IO.stats |
The number of reads and retries for each bucket. |
Object |
uptime |
The uptime of the query engine. |
String (duration) |
local.time |
The local time of the query engine. |
Date (date-time) |
version |
The version of the query engine. |
String |
total.threads |
The number of active threads used by the query engine. |
Integer |
cores |
The maximum number of logical cores available to the query engine. |
Integer |
ffdc.total |
The total number of times FFDC has been invoked since the last restart. |
Integer |
gc.num |
The target heap size of the next garbage collection cycle. |
Long (int64) |
gc.pause.time |
The total time spent pausing for garbage collection since the query engine started (ns). |
String (duration) |
gc.pause.percent |
The percentage of time spent pausing for garbage collection since the last time the statistics were checked. |
Long (int64) |
healthy |
False when either the unbounded or plus request queues are full; true otherwise. |
Boolean |
host.memory.free |
Amount of free memory on the host. |
Long (int64) |
host.memory.quota |
The host memory quota. This reflects the node-quota setting. |
Long (int64) |
host.memory.total |
Total memory on the host. |
Long (int64) |
host.memory.value_quota |
This the total document memory quota on the node. |
Long (int64) |
load |
A calculation for how busy the server is. |
Integer |
loadfactor |
The moving 15 minute average of the load calculation. |
Integer |
memory.usage |
The amount of memory allocated for heap objects (bytes). This increases as heap objects are allocated, and decreases as objects are freed. |
Long (int64) |
memory.total |
The cumulative amount of memory allocated for heap objects (bytes). This increases as heap objects are allocated, but does not decrease when objects are freed. |
Long (int64) |
memory.system |
The total amount of memory obtained from the operating system (bytes). This measures the virtual address space reserved by the query engine for heaps, stacks, and other internal data structures. |
Long (int64) |
node |
The name or IP address and port of the node. |
String |
node.allocated.values |
The total number of values allocated to contain documents or computations around documents. (This is only of relevance internally.) |
Integer |
node.memory.usage |
The currently allocated document memory on the node. |
Integer |
cpu.user.percent |
CPU usage. The percentage of time spent executing user code since the last time the statistics were checked. |
Long (int64) |
cpu.sys.percent |
CPU usage. The percentage of time spent executing system code since the last time the statistics were checked. |
Long (int64) |
process.memory.usage |
Current process memory use. |
Integer |
process.percore.cpupercent |
Average CPU usage per core. |
Big Decimal |
process.rss |
Process RSS (bytes) |
Integer |
process.service.usage |
The number of active servicers for the dominant workload — unbound queue servicers or plus queue servicers. |
Integer |
request.completed.count |
Total number of completed requests. |
Integer |
request.active.count |
Total number of active requests. |
Integer |
request.per.sec.1min |
Number of query requests processed per second. 1-minute exponentially weighted moving average. |
Big Decimal |
request.per.sec.5min |
Number of query requests processed per second. 5-minute exponentially weighted moving average. |
Big Decimal |
request.per.sec.15min |
Number of query requests processed per second. 15-minute exponentially weighted moving average. |
Big Decimal |
request.queued.count |
Number of queued requests. |
Integer |
request.quota.used.hwm |
High water mark for request quota use. |
Integer |
request_time.mean |
End-to-end time to process a query. The mean value. |
String (duration) |
request_time.median |
End-to-end time to process a query. The median value. |
String (duration) |
request_time.80percentile |
End-to-end time to process a query. The 80th percentile. |
String (duration) |
request_time.95percentile |
End-to-end time to process a query. The 95th percentile. |
String (duration) |
request_time.99percentile |
End-to-end time to process a query. The 99th percentile. |
String (duration) |
request.prepared.percent |
Percentage of requests that are prepared statements. |
Integer |
servicers.paused.count |
Number of servicers temporarily paused due to memory pressure. (Applies to serverless environments only.) |
Integer |
servicers.paused.total |
Number of times servicers have been temporarily paused. (Applies to serverless environments only.) |
Integer |
temp.hwm |
High water mark for temp space use directly by query. (Doesn't include use by the GSI and FTS clients.) |
Integer |
temp.usage |
Current Query temp space use. (Doesn't include use by the GSI and FTS clients.) |
Integer |
Security
Default
The Admin API supports admin credentials. Credentials can be passed via HTTP headers (HTTP basic authentication).
Type : http
None
No authentication is required for the Ping or Get Debug Variables endpoints.
See Also
-
For cluster-level settings, see the Query Settings REST API.
-
For request-level parameters, see the Query Service REST API.