Class SolrScraper
java.lang.Object
org.apache.solr.prometheus.scraper.SolrScraper
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
SolrCloudScraper,SolrStandaloneScraper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected final Stringprotected final ExecutorServiceprotected static final com.fasterxml.jackson.databind.ObjectMapperprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MetricSamplescollections(MetricsQuery metricsQuery) abstract Map<String, MetricSamples> metricsForAllHosts(MetricsQuery query) abstract Map<String, MetricSamples> pingAllCollections(MetricsQuery query) abstract Map<String, MetricSamples> pingAllCores(MetricsQuery query) protected MetricSamplesrequest(org.apache.solr.client.solrj.SolrClient client, MetricsQuery query) abstract MetricSamplessearch(MetricsQuery query) protected Map<String, MetricSamples> sendRequestsInParallel(Collection<String> items, Function<String, MetricSamples> samplesCallable)
-
Field Details
-
ZK_HOST_LABEL
- See Also:
-
BASE_URL_LABEL
- See Also:
-
CLUSTER_ID_LABEL
- See Also:
-
OBJECT_MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER -
clusterId
-
executor
-
-
Constructor Details
-
SolrScraper
-
-
Method Details
-
metricsForAllHosts
- Throws:
IOException
-
pingAllCores
- Throws:
IOException
-
pingAllCollections
- Throws:
IOException
-
search
- Throws:
IOException
-
collections
- Throws:
IOException
-
sendRequestsInParallel
protected Map<String,MetricSamples> sendRequestsInParallel(Collection<String> items, Function<String, MetricSamples> samplesCallable) throws IOException- Throws:
IOException
-
request
protected MetricSamples request(org.apache.solr.client.solrj.SolrClient client, MetricsQuery query) throws IOException - Throws:
IOException
-