sql_exporter icon indicating copy to clipboard operation
sql_exporter copied to clipboard

Incorrect value rounding when working with intervals.

Open kworr opened this issue 6 years ago • 0 comments

I tried to graph database process delays with:

select time_to_sec(timediff(now(), last_update)) as time_skew from some_table;

The code always works for me when executed from MySQL console, however when I try to query metrics I sometimes get:

time_skew 3.020399e+06

The value itself never exceeeds 1000.

kworr avatar Feb 20 '20 16:02 kworr