Grafana won't display Solr metrics

柔情痞子 提交于 2019-12-11 18:48:41

问题


I have installed Grafana and configured it to display data from my Solr servers' metrics. However, no data can be displayed. I keep getting this message from the console:

msg="appending scrape report failed" err="out of bounds

"Screenshot from the console

How would I solve this problem and get Grafana to display the metrics from Solr? Thanks


回答1:


My configuration, it works....

into prometheus.yml

scrape_configs:
  - job_name: 'prometheus'
  static_configs:
    - targets: ['localhost:9090']

Into SOLR_HOME/contrib/prometheus-exporter

bin/solr-exporter -p 9090 -b http://Ip-solr:8983/solr -f ./conf/solr-exporter-config.xml

Then into prometheus home (same prometheus.yml)

./prometheus --log.level=debug --web.listen-address="localhost:9854"

Restart grafana service

systemctl restart grafana-server

Connect to grafana (port 3000 by default) Create datasource prometheus

Name:  Prometheus (default: Yes)
URL: http://yourservername:9854
Access: Server
Save & Test

Into Dashboard --> manage import the json file for solr The template location is SOLR_HOME/contrib/prometheus-exporter/conf/grafana-solr-dashboard.json

Note : Use DNS name instead of localhost



来源:https://stackoverflow.com/questions/53699248/grafana-wont-display-solr-metrics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!