Class SolrExporter
- java.lang.Object
-
- org.apache.solr.prometheus.exporter.SolrExporter
-
public class SolrExporter extends Object
SolrExporter
-
-
Field Summary
Fields Modifier and Type Field Description static io.prometheus.client.Counter
scrapeErrorTotal
-
Constructor Summary
Constructors Constructor Description SolrExporter(int port, String connStr, Path configPath, int numThreads)
Constructor.SolrExporter(int port, SolrClient solrClient, Path configPath, int numThreads)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Entry point of SolrExporter.void
start()
Start HTTP server for exporting Solr metrics.void
stop()
Stop HTTP server for exporting Solr metrics.
-
-
-
Constructor Detail
-
SolrExporter
public SolrExporter(int port, String connStr, Path configPath, int numThreads) throws ParserConfigurationException, SAXException, IOException
Constructor.
-
SolrExporter
public SolrExporter(int port, SolrClient solrClient, Path configPath, int numThreads) throws ParserConfigurationException, SAXException, IOException
Constructor.
-
-
Method Detail
-
start
public void start() throws IOException
Start HTTP server for exporting Solr metrics.- Throws:
IOException
-
stop
public void stop()
Stop HTTP server for exporting Solr metrics.
-
main
public static void main(String[] args)
Entry point of SolrExporter.
-
-