Skip to content

Rate of increase for monotonic counter #60619

@wylieconlon

Description

@wylieconlon

Elasticsearch should provide a new metric aggregation for use only in date histograms, which is able to calculate the increase in a monotonic counter. Because the value of a counter is always increasing, it occasionally resets from the maximum value to 0. These resets should be handled automatically by the aggregation. This aggregation requires documents to be sorted in increasing time order.

This aggregation should throw an error if values aren't monotonically increasing. The most common reason for this will be multiple sources of documents, such as multiple servers with separate counters. The error message should indicate to the user to add another bucket aggregation such as terms of host.name.

The aggregation should also allow scaling to a time unit like the derivative pipeline aggregation.

Use cases for this already exist in most beats modules. For example, system.network.in.bytes is a counter-type field that will generally be converted into a "rate per second."

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions