Re: Metrics API via Solrj

2018-10-03 Thread deniz
Thanks a lot Jason and Shawn, it is quite smooth although there is no built in stuff like collection or schema request objects for metrics :) - Zeki ama calismiyor... Calissa yapar... -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Metrics API via Solrj

2018-10-03 Thread Shawn Heisey
On 10/3/2018 6:17 AM, Jason Gerlowski wrote: NamedList respNL = response.getResponse(); NamedList metrics = (NamedList)respNL.get("metrics"); NamedList jvmMetrics = (NamedList) metrics.get("solr.jvm"); Long numClassesLoaded = (Long) jvmMetrics.get("classes.load

Re: Metrics API via Solrj

2018-10-03 Thread Jason Gerlowski
Hi Deniz, I don't think there are any classes that simplify accessing the metrics API like there are for other APIs (e.g. CollectionAdminRequest, CoreAdminRequest, ..). But sending metrics requests in SolrJ is still possible; it's just a little bit more complicated. Anytime you want to make an A

Metrics API via Solrj

2018-10-03 Thread deniz
Are there anyway to get the metrics via solrj ? all of the examples seem like using plain curl or http reqs with json response. I have found org.apache.solr.client.solrj.io.stream.metrics package, but couldnt figure out how to send the requests via solrj... could anyone help me to figure out how