We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8917452 commit 7a7fed7Copy full SHA for 7a7fed7
jmx-scraper/src/main/java/io/opentelemetry/contrib/jmxscraper/config/JmxScraperConfigFactory.java
@@ -81,10 +81,6 @@ public JmxScraperConfig createConfig(Properties props) throws ConfigurationExcep
81
int interval = getProperty(INTERVAL_MILLISECONDS, 0);
82
config.intervalMilliseconds = (interval == 0 ? 10000 : interval);
83
getAndSetPropertyIfUndefined(EXPORTER_INTERVAL, config.intervalMilliseconds);
84
- if (config.intervalMilliseconds < 0) {
85
- throw new ConfigurationException(
86
- "interval must be positive, got " + config.intervalMilliseconds);
87
- }
88
89
config.metricsExporterType = getAndSetPropertyIfUndefined(METRICS_EXPORTER_TYPE, "logging");
90
config.otlpExporterEndpoint = properties.getProperty(OTLP_ENDPOINT);
0 commit comments