Free Report! Gartner® Hype Cycle™ for Monitoring and Observability.Read more

Compute Metric Statistics

Description

The Compute Metric Statistics processor can be used to calculate statistics for metrics over fixed time intervals to reduce metric throughput.

Supported Types

MetricsLogsTraces

Configuration Table

ParameterTypeDefaultDescription
intervalint60The interval in seconds on which to aggregate metrics. Caclulated metrics will be emitted after the interval passes.
includeregex.*A regex that must match against the metric's name in order to calculate statistics from it. The default value matches all metrics.
stats[]string["min", "max", "avg"]A list of statistics to calculate on matched metrics. Valid values are: min, max, avg, first, and last.

Example Configuration

Calculate Average, Minimum, and Maximum

Calculate the average, minimum, and maximum values of each incoming metric, and emit them with a .avg, .min, and .max suffix, respectively.

Web Interface

observIQ docs - Metric Statistics - image 1

Standalone Processor

yaml
1apiVersion: bindplane.observiq.com/v1
2kind: Processor
3metadata:
4  id: calculate-avg-min-max
5  name: calculate-avg-min-max
6spec:
7  type: metric_stats
8  parameters:
9    - name: interval
10      value: 60
11    - name: include
12      value: '.*'
13    - name: stats
14      value: ['min', 'max', 'avg']

Take the Most Recent Value

Take the last value of a metric over a 60 second interval, and emit the metric with a suffix of .last.

Web Interface

observIQ docs - Metric Statistics - image 2

Standalone Processor

yaml
1apiVersion: bindplane.observiq.com/v1
2kind: Processor
3metadata:
4  id: calculate-last-value
5  name: calculate-last-value
6spec:
7  type: metric_stats
8  parameters:
9    - name: interval
10      value: 60
11    - name: include
12      value: '.*'
13    - name: stats
14      value: ['last']