Hi Team,
I have a timelion chart to compare the Latency of today and previous week, when the latency is too less (example 0.00068) values are not shown properly in labels
and the expression is as follows :
.es(index=aro_stats*,timefield='DateTime',metric=sum:PROCESS_TIME).divide(.es(index=aro_stats*,timefield='DateTime',metric=sum:RECORDS)).label('Today').yaxis(tickDecimals=6),.es(offset=-1w,index=aro_stats*,timefield='DateTime',metric=sum:PROCESS_TIME).divide(.es(index=aro_stats*,timefield='DateTime',metric=sum:RECORDS)).label('Week Ago').yaxis(tickDecimals=6),.es(index=aro_stats*,timefield='DateTime',metric=sum:PROCESS_TIME).divide(.es(index=aro_stats*,timefield='DateTime',metric=sum:RECORDS)).subtract(.es(offset=-1w,index=aro_stats*,timefield='DateTime',metric=sum:PROCESS_TIME).divide(.es(index=aro_stats*,timefield='DateTime',metric=sum:RECORDS))).label('Difference').lines(steps=1,fill=2,width=0)
Thanks in Advance
Ramya