elasticsearch-prometheus-exporter
elasticsearch-prometheus-exporter copied to clipboard
slow reporting of metrics and the report file is very large.
[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
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
.