一、Prometheus内存消耗很大,大约10G

发现Prometheus每次拉取Elasticsearch Exporter指标,耗费时间很多,大约5秒,采集其他服务的exporter指标才几十毫秒。

通过请求http es exporter metrcis,发现接口返回的内容很多…再继续观察,发现该Elasticsearch集群索引数量竟高达3100多,大概问题的根源找到了,就是由于集群索引数量太多,导致Prometheus采集的指标几倍的增长。