-
Notifications
You must be signed in to change notification settings - Fork 2
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
EOSC Accounting #17
EOSC Accounting #17
Conversation
WARNING: this will break an upgrade if there is a running DB already, we should prepare some migration of the model to avoid issues.
With the arg in __init__ was making all queries fail
The code will report from the last succesfully completed execution
i'm testing manullay for now, but i see some strange aggregated values being published to Accounting:
i have generated the DB from prometheus on fullhub instance using the pods py script |
could be that this is related to this query https://github.com/EGI-Federation/egi-notebooks-accounting/blob/master/egi_notebooks_accounting/pods.py#L46 which is returning seconds? while we would like to report hours? |
mm no that value is coming from the pod.wall |
that's also in seconds, so we need to convert to hours |
yes now numbers seems correct!
@valtri do you think you can test it on the testing JHub instance ? |
cc0c16a
to
482039b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully by CESNET
Summary
Implement changes needed to make Notebooks report accounting as needed by EOSC Lot 1/3
Modernise the code as well
Changes to the main accounting script:
[default]
section and keeps there most of the stuff that was on[prometheus]
which was a mix of everythingflavor
) which is populated from theegi.eu/flavor
annotationIn the EOSC accounting:
from-date
andto-date
for reporting, by default it will report the previous dayOther changes
pyproject.toml
, we may think on additional tooling for managing the project in the futureRelated issue :