-
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
[inputs.solr] Changed response format in Solr7 leaves plugin returning 0 for most values #3665
Comments
Solr 7 was released after the telegraf plugin was created :( |
We need to investigate all the details to decide, but I imagine we can do this in the same plugin. Ideally we can just handle both cases without a |
I've been looking through the solr docs as well as looking through the API request/responses, including http headers. I cannot find anything to give a good indication of server version in order to allow detection of the server version. Here are the approaches I currently see (and maybe you see something I don't), but only two that appear to be feasible:
Thoughts? |
It depends on how different the versions end up being. I think we start with 3, and fallback to 2 if we see something that is radically different and can't coexist. |
Yeah, that makes sense. I was kinda thinking the same thing, but I wanted to have the discussion first. My definition of radically different might be different than other people. ;) |
@mkboudreau Still unsure if it is available by default and how it differs on different Solr versions |
Closed by #4271 |
Bug report
Relevant telegraf.conf:
System info:
Telegraf: 1.5.1
Solr: 7.1 and Solr 7.2
Steps to reproduce:
inputs.solr
telegraf -config telegraf.conf -input-filter solr -test
Expected behavior:
Reasonable values are retrieved
Actual behavior:
Most values are simply 0
Additional info:
See https://gist.github.com/KingCrunch/37187347ddfb2ac4267cb3166c8b2680
This are outputs from
/solr/a_core/admin/mbeans?...
from one Solr 6.6 and one Solr 7.2. That are two different instances, so don't expect, that both has the same values.I had to remove some values.
The text was updated successfully, but these errors were encountered: