我是 Prometheus 和 Grafana 的初学者。
我在 Grafana 中创建了新的仪表板,以使用 Prometheus 和 Grafana 监控服务器的基本指标。 以同样的方式需要监控服务器中的 Elasticsearch 。
我已按照以下步骤操作:
我不确定下面的方法是否正确。
我已经为 node_exporter 进程尝试了以下格式,结果成功了。那是你为 elasticsearch 导出器尝试了以下内容
在 Elasticsearch 服务器中(将被监控)
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 二进制文件。您需要为您的机器下载适当的二进制文件。
关于elasticsearch - Grafana中如何用Prometheus数据源监控elasticsearch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46659778/