blob: a9d54cecfde2f4bcf7a8d42346229bc1a42aea85 [file] [log] [blame] [view]
# Field Data
Ledger uses [Cobalt] to record field data.
In order to add more events:
- edit Ledger code under [/bin/ledger/cobalt]
- register the new events, see documentation for [Cobalt client]
In order to view the recorded data, run:
```
cd src/cobalt/bin
./download_report_client.py
./report_client -project_id=100
```
Then, follow `report_client` hints to extract the data. For example, run the
following to extract Ledger event counters from the last 5 days:
```
Command or 'help': run range -4 0 2
```
[Cobalt]: https://fuchsia.googlesource.com/cobalt
[/bin/ledger/cobalt]: /src/ledger/bin/cobalt/
[Cobalt client]: https://fuchsia.googlesource.com/fuchsia/+/master/src/cobalt/bin/