Skip to main content

statistics

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

Overview

Namestatistics
TypeResource
Idlinode.managed.statistics

Fields

The following fields are returned by SELECT queries:

A list of Managed Stats from the last 24 hours.

NameDatatypeDescription
cpuarrayCPU usage stats from the last 24 hours.
diskarrayDisk usage stats from the last 24 hours.
net_inarrayInbound network traffic stats from the last 24 hours.
net_outarrayOutbound network traffic stats from the last 24 hours.
swaparraySwap usage stats from the last 24 hours.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectReturns a list of metrics for the Linodes on your account in arrays of coordinates (x-axis and y-axis data points). You can use these data points to plot your own graph visualizations. These metrics reflect the last 24 hours of combined usage across all managed Linodes on your account, giving you a high-level snapshot of data for the following:

- CPU
- Disk I/O
- Swap usage
- Network in
- Network out

This operation can only be accessed by the unrestricted users of an account.

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

SELECT examples

Returns a list of metrics for the Linodes on your account in arrays of coordinates (x-axis and y-axis data points). You can use these data points to plot your own graph visualizations. These metrics reflect the last 24 hours of combined usage across all managed Linodes on your account, giving you a high-level snapshot of data for the following:

- CPU
- Disk I/O
- Swap usage
- Network in
- Network out

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

SELECT
cpu,
disk,
net_in,
net_out,
swap
FROM linode.managed.statistics
;