HoustonPutman commented on a change in pull request #1972:
URL: https://github.com/apache/lucene-solr/pull/1972#discussion_r527814371
##########
File path:
solr/contrib/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrExporter.java
##########
@@ -68,7 +66,7 @@
private static final String[] ARG_CONFIG_FLAGS = {"-f", "--config-file"};
private static final String ARG_CONFIG_METAVAR = "CONFIG";
private static final String ARG_CONFIG_DEST = "configFile";
- private static final String ARG_CONFIG_DEFAULT = "solr-exporter-config.xml";
+ private static final String ARG_CONFIG_DEFAULT =
"conf/solr-exporter-config.xml";
Review comment:
So the reason I removed the `conf/` is because I was reading the file
off of the classpath. That way you can run `solr-exporter` from anywhere, not
just `contrib/prometheus-exporter`.
The reason it doesn't work anymore is that we aren't using the
SolrResourceLoader in this PR. I have a fix made that should allow for both the
default config to be read off of the classpath or other configs specified via a
file location. I can push it to this branch if you don't mind.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]