Function: rate(set[], options = {})
Given an arbitrary number of series, returns a set of equal length where each value has been converted to a rate over the defined duration. The duration of the period can be set with the following parameter:
duration
- This converts every value to a rate, where the period of the rate is defined by the given duration. For every valuex
, the effective transform run is:(x/p) * duration
. Wherep
is the automatic period of the data determined by the current rollup resolution, the saved metric period attribute, or the downsample period specified in a call to series(). For example, to get "rate per minute", you would set duration to "60"( x/p * 60 )
. Whereas, to get "rate per second", you would set duration to "1"( x/p * 1)
. The duration defaults to "1" if not specified, implying all rates are converted to per-second.
rate(s("http.requests.count", {"@host":"*"}, {period: "300"}),{duration:"60"})
How rate() detects the period
- If a metric does not have a period set, then period is defaulted to resolution of the data.
- If the series() was given a ‘period' parameter, it will be used in place of the metric period.
- When you switch to a higher viewing window, the data switches to a rollup resolution. Therefore, the period is calculated as the Max of (period, rollup resolution).
Navigation Notice: When the APM Integrated Experience is enabled, AppOptics shares a common navigation and enhanced feature set with other integrated experience products. How you navigate AppOptics and access its features may vary from these instructions.
The scripts are not supported under any SolarWinds support program or service. The scripts are provided AS IS without warranty of any kind. SolarWinds further disclaims all warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The risk arising out of the use or performance of the scripts and documentation stays with you. In no event shall SolarWinds or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the scripts or documentation.