diff options
author | Bertrand SIMONNET <bsimonnet@google.com> | 2015-11-12 17:52:17 -0800 |
---|---|---|
committer | Bertrand SIMONNET <bsimonnet@google.com> | 2015-11-18 09:54:16 -0800 |
commit | 608e428006fa317badd51b941e05bdba42bd08bd (patch) | |
tree | ba41cc26ffa85b0d598aa598f801927ade0e7131 /metricsd/metricsd.rc | |
parent | 39a1b773817aafc98e20910d2dd6dd790ea08bf3 (diff) | |
download | core-608e428006fa317badd51b941e05bdba42bd08bd.tar.gz core-608e428006fa317badd51b941e05bdba42bd08bd.tar.bz2 core-608e428006fa317badd51b941e05bdba42bd08bd.zip |
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
Diffstat (limited to 'metricsd/metricsd.rc')
-rw-r--r-- | metricsd/metricsd.rc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/metricsd/metricsd.rc b/metricsd/metricsd.rc new file mode 100644 index 000000000..b5e7b8273 --- /dev/null +++ b/metricsd/metricsd.rc @@ -0,0 +1,7 @@ +on post-fs-data + mkdir /data/misc/metrics 0770 system system + +service metricsd /system/bin/metricsd --foreground --logtosyslog + class late_start + user system + group system dbus inet |