I believe I've found an error in this template.
There are four almost identical calculated item prototypes (called 'ES {#ES.NODE}: Flush latency', 'ES {#ES.NODE}: Indexing latency', 'ES {#ES.NODE}: Fetch latency', 'ES {#ES.NODE}: Query latency')
Their values are something like:
So, it takes change of total flush time, and divide by change of total flushes count (adding 1 if it iz zero). Which is probably not what expected :-)
And here is what they should be:
(don't sure if I got new syntax right, I have zabbix 5.0 here)
So, with new expression it should be as expected: total time divided by total amount (adding 1 if amount is 0).
There are four almost identical calculated item prototypes (called 'ES {#ES.NODE}: Flush latency', 'ES {#ES.NODE}: Indexing latency', 'ES {#ES.NODE}: Fetch latency', 'ES {#ES.NODE}: Query latency')
Their values are something like:
Code:
change(//es.node.indices.flush.total_time_in_millis[{#ES.NODE}]) / ( change(//es.node.indices.flush.total[{#ES.NODE}]) + (change(//es.node.indices.flush.total[{#ES.NODE}]) = 0) )
And here is what they should be:
Code:
last(//es.node.indices.flush.total_time_in_millis[{#ES.NODE}]) / ( last(//es.node.indices.flush.total[{#ES.NODE}]) + count(//es.node.indices.flush.total[{#ES.NODE}],#1,0) )
So, with new expression it should be as expected: total time divided by total amount (adding 1 if amount is 0).

Comment