Threshold filters based on numeric values are not working when they are not part of the expression or ds-name

Description

Let's suppose that we define a threshold like the following:

As you can see, the filter is based on a numeric field, in this case ns-dskTotal. Here is how those metrics are defined:

The expected result is that if the amount of digits on ns-dskTotal is less than 10, apply the threshold, but:

As you can see, the threshold processor can't find the value of ns-dskTotal, and the value is being collected properly.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Alejandro Galue November 27, 2013 at 4:46 PM
Edited

The following revisions contain some enhancements of the solution because several JUnit tests were failing.

  • 537d95254f9b1871e44b20e30a9de71a62207c8a

  • bd3e976840df0305fab3f42b83a42cc251422876

Alejandro Galue November 27, 2013 at 3:52 PM

Now it is working as expected:

Alejandro Galue November 27, 2013 at 3:50 PM

Fixed on revision d6f0ed509365622a61b90a02e1b82f31e7e53109 for 1.12

Alejandro Galue November 27, 2013 at 3:49 PM

The problem is related with the fact that when the threshold processor is being initialized, it consider only the numeric fields listed on ds-name or the expression formula, but it is not considering that they can be used on the threshold filters.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created November 27, 2013 at 3:47 PM
Updated January 27, 2017 at 4:21 PM
Resolved November 27, 2013 at 3:50 PM