edit-icon download-icon

Query Metric, TagKey, and Tag

Last Updated: May 11, 2018

Request path and method

Path Method Description
/api/suggest POST Queries the Metric, TagKey, and TagValue.

Request parameters

Name Type Required Description Default value Example
type String Yes Type to be queried. Options: metrics, TagKey, and TagValue None metrics
q String No Prefix filtering None my_
max Integer No Maximum number of returned results 25 4

Request JSON example

Job: Query four indexes prefixed by “my”.

Request: POST/api/suggest

Body:

  1. {
  2. "type": "metrics",
  3. "q": "my_",
  4. "max": 4
  5. }

Response description

The response is the queried string array:

  1. [ "my_metric1", "my_metric2", "my_metric3", "my_metric4" ]
Thank you! We've received your feedback.