Grafana中如何用Prometheus数据源监控elasticsearch

How to monitor elasticsearch with Prometheus data source in Grafana

我是 Prometheus 和 Grafana 的初学者。

我在 Grafana 中创建了新的仪表板,以使用 Prometheus 和 Grafana 监控服务器的基本指标。 同样需要监控服务器中的elasticsearch。

我已按照以下步骤操作:

我不确定下面的方法是否正确。

我已经为 node_exporter 过程尝试了以下格式,结果成功了。那是你为 elasticsearch 导出器尝试了以下内容

在 Elastic 搜索服务器中(将被监控)

wget https://github.com/justwatchcom/elasticsearch_exporter/releases/download/v1.0.2rc1/elasticsearch_exporter-1.0.2rc1.darwin-386.tar.gz
tar -xf elasticsearch_exporter-1.0.2rc1.darwin-386.tar.gz 
cd elasticsearch_exporter-1.0.2rc1.darwin-386
 ./elasticsearch_exporter 

在执行最后一步时出现以下错误。

-bash: ./elasticsearch_exporter: cannot execute binary file

一旦完成,我如何在 Grafana 中获取 elasticsearch 的仪表板

-bash: ./elasticsearch_exporter: cannot execute binary file

通常导致此错误的原因是运行错误架构上的可执行文件。

仔细检查您下载的 Elasticsearch 二进制文件。您需要为您的机器下载适当的二进制文件。