-
Notifications
You must be signed in to change notification settings - Fork 7
*: Data collection from FCOS machines #31
base: main
Are you sure you want to change the base?
Commits on Sep 19, 2019
-
src/identity: Add a module that collects platform id
Collects ignition platform id from /proc/cmdline in the varriable `ignition.platform.id=` and stores the collected data inside the `identity::Identity` struct. Also adds different grains of data collection level: minimum and full, depending on the passed toml configuration. Signed-off-by: Allen Bai, abai@redhat.com
Allen Bai committedSep 19, 2019 Configuration menu - View commit details
-
Copy full SHA for c1ae43c - Browse repository at this point
Copy the full SHA c1ae43cView commit details -
*: Update according to reviews
Changes the use of term "metrics", deduplicates match pattern and uses maplit::hashmap! macro.
Allen Bai committedSep 19, 2019 Configuration menu - View commit details
-
Copy full SHA for 1d92353 - Browse repository at this point
Copy the full SHA 1d92353View commit details -
identity/os-release: Add a module to abstract os version
Allen Bai committedSep 19, 2019 Configuration menu - View commit details
-
Copy full SHA for 2c66d08 - Browse repository at this point
Copy the full SHA 2c66d08View commit details
Commits on Sep 24, 2019
-
identity/os_release.rs: Collect CoreOS alpha version
Picks up CoreOS alpha version information from `/.coreos-aleph-version.json`. Signed-off-by: Allen Bai, abai@redhat.com
Allen Bai committedSep 24, 2019 Configuration menu - View commit details
-
Copy full SHA for 140e9e0 - Browse repository at this point
Copy the full SHA 140e9e0View commit details
Commits on Sep 26, 2019
-
src/providers: Extract cloud instance type in mod
providers
Allen Bai committedSep 26, 2019 Configuration menu - View commit details
-
Copy full SHA for 9f95f1d - Browse repository at this point
Copy the full SHA 9f95f1dView commit details
Commits on Sep 30, 2019
-
os_release.rs: Change name alpha to aleph
Allen Bai committedSep 30, 2019 Configuration menu - View commit details
-
Copy full SHA for ade473b - Browse repository at this point
Copy the full SHA ade473bView commit details -
rpm-ostree: Add rpm-ostree module for os version extraction
Allen Bai committedSep 30, 2019 Configuration menu - View commit details
-
Copy full SHA for da6a36c - Browse repository at this point
Copy the full SHA da6a36cView commit details
Commits on Oct 9, 2019
-
*: cleanup redundant code imported from Afterburn
Allen Bai committedOct 9, 2019 Configuration menu - View commit details
-
Copy full SHA for b35c9a1 - Browse repository at this point
Copy the full SHA b35c9a1View commit details
Commits on Oct 15, 2019
-
src/agent: merge minimal and full under the same module, agent
src/full: add hardware data collection Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 15, 2019 Configuration menu - View commit details
-
Copy full SHA for c50cb84 - Browse repository at this point
Copy the full SHA c50cb84View commit details -
minimal/mock_tests: add mock test for minimal agent
Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 15, 2019 Configuration menu - View commit details
-
Copy full SHA for 7a05d4f - Browse repository at this point
Copy the full SHA 7a05d4fView commit details -
full/mock_tests: add mock tests for full agent
Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 15, 2019 Configuration menu - View commit details
-
Copy full SHA for 4013ebf - Browse repository at this point
Copy the full SHA 4013ebfView commit details
Commits on Oct 16, 2019
-
full/lsmem: allow "yes"/"no" for field
removable
.travis.yml: test inside ubi container instead of ubuntu vm Allows "yes"/"no" values for `removable` field of `lsmem --json`, because of different implementations, the field type might be different. However, in an FCOS machine this will be true/false. This change is mainly to accommodate testing environment. Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 16, 2019 Configuration menu - View commit details
-
Copy full SHA for d209da0 - Browse repository at this point
Copy the full SHA d209da0View commit details -
Signed-off-by: Allen Bai <abai@redhat.com> agent/full: only collect hw info on bare metals Signed-off-by: Allen Bai <abai@redhat.com> full/network: collect network info with `nmcli` Collects network data with format `[key[\s]+value\n]+`, to see example run `nmcli device show`. Parse the data as key:value pairs stored in a HashMap. Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 16, 2019 Configuration menu - View commit details
-
Copy full SHA for b0cc858 - Browse repository at this point
Copy the full SHA b0cc858View commit details
Commits on Oct 21, 2019
-
src/full: add module for extracting container runtime info
Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 21, 2019 Configuration menu - View commit details
-
Copy full SHA for 6a5e8f1 - Browse repository at this point
Copy the full SHA 6a5e8f1View commit details -
agent/minimum: set default value for identity instead of returning error
tests: add tests to print minimum and full agent with test config file Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 21, 2019 Configuration menu - View commit details
-
Copy full SHA for ec203b0 - Browse repository at this point
Copy the full SHA ec203b0View commit details
Commits on Oct 22, 2019
-
main.rs: serialize the Agent struct and POST as json
Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 22, 2019 Configuration menu - View commit details
-
Copy full SHA for e650f00 - Browse repository at this point
Copy the full SHA e650f00View commit details -
*: add some documentation for each module
Dockerfile: install dependency, openssl-devel Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 22, 2019 Configuration menu - View commit details
-
Copy full SHA for 5267871 - Browse repository at this point
Copy the full SHA 5267871View commit details
Commits on Oct 24, 2019
-
utl/clock: add clock module to record time intervals
Since reporting will happen daily or monthly, we are keeping track of time intervals between reports. Two threads are spawned for tracking daily and monthly reporting. Daily thread will check timestamp every 12 hours, otherwise put to sleep. Monthly thread will check every 15 days, otherwise put to sleep. Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedOct 24, 2019 Configuration menu - View commit details
-
Copy full SHA for 80e7275 - Browse repository at this point
Copy the full SHA 80e7275View commit details
Commits on Nov 21, 2019
-
full/container_runtime: rewrite to use
pgrep
instead of calling run……time Previously we are using individual container runtimes to extract container information, e.g. calling `podman container ls` to count running containers. It would create two problems: - podman failed when trying to create `/.config/containers` since root dir is read-only and dynamic user does not have its own home dir - successful calls do not make sense either since counting running containers under the dynamic user is not useful Hence, switch to count containers by calling `pgrep` and count the running processes of each container runtime. Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedNov 21, 2019 Configuration menu - View commit details
-
Copy full SHA for 4387efa - Browse repository at this point
Copy the full SHA 4387efaView commit details
Commits on Nov 26, 2019
-
systemd: use
LogsDirecoty=
to persist dataPreviously used `StateDirectory=` to persist pinger specific data across bootups. It turns out that systemd does not allow sharing state directory across different dynamic users. An example would be: ``` $ systemd-run --pty --property=DynamicUser=yes --property=StateDirectory=wuff /bin/sh $ systemd-run --pty --property=DynamicUser=yes --property=StateDirectory=wuff /bin/sh ``` Reference: http://0pointer.net/blog/dynamic-users-with-systemd.html Signed-off-by: Allen Bai <abai@redhat.com>
Allen Bai committedNov 26, 2019 Configuration menu - View commit details
-
Copy full SHA for ecf60b2 - Browse repository at this point
Copy the full SHA ecf60b2View commit details