Skip to content

Commit

Permalink
Stats view and backend (#1048)
Browse files Browse the repository at this point in the history
Implements the fapolicyd cache stats view.

Adds a backend for parsing and tracking stats taken from the
fapolicyd.state file. The backend watches for writes to the file and
captures the state into an in-memory database.

The GUI implements a simple view that displays the current state file
and a graph of object cache performance. The graph is populated by a
time-limited historical view of the state file. This is provided by the
backend and linked into the stats view redux feature.

Additional graphs may be added to the cache view in the future. The
stats data may also be displayed on the profiler view in the future.

The stats backend can be leveraged to display stats from the CLI as well
as the core metrics tracking is done on the backend in rust.

Closes #621
  • Loading branch information
jw3 authored Nov 30, 2024
1 parent fdf551f commit f77e1d7
Show file tree
Hide file tree
Showing 24 changed files with 1,674 additions and 184 deletions.
152 changes: 145 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ more-itertools = "~=7.2"
importlib-resources = "~=1.0.2"
importlib-metadata = "~=0.23"
dataclasses = "==0.6"
matplotlib = "~=3.4.3"
toml = "*"

[pipenv]
Expand Down
Loading

0 comments on commit f77e1d7

Please sign in to comment.