loudml icon indicating copy to clipboard operation
loudml copied to clipboard

Duplicate anomaly entries in InfluxDB?

Open simplelife2010 opened this issue 5 years ago • 2 comments

Hi,

I am running several anomaly detection jobs. When I look into InfluxDB, it seems that when is_anomaly changes status, two records are created for that timestamp. See records 2 and 3 below.

Is that behaviour expected?

time                model                                  model_name mean_failure_mode_1 score is_anomaly anomaly_status
----                -----                                  ---------- ------------------- ----- ---------- --------------
1580403600000000000 aim-node-46723882__ch2__failure_mode_1            0.3775120148114921  100   True       1
1580407200000000000 aim-node-46723882__ch2__failure_mode_1            0.38008717751257814 100   False      0
1580407200000000000 aim-node-46723882__ch2__failure_mode_1            0.38008717751257814 100   True       1
1580410800000000000 aim-node-46723882__ch2__failure_mode_1            0.3795956704750215  0     False      0
1580414400000000000 aim-node-46723882__ch2__failure_mode_1            0.37737991024554374 0     False      0
1580418000000000000 aim-node-46723882__ch2__failure_mode_1            0.37274638874854527 0     False      0
1580421600000000000 aim-node-46723882__ch2__failure_mode_1            0.3605105217292659  0     False      0

simplelife2010 avatar Jan 31 '20 10:01 simplelife2010

Please let me know if I can assist with debugging.

simplelife2010 avatar Feb 21 '20 12:02 simplelife2010

Strange. The model-name should be a tag. In fact, every data point written to the TSDB should be tagged with the model-name and this should avoid duplication.

regel avatar Mar 06 '20 06:03 regel