Solr
The Solr source collects metrics from Apache Solr over JMX and reads Solr log files. Metrics are scraped from a JMX/RMI endpoint exposed by the Solr JVM, and logs are tailed from the Solr log files on disk.
Supported Telemetry
Linux
✓
✓
Windows
✓
✓
macOS
✓
✓
Prerequisites
Metrics
Metrics are collected over JMX, so the Solr JVM must have remote JMX enabled and reachable from the collector host.
Enable remote JMX on Solr by setting
ENABLE_REMOTE_JMX_OPTS=true(and choosing anRMI_PORT, for example18983) insolr.in.sh(Linux/macOS) orsolr.in.cmd(Windows), then restart Solr. See the official JMX with Solr guide.The collector host must have network reachability to the configured JMX/RMI port.
The collector requires the OpenTelemetry Java JMX metrics JAR (
opentelemetry-java-contrib-jmx-metrics.jar) present at the configured path. Bindplane collector installs ship this JAR at the default location.
Logs
Solr must be writing its log files, and the collector must run where it can read those paths (or have them shipped to it).
The default log path is
/var/solr/logs/solr.log. Adjust the File Path(s) parameter if your deployment writes logs elsewhere.
Configuration

General
Choose Telemetry Type
Enum: Logs, Metrics
No
["Logs", "Metrics"]
Telemetry Type. Selects which signals to collect; the Logs and Metrics parameters below are relevant only when the matching type is selected.
Logs
File Path(s)
Strings
No
/var/solr/logs/solr.log
File or directory paths to tail for logs.
Metrics
Address
String
No
localhost
IP address or hostname to scrape for Solr metrics.
Port
Integer
No
9012
Port to scrape for Solr metrics.
Advanced
Start At
Enum: beginning, end
No
end
Start reading logs from 'beginning' or 'end'. Relevant when Logs is selected.
Parse
Boolean
No
true
Parses the log fields into structured data. Relevant when Logs is selected.
JMX Metrics Collection Jar Path
String
No
/opt/opentelemetry-java-contrib-jmx-metrics.jar
Full path to the JMX metrics jar. Relevant when Metrics is selected.
Collection Interval
Integer
No
60
How often (seconds) to scrape for metrics. Relevant when Metrics is selected.
Examples
Collect metrics over JMX from a remote Solr host
Scrape Solr JMX metrics from a Solr instance reachable at solr.internal:18983, collecting every 30 seconds and disabling log collection.
Configuration Tips
The Port parameter must match the
RMI_PORTyou set when enabling remote JMX on Solr (the default in this source is9012, but Solr's example port is18983). Confirm the two agree.Keep the JMX Metrics Collection Jar Path pointing at the JAR shipped with the collector unless you have relocated it.
Leave Parse enabled to get structured Solr log fields; disable it only if you intend to parse the raw log line downstream.
Troubleshooting
Symptom: No metrics appear. Solution: Confirm remote JMX is enabled on Solr (ENABLE_REMOTE_JMX_OPTS=true) and that Solr was restarted, the configured Port matches Solr's RMI port, and the collector host can reach that port.
Symptom: Connection refused on the JMX port. Solution: Verify the Address and Port are correct and reachable from the collector host, and that no firewall is blocking the JMX/RMI port. Remote JMX binds only when ENABLE_REMOTE_JMX_OPTS=true.
Symptom: No logs are collected. Solution: Verify the File Path(s) match where Solr writes logs (default /var/solr/logs/solr.log) and that the collector user has read permission on those files.
Standalone Source
Related Resources
Last updated
Was this helpful?