Class SolrCloudScraper
- java.lang.Object
-
- org.apache.solr.prometheus.scraper.SolrScraper
-
- org.apache.solr.prometheus.scraper.SolrCloudScraper
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SolrCloudScraper 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 SolrCloudScraper(org.apache.solr.client.solrj.impl.CloudSolrClient solrClient, ExecutorService executor, SolrClientFactory solrClientFactory, 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
-
SolrCloudScraper
public SolrCloudScraper(org.apache.solr.client.solrj.impl.CloudSolrClient solrClient, ExecutorService executor, SolrClientFactory solrClientFactory, 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) throws IOException
- Specified by:
collections
in classSolrScraper
- Throws:
IOException
-
close
public void close()
-
-