Statistics Channel Properties

Top  Previous  Next

This article cover properties of a single statistical channel.

Source Data

Expression

The Expression property defines what data is the base of statistics. It is evaluated on every change of variable that the channel is built upon.

The expression must evaluate to a number (integer of floating point). If the expression evaluates to any other data type, the system tries to convert it to a number and skips the value if conversion fails. If the expression evaluates to NULL, the system applies NULL Value Handling method to it (see below).

Statistics Channel Expression Resolution Environment:

Default Context

Context that the channel is defined in.

Default Data Table

Current value of the variable that the channel is based on.

Default Row

0 if Use Key Field property is disabled.

Number of currently processed row if Use Key Field is enabled.

Environment Variables

Standard variables only.

Key Fields

A channel may include one or more Datasets for a single context variable. Multiple Datasets can be created for tabular variables. In this case each row in the variable is identified by unique string key (Dataset name). See Working With Key section for further explanation.

Values Post-Processing

Statistics channel provides several options for post-processing values returned by channel Expression:

NULL Value Processing
Out Of Range Values Processing
Minimal Value
Maximal Value

NULL Value Processing

This setting defines that should the channel do when its Expression was evaluated to NULL. There are two options:

Discard. Value will be silently dropped. If no other values were received for a certain period, channel overall value becomes UNDEFINED for this period.
Treat As Zero. NULLs values will be converted to zeros.

Out Of Range Value Processing

Specifies how to process the values that are less than Minimum Value or greater than Maximum Value. The following choices are available:

Do Nothing. Simply disables minimum/maximum values for the channel.
Discard. Drops values that are less than minimum or greater than maximum. If no other values were received for a certain period, channel overall value becomes UNDEFINED for this period.
Normalize. Values less than minimum and greater than maximum are converted to the minimum and maximum values respectively.

Minimal Value and Maximal Value

These numbers define discarding/normalization thresholds, as specified by Out Of Range Value Processing option.

note_further-wt

When enabled for the counting-type channels (Counter, Derive and Absolute), these numbers define minimal and maximal per-second rates.

Statistics Storage

Basically, statistical data may be stored in files and memory. File-based storage is persistent, while data of memory-based channels is discarded when server is restarted.

Storage

Storage property defines statistics storage type. There are three options:

Standard file (Lower memory usage, slower)
Mapped file (Higher memory usage, faster)
Memory

Memory based storage guarantees maximum performance, but it doesn't preserve data between server restarts and, therefore, has very limited uses.

Here are some guidelines for making a choice between standard files and memory-mapped files:

Memory-mapped file caches channel data in memory (borrowed not from JVM, but directly from the underlying operating system), while regular file's data is kept on the disk.
Both file-based storage's performance dramatically depend to the operating system, so in most cases it's necessary to perform some tests to finally select one of them.

Channel Type

The channel Type setting defines how are subsequent source values processed to form Primary Data Points for the channel. See Channel Types for details.

Data Aggregation

Statistics module use Aggregation Functions (AF) to convert Primary Data Points into Consolidated Data Points (see RRD Technology for details). There are siz aggregation functions that may be individually enabled/disabled for a channel:

Average
Minimum
Maximum
Total
First
Last

Data aggregation functions are applied to all Archives enabled for the channel. For example, if Average aggregation function is enabled, the system keeps Minutely, Hourly and other averages.

Average

This function calculates an average of Primary Data Points to form a Consolidated Data Point. This is an average of values themselves (for Gauge channel) or value change rates (for Counter and other channel types).

Minimum

This function takes finds minimal Primary Data Point to use as a Consolidated Data Point. This is minimal value itself (for Gauge channel) or minimal value change rate (for Counter and other channel types).

Maximum

Similar to Minimum.

Total

This function sums all Primary Data Points to form a Consolidated Data Point. This is a sum of values themselves (for Gauge channel) or value change rates (for Counter and other channel types).

First

This function takes first Primary Data Point as the value for a Consolidated Data Point.

Last

This function takes last Primary Data Point as the value for a Consolidated Data Point.

Archives

Each channel can have all or some of the following Archives enabled:

Minutely
Hourly
Daily
Weekly
Monthly
Yearly

Length of each archive, i.e. number of Consolidated Data Points in it, is configurable.

note_tip-wt

To completely disable an archive set its length to NULL (<Not set>).

note_further-wt

System administrators define length of archive in "human" time units, while number of Consolidated Data Points is calculated automatically. For example, if length of Minutely archive is set to 1 day, it will contain 1440 CDPs (i.e. 1440 Averages, 1440 Minimums, 1440 Maximums and 1440 Totals, having all that aggregation functions enabled).

Step

Granularity interval for the channel, see RRD Techology for details. The Step should not be changed in most cases.

note_warning-wt

Changing Step will reset channel statistics.

XFiles Factor

The XFiles Factor defines what part of a consolidation interval may be made up from "Unknown" Data Points while the consolidated value is still regarded as known. It is given as the ratio of allowed "Unknown" Primary Data Points to the number of PDPs in the interval. Thus, it ranges from 0 to 1 (exclusive).

note_warning-wt

Changing XFiles Factor will reset channel statistics.

The default value is 0.9, meaning that 90% of initial samples may be missing.

To ensure more reliable statistical values, decrease this value. The typical setting is 0.5.

Show In Status

Defines whether this channel's brief statistics should be shown in the status of container (i.e. device or tracker).