BrightcoveOS / Diamond

1.18k stars 384 forks source link

Unable to send solrColletor data to graphite #845

Closed brijesh27 closed 7 years ago

brijesh27 commented 8 years ago

m working on Diamond version 3.3.476. I am trying to send data to graphite for solr. As solrcollector is not bydefautlt not present so i have created the directory 'solr' under '/usr/share/diamond/collectors' and created the file solr.py from "https://github.com/piontas/Diamond/blob/c1fdcf3ec0b872056700d3a388674173099e7063/src/collectors/solr/solr.py " and then created a file SolrCollector.conf under '/etc/diamond/collectors' and restarted the diamond but still m unable to send the data to graphite.

i am getting below in diamond logs :

[2016-02-08 22:50:15,273] [Thread-1] http://localhost:8983//solr/admin/cores?action=STATUS&wt=json: HTTP Error 404: Not Found

brijesh27 commented 8 years ago

fixed the above error , now getting :

File "/usr/lib/python2.6/site-packages/diamond/collector.py", line 412, in _run self.collect() File "/usr/share/diamond/collectors/solr/solr.py", line 138, in collect standard = stats["QUERYHANDLER"]["standard"]["stats"] KeyError: 'standard'

Zurkdahool commented 8 years ago

changed in line 138 ["standard"] into ["/select"] seems to be working for me with Solr 6.2.1

kormoc commented 7 years ago

This repo has moved to https://github.com/python-diamond/Diamond

Please open a new ticket there if this issue is not resolved with the current code there.

Thanks!