Skip to content

Commit 7192bd5

Browse files
RayOffiahsimon-dew
andauthored
[DOC-13153]: Feedback on Query Service Metrics | Couchbase Docs (#3818)
* [DOC-13153]: Feedback on Query Service Metrics | Couchbase Docs Added a short example: using CURL to retrieve metrics. Signed-off-by: Ray Offiah <[email protected]> * Update query-service-metrics.adoc Co-authored-by: Simon Dew <[email protected]> --------- Signed-off-by: Ray Offiah <[email protected]> Co-authored-by: Simon Dew <[email protected]>
1 parent 5a27660 commit 7192bd5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modules/metrics-reference/pages/query-service-metrics.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@
66

77
The following Query Service metrics can be queried by means of the REST APIs described in xref:rest-api:rest-statistics.adoc[Statistics].
88

9+
As a brief introduction however, this is how you would go about building a REST command for the `n1ql_active_requests` metric.
10+
11+
'''
12+
.Using CURL to retrieve Query Service metrics
13+
14+
Run the following command from your shell console to get the total number of active requests.
15+
16+
[source, shell]
17+
----
18+
curl -X GET --location "http://localhost:8091/pools/default/stats/range/n1ql_active_requests" \
19+
--basic --user Administrator:password
20+
----
21+
22+
'''
923
See xref:query-service-metrics-cross-reference.adoc[] if you are looking for a metric name you know from an alternative supported or legacy tool.
1024

1125
[template,attachment$n1ql_metrics_metadata.json]

0 commit comments

Comments
 (0)