Hello, is anyone else running ES 5.2 had an issue after 4.2 upgrade?
After grafana upgrade all looks fine, until editing any chart query at which point the lucene query seems to break and the chart displays every single JSON key .
Have I had a failed upgrade or is this a genera issue?
Setting min_doc_count=0 will also return buckets for terms that didn’t match any hit. However, some of the returned terms which have a document count of zero might only belong to deleted documents or documents from other types, so there is no warranty that a match_all query would find a positive document count for those terms.
The problem with min_doc_count 1 is that it makes it impossible for Grafana to identify regions of missing data, there can be no gaps in the graphs in this case, so if you service goes down or stops sending data it’s going to be harder to see.
Buckets returned when min doc count is 0 are null, so should not have any impact (other than causing gaps in series where there is no data)
I see your point. It may be my particular case, where I do a query like this to get my NGINX data:
state.plugin_service_description:NGINX AND pfdta.metric_label:Active
Then do a terms group by on hosts to show all the hosts, then group by date histogram; it returns a load of hosts that are not NGINX servers with a zero doc count.
But tbh, its not much hassle to add a min_doc_count of 1.
Great product btw, streets ahead of Kibana for usability.
so create a group by, and in it set the set the ‘Min Doc Count’ to 1 is what is needed.
and I can verify this did work; BUT, you have to set the min doc count on all the group-by’s. Setting in only on one group-by removes the empty buckets from that group by.