When using Timelion visualizations there are major performance issues. Most of the time giving no response or having very long response time (see Images). The sampling interval is set to auto and the max bucket count is 2000. Kibana Version is 6.7.2.
The query looks like this:
.es(timefield=customtimestamp, metric=max:value).derivative().if(gt, 100, 100).if(lt, 0,
0).subtract(.es(timefield=customtimestamp, q='value2:key', metric=count:value).if(gt, 100, 100).if(lt,
0, 0)).label('name').bars(stack=true),
.es(timefield=customtimestamp, q='value2:key', metric=count:value).if(gt, 100, 100).if(lt, 0,
0).label('name').bars(stack=true),
.es(timefield=customtimestamp, q='value2:key', metric=count:value).if(gt, 100, 100).if(lt, 0,
0).label('name').lines(stack=false)
What could be done to improve performance / respone time without beefing up the hardware?