public class SolrCollector
extends io.prometheus.client.Collector
implements io.prometheus.client.Collector.Describable
| Constructor and Description |
|---|
SolrCollector(SolrClient solrClient,
Config config,
int numThreads)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<io.prometheus.client.Collector.MetricFamilySamples> |
collect()
Collect samples.
|
List<io.prometheus.client.Collector.MetricFamilySamples> |
describe()
Describe scrape status.
|
static List<String> |
getCollections(CloudSolrClient cloudSolrClient)
Get target cores via CollectionsAPI.
|
static List<String> |
getCores(HttpSolrClient httpSolrClient)
Get target cores via CoreAdminAPI.
|
public SolrCollector(SolrClient solrClient, Config config, int numThreads)
public List<io.prometheus.client.Collector.MetricFamilySamples> describe()
describe in interface io.prometheus.client.Collector.Describablepublic List<io.prometheus.client.Collector.MetricFamilySamples> collect()
collect in class io.prometheus.client.Collectorpublic static List<String> getCores(HttpSolrClient httpSolrClient) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static List<String> getCollections(CloudSolrClient cloudSolrClient) throws SolrServerException, IOException
SolrServerExceptionIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.