stat-count
Input Stack: |
⇨ | Output Stack:
|
Filter helper that represents the count statistic of the input time series. This is a
placeholder that gets automatically replaced with count,:stat
when used with :filter.
It allows filtering based on the number of non-NaN datapoints in each time series without having
to duplicate the input expression.
Examples¶
Filtering series by data completeness:
Before | After |
name,sps,:eq, (,nf.cluster,),:by | name,sps,:eq, (,nf.cluster,),:by, :stat-count, 50,:gt, :filter |
This filters to show only time series that have more than 50 valid datapoints.
Related Operations¶
- :stat - Base statistics operation (stat-count represents
count,:stat
) - :filter - Filtering operation that uses stat helpers
- :stat-avg - Filter by average values
- :stat-total - Filter by sum of all values