elasticsearch-prometheus-exporter icon indicating copy to clipboard operation
elasticsearch-prometheus-exporter copied to clipboard

slow reporting of metrics and the report file is very large.

Open WayneLeiCode opened this issue 4 years ago • 1 comments

[root@elk-01]# time curl localhost:9200/_prometheus/metrics > /dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 138M 100 138M 0 0 11.7M 0 0:00:11 0:00:11 --:--:-- 36.3M real 0m10.530s user 0m0.040s sys 0m0.313s [root@elk-01]# curl localhost:9200/_prometheus/metrics > /tmp/es-monitor.txt [root@elk-01]# du -sh /tmp/es-monitor.txt 139M /tmp/es-monitor.txt

WayneLeiCode avatar May 01 '20 16:05 WayneLeiCode

This can happen if you have a lot of indices (hundreds?). Can you check how many indices there are in your cluster? You can disable detailed metrics per index by setting prometheus.indices: false.

lukas-vlcek avatar Jul 14 '20 15:07 lukas-vlcek