【问题标题】:Grafana won't display Solr metricsGrafana 不会显示 Solr 指标
【发布时间】:2018-12-10 03:49:34
【问题描述】:

我已安装 Grafana 并将其配置为显示来自我的 Solr 服务器指标的数据。但是,无法显示任何数据。我不断从控制台收到此消息:

msg="追加抓取报告失败" err="越界

"Screenshot from the console

我将如何解决这个问题并让 Grafana 显示来自 Solr 的指标? 谢谢

【问题讨论】:

    标签: solr grafana prometheus


    【解决方案1】:

    我的配置,它可以工作....

    进入 prometheus.yml

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

    进入 SOLR_HOME/contrib/prometheus-exporter

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

    然后进入prometheus home(同prometheus.yml)

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

    重启grafana服务

    systemctl restart grafana-server
    

    连接到grafana(默认3000端口) 创建数据源prometheus

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

    Into Dashboard --> 管理导入 solr 的 json 文件 模板位置为SOLR_HOME/contrib/prometheus-exporter/conf/grafana-solr-dashboard.json

    注意:使用 DNS 名称而不是 localhost

    【讨论】:

    • 感谢昆特。直到现在我一直忙于工作,无法解决这个问题。我将尝试您的解决方案并通知您。谢谢
    猜你喜欢
    • 2019-09-20
    • 2018-09-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-05
    相关资源
    最近更新 更多