0586504e01784b054944ca12f816880e27dfc2e7 |
|
15-Dec-2015 |
Bertrand SIMONNET <bsimonnet@google.com> |
metricsd: Persist the metrics to disk periodically. Every now and then (5 minutes by default), the uploader will persist the current metrics to disk to avoid losing them in case we exit unexpectedly (reboot or crash). When starting up, metricsd will load the previously saved log and resume the metrics collection from there. Bug: 25670584 Test: Unit tests. Test: manual: restart metricsd. The saved log is detected and parsed correctly. Test: manual: Send a sample to metricsd, send SIGTERM to metricsd, the log is saved to disk, metricsd restarts and picks up the log where it left. Change-Id: I4cefc62c7ea1fa51333d84d8a7ba0a2e9c7fd58f
/system/core/metricsd/metricsd_main.cc
|
b6c77af4993b5e5a83fd1ed80309823e44f70650 |
|
09-Dec-2015 |
Bertrand SIMONNET <bsimonnet@google.com> |
metricsd: Cleanup on TERM signal. metricsd should shutdown cleanly when receiving a TERM signal: * stop the binder watcher. * wait for the thread to quit. * Exit cleanly. Note: This is not directly used as we don't send SIGTERM on shutdown or when stopping services yet. Bug: 25670584 Change-Id: I878d1e67474c72d24790f3540470e37a23112a95
/system/core/metricsd/metricsd_main.cc
|
6b8629a6490d01196368ae1ed5bc6967c6f127eb |
|
18-Nov-2015 |
Bertrand SIMONNET <bsimonnet@google.com> |
metricsd: Log over binder. This CL converts metricsd, libmetrics and metrics_collector to use Binder to pass metrics samples. Bug: 25670685 Change-Id: I657faecdf4ed1226ab30ce69e062028463437e7b
/system/core/metricsd/metricsd_main.cc
|
9d3a4aeae2bd59ebe72fca44c4fa508c1e9f1333 |
|
25-Nov-2015 |
Bertrand SIMONNET <bsimonnet@google.com> |
metricsd: Use different directories for each daemon. Instead of using a single directory for both the internal data of metricsd and metrics_collector and the shared files (metrics samples log file and the metrics enabled file), we should use separate directory to allow for a finer access control. The new structure will be: * /data/misc/metrics for the files accessible to all daemons reporting metrics, metricsd and metrics_collector. * /data/misc/metricsd for the private files of metricsd. * /data/misc/metrics_collector for the private files of metrics_collector. Bug: 25886951 Test: Unit tests. Test: Manual: metricsd and metrics_collector run without errors. Change-Id: I006d19f45f5f419d2b08744126c2e2a0b899c9fa
/system/core/metricsd/metricsd_main.cc
|
608e428006fa317badd51b941e05bdba42bd08bd |
|
13-Nov-2015 |
Bertrand SIMONNET <bsimonnet@google.com> |
metricsd: Split into two daemons. This CL splits metrics_daemon into two independent daemons: metricsd and metrics_collector. * metricsd will be responsible for reading the metrics from disk and periodically uploading them to the server. * metrics_collector will be responsible for gathering generic metrics from the system and managing the weave state for metrics. This refactoring is necessary to prepare the migration of metricsd to log over binder. Bug: 25670908 Test: Unit tests. Test: manual: both daemons run. Metrics are logged, uploaded and the weave interaction works. Change-Id: Ib00e1772bb7eec87cbcdcd912c30b555d79d7074
/system/core/metricsd/metricsd_main.cc
|