Hi Steven, AFAIK, SolrJ doesn't have built in request objects for the metrics API. But you can still use the "GenericSolrRequest" class to hit any Solr API:
e.g. SolrParams params = new ModifiableSolrParams(); params.set("action", "list"); GenericSolrRequest request = new GenericSolrRequest(SolrRequest.METHOD.GET, "/admin/metrics/history", params); final SimpleSolrResponse response = request.process(solrClient); Hope that helps, Jason On Fri, Jan 22, 2021 at 11:21 AM Gael Jourdan-Weil <gael.jourdan-w...@kelkoogroup.com> wrote: > > Hello Steven, > > I believe what you are looking for cannot be accessed using SolrJ (I didn't > really check though). > > But you can easily access it either via the Collections APIs and/or the > Metrics API depending on what you need exactly. > See https://lucene.apache.org/solr/guide/8_4/cluster-node-management.html and > https://lucene.apache.org/solr/guide/8_4/metrics-reporting.html > > Gaël > > > De : Steven White <swhite4...@gmail.com> > Envoyé : vendredi 22 janvier 2021 16:46 > À : solr-user@lucene.apache.org <solr-user@lucene.apache.org> > Objet : Getting Solr's statistic using SolrJ > > Hi everyone, > > Is there a SolrJ API that I can use to collect statistics data about Solr > (everything that I see on the dashboard if possible)? > > I am in need to collect data about Solr instances, those same data that I > see on the dashboard such as swap-memory, jvm-memory, list of cores, info > about each core, etc. etc. using SolrJ API. > > Thanks > > Steven