Flow aggregation - alternate indices based on duration of time range filter

Description

In order to leverage pre-aggregated metrics we would like update the search queries in the ElasticFlowRepository to use alternate indices based on the duration of the time range filter.

To do this let's define new properties called timeRangeAggregateThresholdMs (defaults to 0) and aggregateIndexPrefix (defaults to 'aggregated-flows'). When timeRangeAggregateThresholdMs is set to a value greater than 0 and the duration of the timestamp in the given query exceeds this value then we should use aggregateIndexPrefix as the index prefix instead of indexPrefix.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Chandra Gorantla May 4, 2020 at 3:41 PM

This is taken care as part of https://github.com/OpenNMS/opennms/pull/2993

Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Priority

PagerDuty

Created April 13, 2020 at 7:16 PM
Updated May 5, 2020 at 4:03 PM
Resolved May 4, 2020 at 3:41 PM