Merge branch 'master' of ssh://gerrit.onlab.us:29418/onos-next
diff --git a/utils/misc/src/main/java/org/onlab/metrics/MetricsManager.java b/utils/misc/src/main/java/org/onlab/metrics/MetricsManager.java
index e07d3f9..357791e 100644
--- a/utils/misc/src/main/java/org/onlab/metrics/MetricsManager.java
+++ b/utils/misc/src/main/java/org/onlab/metrics/MetricsManager.java
@@ -72,24 +72,23 @@
private final CsvReporter reporter;
public MetricsManager() {
- this.componentsRegistry = new ConcurrentHashMap<>();
this.metricsRegistry = new MetricRegistry();
-
this.reporter = CsvReporter.forRegistry(metricsRegistry)
.formatFor(Locale.US)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MICROSECONDS)
- .build(new File("/tmp/"));
-
- reporter.start(10, TimeUnit.SECONDS);
+ .build(new File("/var/onos/log/metrics/"));
}
@Activate
public void activate() {
+ this.componentsRegistry = new ConcurrentHashMap<>();
+ reporter.start(10, TimeUnit.SECONDS);
}
@Deactivate
public void deactivate() {
+ reporter.stop();
}
/**