Class SolrStandaloneScraper
- java.lang.Object
-
- org.apache.solr.prometheus.scraper.SolrScraper
-
- org.apache.solr.prometheus.scraper.SolrStandaloneScraper
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SolrStandaloneScraper extends SolrScraper
-
-
Field Summary
-
Fields inherited from class org.apache.solr.prometheus.scraper.SolrScraper
BASE_URL_LABEL, CLUSTER_ID_LABEL, clusterId, executor, OBJECT_MAPPER, ZK_HOST_LABEL
-
-
Constructor Summary
Constructors Constructor Description SolrStandaloneScraper(org.apache.solr.client.solrj.impl.Http2SolrClient solrClient, ExecutorService executor, String clusterId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
MetricSamples
collections(MetricsQuery metricsQuery)
Map<String,MetricSamples>
metricsForAllHosts(MetricsQuery query)
Map<String,MetricSamples>
pingAllCollections(MetricsQuery query)
Map<String,MetricSamples>
pingAllCores(MetricsQuery query)
MetricSamples
search(MetricsQuery query)
-
Methods inherited from class org.apache.solr.prometheus.scraper.SolrScraper
request, sendRequestsInParallel
-
-
-
-
Constructor Detail
-
SolrStandaloneScraper
public SolrStandaloneScraper(org.apache.solr.client.solrj.impl.Http2SolrClient solrClient, ExecutorService executor, String clusterId)
-
-
Method Detail
-
pingAllCores
public Map<String,MetricSamples> pingAllCores(MetricsQuery query) throws IOException
- Specified by:
pingAllCores
in classSolrScraper
- Throws:
IOException
-
pingAllCollections
public Map<String,MetricSamples> pingAllCollections(MetricsQuery query) throws IOException
- Specified by:
pingAllCollections
in classSolrScraper
- Throws:
IOException
-
metricsForAllHosts
public Map<String,MetricSamples> metricsForAllHosts(MetricsQuery query) throws IOException
- Specified by:
metricsForAllHosts
in classSolrScraper
- Throws:
IOException
-
search
public MetricSamples search(MetricsQuery query) throws IOException
- Specified by:
search
in classSolrScraper
- Throws:
IOException
-
collections
public MetricSamples collections(MetricsQuery metricsQuery)
- Specified by:
collections
in classSolrScraper
-
close
public void close()
-
-