...
You can also define the query to search in a given context across all values of one or more tags provided in the context by specifying *
as a value for a tag. See the examples below for its use.
Note: An earlier version of this API (introduced in CDAP 2.8.0) has been deprecated, and should be replaced, as it will be removed in a later version of CDAP:
Code Block |
---|
POST /v3/metrics/search?target=childContext[&context=<context>]
|
Parameter | Description |
---|---|
| Metrics context to search within. If not provided, the search is provided across all contexts. Consists of a collection of tags. |
...
Code Block |
---|
POST /v3/metrics/search?target=metric&tag=<context> |
Parameter | Description | |
---|---|---|
Metrics |
Note: An earlier version of this API (introduced in CDAP 2.8.0) has been deprecated, and should be replaced, as it will be removed in a later version of CDAP:
...
Metrics context to search within. Consists of a collection of tags. |
Example
HTTP Method |
|
---|---|
Returns |
|
Description | Returns all metrics in the context of the application PurchaseHistory of the default namespace; in this case, returns a list of system and (possibly) user-defined metrics. |
|
|
HTTP Method |
|
Returns |
|
Description | Returns all metrics in the context of the service UploadService of the application SportResults of the default namespace; in this case, returns a list of system and user-defined metrics. |
...
Parameter | Description |
---|---|
| Metrics context to search within, a collection of tags |
| Metric(s) being queried, a collection of metric names |
| A time range or |
| Tag list by which to group results (optional) |
...
) |
...
Query Examples
HTTP Method |
|
---|---|
Returns |
|
Description | Using a System metric, system.process.events.processed |
|
|
HTTP Method |
|
Returns |
|
Description | Querying the User-defined metric names.bytes by its run-ID |
|
|
HTTP Method |
|
Returns |
|
Description | Using a User-defined metric, names.bytes in a service's Handler, called before any data entered, returning an empty series |
|
|
HTTP Method |
|
Returns |
|
Description | Using a User-defined metric, names.bytes in a service's Handler |
...