-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Solr 3 plugin or compatibility #3681
Comments
FYI, I have a working plugin, based on the current solr plugin (#2019). I named it I'd like to know whether or not it's preferred to merge into the existing solr plugin and have multiple parsing paths based on a "version" config param or to keep it separate. |
One piece of incompatibility is in the
The
Additionally, there are some queryhandler values that have |
I would like to have any changes done to the existing plugin, so long as it is not too large of a change. I think the examples you gave here would be okay to fix, but make sure to create a unittest with a comment about it being for solr3 support. If you can show me an example of the array vs object that would be helpful. |
The general structure of a response looks like this:
Under the
That same structure in Solr 3 looks as follows (see the "stats" attribute):
Note: This only occurs when the queryhandler's class equals "org.apache.solr.handler.dataimport.DataImportHandler". For all other queryhandlers, Solr 3 does return an object instead of an array. For some reason, it only uses an array for the data import handler. Very odd. |
I think this should be okay to introduce to the existing plugin, we can probably just unmarshal into a interface{} and then switch on handling. |
Ok. I can definitely do that. I was just looking for some discussion on it. thank you |
Feature Request
Proposal:
Add Solr 3 compatibility.
Current behavior:
The current Solr plugin introduced in telegraf 1.5, supports and was tested with Solr 4.3, 5.5.5, 6.6
Desired behavior:
Support older legacy Solr instances, such as 3.6.
Use case: [Why is this important (helps with prioritizing requests)]
Some organizations still have old, legacy installations of Solr that they'd like to monitor.
Additional info:
PR: #2019
Issue: #278
The text was updated successfully, but these errors were encountered: