coreos / fedora-coreos-pinger

Telemetry service to be used in Fedora CoreOS (see https://github.com/coreos/fedora-coreos-tracker/issues/86)
Apache License 2.0
15 stars 7 forks source link

*: Data collection from FCOS machines #31

Open zonggen opened 4 years ago

zonggen commented 4 years ago

Source of truth for each part of data collected:

Signed-off-by: Allen Bai, abai@redhat.com

zonggen commented 4 years ago

Currently in main.rs the collected ignition platform id will be printed to the console, which will be updated later to be bundled with other data and sent to the remote endpoint.

zonggen commented 4 years ago

Also, this PR will be updated to resolve https://github.com/coreos/fedora-coreos-pinger/issues/30#issue-494138139

zonggen commented 4 years ago

UPDATE:

Note: Most portion of code is the same as platform.rs so in the future, towards the end of this PR should de-duplicate this part of code into a new utils helper module.

zonggen commented 4 years ago

STATUS: Currently Travis CI is failing since it is using Rust docker image which is based on Debian and it does not ship with lsmem, and lscpu does not contain an --json option. To test with more production-like environment, i.e. FCOS, it might be better to switch to UBI (https://www.redhat.com/en/blog/introducing-red-hat-universal-base-image). Will be updating with changes to see if it works.

EDIT:

zonggen commented 4 years ago

STATUS:

zonggen commented 4 years ago

STATUS:

Overall, ready for review!

zonggen commented 4 years ago

STATUS:

zonggen commented 4 years ago

cc @lucab @bgilbert

ashcrow commented 3 years ago

Is this something we want to continue pursuing?

bgilbert commented 3 years ago

Maybe not; xref https://github.com/coreos/fedora-coreos-tracker/issues/770.