The address is the instance IP and port, such as 10.13.20.15:9200
, which can be obtained in the console.
Path: ${metric_name}/_search
, where ${metric_name}
is the metric name.
Method: GET
You can set the _routing
parameter during data write to improve the query efficiency. For more information, see the samples.
Queries mainly include regular queries and aggregate queries. Query requests are fully compatible with Elasticsearch APIs. For the specific request content, see the samples.
You need to judge whether a request is successful based on the error
field. If the response content contains the error
field, the request failed. For the error details, see the error
field description.
For specific query samples, see Common Query Samples.
Was this page helpful?