Learn about the Wavefront Apache Solr Integration.

Apache Solr Integration

Apache Solr is a highly scalable and reliable search engine optimized to search large volumes of text-centric data.

This integration installs and configures Telegraf to send Apache Solr server metrics into Wavefront. Telegraf is a light-weight server process capable of collecting, processing, aggregating, and sending metrics to a Wavefront proxy.

In addition to setting up the metrics flow, this integration also installs a dashboard. Here’s a preview of some charts in the Apache Solr dashboard.

images/solr.png

To see a list of the metrics for this integration, select the integration from https://github.com/influxdata/telegraf/tree/master/plugins/inputs.

Apache Solr Setup

Step 1. Install the Telegraf Agent

This integration uses the Solr input plugin for Telegraf to extract metrics from Solr.

Log in to your Wavefront instance and follow the instructions in the Setup tab to install Telegraf and a Wavefront proxy in your environment. If a proxy is already running in your environment, you can select that proxy and the Telegraf install command connects with that proxy. Sign up for a free trial to check it out!

Step 2. Enable the Solr input plugin

Create a file called solr.conf in /etc/telegraf/telegraf.d and enter the following snippet:

   [[inputs.solr]]
     ## specify a list of one or more Solr servers
     servers = ["http://localhost:8983"]
     ##
     ## specify a list of one or more Solr cores (default - all)
     # cores = ["main"]

Step 3. Restart Telegraf

Run sudo service telegraf restart to restart your Telegraf agent.

Metrics

Metric Name Description
solr.admin.deleted.docs  
solr.admin.max.docs  
solr.admin.num.docs  
solr.admin.size.in.bytes  
solr.cache.cumulative.evictions  
solr.cache.cumulative.hitratio  
solr.cache.cumulative.hits  
solr.cache.cumulative.inserts  
solr.cache.cumulative.lookups  
solr.cache.evictions  
solr.cache.hitratio  
solr.cache.hits  
solr.cache.inserts  
solr.cache.lookups  
solr.cache.size  
solr.cache.warmup.time  
solr.core.deleted.docs  
solr.core.max.docs  
solr.core.num.docs  
solr.queryhandler.requests  
solr.queryhandler.timeouts  
solr.queryhandler.errors  
solr.queryhandler.avg.requests.per.second  
solr.queryhandler.avg.time.per.request  
solr.queryhandler.total.time  
solr.queryhandler.75th.pc.request.time  
solr.queryhandler.95th.pc.request.time  
solr.queryhandler.99th.pc.request.time  
solr.updatehandler.docs.pending  
solr.updatehandler.errors