Explitely run JmxFetch app as a daemon
This commit is contained in:
parent
2afc6069a8
commit
2027027e46
|
@ -4,7 +4,7 @@ plugins {
|
|||
apply from: "${rootDir}/gradle/java.gradle"
|
||||
|
||||
dependencies {
|
||||
compile('com.datadoghq:jmxfetch:0.29.0'){
|
||||
compile('com.datadoghq:jmxfetch:0.30.0--------------yet-to-be-released'){
|
||||
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
|
||||
exclude group: 'log4j', module: 'log4j'
|
||||
}
|
||||
|
|
|
@ -74,6 +74,8 @@ public class JMXFetch {
|
|||
final AppConfig.AppConfigBuilder configBuilder =
|
||||
AppConfig.builder()
|
||||
.action(ImmutableList.of(ACTION_COLLECT))
|
||||
// App should be run as daemon otherwise CLI apps would not exit once main method exits.
|
||||
.daemon(true)
|
||||
.confdDirectory(jmxFetchConfigDir)
|
||||
.yamlFileList(jmxFetchConfigs)
|
||||
.targetDirectInstances(true)
|
||||
|
|
Loading…
Reference in New Issue