SAMZA-1161: Adding metrics into LocalStoreMonitor.
authorShanthoosh Venkataraman <svenkataraman@linkedin.com>
Wed, 29 Mar 2017 21:07:34 +0000 (14:07 -0700)
committerJacob Maes <jmaes@linkedin.com>
Wed, 29 Mar 2017 21:07:34 +0000 (14:07 -0700)
commita989c08b1e4d460eca482452821cb09a57f1805c
treebeb165e17c118844c21037ba36300e4b0c3e8ff6
parentdaed7a9a31f30dd5d993407b33b5dd30f4ef7dda
SAMZA-1161: Adding metrics into LocalStoreMonitor.

Rocksdb LocalStoreMonitor is responsible for clearing up unused local task partition stores. Metrics are required to understand the behavior of this monitor in production(especially when it's clearing up unused rocksdb local stores).

The following two metrics will be emitted from this monitor:
a) Total disk space cleared in bytes.
b) Total number of rocksdb task partition stores cleared.

Author: Shanthoosh Venkataraman <svenkataraman@linkedin.com>

Reviewers: Jacob Maes <jmaes@linkedin.com>

Closes #95 from shanthoosh/metrics_into_local_store_monitor
samza-rest/src/main/java/org/apache/samza/monitor/LocalStoreMonitor.java
samza-rest/src/main/java/org/apache/samza/monitor/LocalStoreMonitorConfig.java
samza-rest/src/main/java/org/apache/samza/monitor/LocalStoreMonitorFactory.java
samza-rest/src/main/java/org/apache/samza/monitor/LocalStoreMonitorMetrics.java [new file with mode: 0644]
samza-rest/src/test/java/org/apache/samza/monitor/TestLocalStoreMonitor.java