Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats view and backend #1048

Merged
merged 22 commits into from
Nov 30, 2024
Merged

Stats view and backend #1048

merged 22 commits into from
Nov 30, 2024

Conversation

jw3
Copy link
Member

@jw3 jw3 commented Nov 30, 2024

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

@jw3 jw3 added this to the v1.5 milestone Nov 30, 2024
@jw3 jw3 merged commit f77e1d7 into ctc-oss:master Nov 30, 2024
30 of 35 checks passed
@jw3 jw3 deleted the 621-stats-backend branch November 30, 2024 02:02
@jw3 jw3 mentioned this pull request Jan 1, 2025
jw3 added a commit that referenced this pull request Jan 1, 2025
##
[v1.5.0](https://github.com/ctc-oss/fapolicy-analyzer/releases/tag/v1.5.0)
- 2024-12-31

### Added

- Include the command line based fapolicy Trust DB admin tool in the CLI
RPM distribution.
([#1025](#1025))
- Include the command line based fapolicy profile tool in the CLI RPM
distribution.
([#1040](#1040))
- Include the command line based rule compiler tool in the CLI RPM
distribution.
([#1043](#1043))
- Add friendly messages in case of application crash, with instructions
for bug reporting and trace file.
([#1045](#1045))
- Added fapolicyd cache stats view with text and 2D plots, showing cache
performance.
([#1048](#1048))

### Fixed

- Fixed trust init issue related to sha1 hashes and improved diagnostics
around parsing the trust db entries.
([#1038](#1038))
- Fixed webkit version selection to support both Fedora and EPEL
versions of webkit2.
([#1044](#1044))

### Packaging

- Subpackaged RPM build to support separate CLI and GUI installations.
([#1025](#1025))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add UI for fapolicyd stats
1 participant