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

Add usage report command #851

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Add usage report command #851

wants to merge 14 commits into from

Conversation

ares
Copy link
Member

@ares ares commented May 23, 2024

This is the PoC of generating yaml representing the usage of the instance. Test wit

foreman-maintain report generate

Currently, the command searches for all ReportChecks, executes them and collects the data from them. Then it prints out the resulting YAML to stdout.

ares and others added 14 commits May 23, 2024 13:33
This extends the check so it can hold any arbitrary data. That is then
used in the generate report command, that finds all checks tagged with
report tag, executes them and gather their data for the final YAML
creation.

This commit also includes two examples of metrics that uses database as
the Data source.
With this new child class, report checks can share helpers easily. Also
the parent Check class, which is used elsewhere, does not need to be
extended by the data storage.
Earlier, all Reports were also considered Checks, so they showed up in
health checks. This change now fully isolates Reports and Checks while
all the code is shared.
Add recurring logics report
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.

2 participants