Skip to content

Commit

Permalink
remove useless config check
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainJuge committed Sep 25, 2024
1 parent 8917452 commit 7a7fed7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ public JmxScraperConfig createConfig(Properties props) throws ConfigurationExcep
int interval = getProperty(INTERVAL_MILLISECONDS, 0);
config.intervalMilliseconds = (interval == 0 ? 10000 : interval);
getAndSetPropertyIfUndefined(EXPORTER_INTERVAL, config.intervalMilliseconds);
if (config.intervalMilliseconds < 0) {
throw new ConfigurationException(
"interval must be positive, got " + config.intervalMilliseconds);
}

config.metricsExporterType = getAndSetPropertyIfUndefined(METRICS_EXPORTER_TYPE, "logging");
config.otlpExporterEndpoint = properties.getProperty(OTLP_ENDPOINT);
Expand Down

0 comments on commit 7a7fed7

Please sign in to comment.