[Stack Monitoring] Allow sub minute interval for CPU usage rule #136818
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Stack Monitoring
Team:Monitoring
Stack Monitoring team
v8.4.0
Summary
The cpu usage rule only supports minute as an interval unit and will convert any specified period to a minute. When dealing with a sub-minute interval this leads to a fraction and will break the execution with the following error:
x_content_parse_exception: [x_content_parse_exception] Reason: [1:852] [date_histogram] failed to parse field [fixed_interval], caused by: "failed to parse [0.9833333333333333m], fractional time values are not supported,For input string: "0.9833333333333333""
According to this comment it was a conscious decision but broke the seconds use case as a side effect.
We should investigate why converting the interval in ms with the date histogram aggregation doesn't work with this query and either fix the underlying issue or find an alternative that allows a sub-minute interval to be set.
AC
The text was updated successfully, but these errors were encountered: