-
Notifications
You must be signed in to change notification settings - Fork 223
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
MGMT-19529: Send metrics about disk usage #7178
MGMT-19529: Send metrics about disk usage #7178
Conversation
@paul-maidment: This pull request references MGMT-19529 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7178 +/- ##
==========================================
+ Coverage 67.73% 67.83% +0.10%
==========================================
Files 296 298 +2
Lines 40290 40561 +271
==========================================
+ Hits 27290 27516 +226
- Misses 10544 10577 +33
- Partials 2456 2468 +12
|
e5bec23
to
4139d2c
Compare
4139d2c
to
3f1c326
Compare
Nice approach, do you think there is an easy way to add a small test? |
3f1c326
to
b60609c
Compare
80cc9c9
to
d05c285
Compare
/retest |
d05c285
to
4c6c64a
Compare
4c6c64a
to
d319eb2
Compare
/test okd-scos-e2e-aws-ovn |
1 similar comment
/test okd-scos-e2e-aws-ovn |
On scrape (when responding to the /metrics endpoint) prometheus will run every collector that is registered. This collector exists to gather disk usage stats for a specified directory. In this case, the working directory of assisted-service
d319eb2
to
def01b8
Compare
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: paul-maidment, rccrdpccl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test okd-scos-e2e-aws-ovn |
63132f1
into
openshift:master
[ART PR BUILD NOTIFIER] Distgit: ose-agent-installer-api-server |
When the installer cache is used (by calling get) we would like to take a sample of the disk usage in the cache directory. This PR introduces two metrics, one which is a gauge of the percentage of disk space used and the other which is a histogram of usage in GiB
As part of this PR, I have introduced a
filesystem helper
class to mock some filesystem functions.The broader intent is to do this more universally but for now I am just mocking the functions necessary to gather disk usage information.
The ticket for the broader effort is here https://issues.redhat.com/browse/MGMT-19683
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist