Skip to main content

metrics

Creates, updates, deletes, gets or lists a metrics resource.

Overview

Namemetrics
TypeResource
Idlinode.monitor.metrics

Fields

The following fields are returned by SELECT queries:

Returns a paginated list of metric information.

NameDatatypeDescription
dataarray
pageintegerThe current page.
pagesintegerThe total number of pages.
resultsintegerThe total number of results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_monitor_informationselectX-FilterBeta Returns metrics for a specific service type. Include the appropriate service_type as a path parameter.

> 📘
>
> - This operation is beta. Call it using the v4beta path in its URL.
>
> - Currently, only the Managed Databases (dbaas) service type is supported.

Learn more...

Learn more...
post_read_metricexecBeta Returns metrics information for the individual entities within a specific service type. Include the appropriate service_type as a path parameter. Requires an authorization: Bearer token you've created for this service_type.

> 📘
>
> - Currently, only the Managed Databases (dbaas) service type is supported.
>
> - This operation uses a different URL and version from standard Linode API operations. Verify you're using the URL with the monitor-api.linode.com hostname and include v2beta as the version in the URL.
post_get_tokenexecentity_idsBeta Returns a token that authenticates requests for the entities within a specific service type. Include the appropriate service_type as a path parameter. The token has a lifetime of six hours after you create it. For an example of the token generation process, see Monitor API operation authentication.

> 📘
>
> - This operation is beta. Call it using the v4beta path in its URL.
>
> - Currently, only the Managed Databases (dbaas) service type is supported.
>
> - You also need read_only access to the scope for the selected service_type.

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
X-FilterobjectSpecifies a JSON object to filter down the results. See Filtering and sorting for details. (example: {{X-Filter}})

SELECT examples

Beta Returns metrics for a specific service type. Include the appropriate service_type as a path parameter.

> 📘
>
> - This operation is beta. Call it using the v4beta path in its URL.
>
> - Currently, only the Managed Databases (dbaas) service type is supported.

Learn more...

Learn more...

SELECT
data,
page,
pages,
results
FROM linode.monitor.metrics
WHERE X-Filter = '{{ X-Filter }}';

Lifecycle Methods

Beta Returns metrics information for the individual entities within a specific service type. Include the appropriate service_type as a path parameter. Requires an authorization: Bearer token you've created for this service_type.

> 📘
>
> - Currently, only the Managed Databases (dbaas) service type is supported.
>
> - This operation uses a different URL and version from standard Linode API operations. Verify you're using the URL with the monitor-api.linode.com hostname and include v2beta as the version in the URL.

EXEC linode.monitor.metrics.post_read_metric 
;