-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ (⚠️ devops) 🗃️ Is922 resource tracking/1. version of regular scraping #4380
✨ (⚠️ devops) 🗃️ Is922 resource tracking/1. version of regular scraping #4380
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4380 +/- ##
========================================
- Coverage 86.1% 86.0% -0.2%
========================================
Files 985 993 +8
Lines 42384 42484 +100
Branches 1006 1007 +1
========================================
+ Hits 36534 36545 +11
- Misses 5619 5708 +89
Partials 231 231
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Supernice, looking forward to seeing it in action. Potentially consider some comments and maybe you find the time to answer some of my questions ;)
...s/resource-usage-tracker/src/simcore_service_resource_usage_tracker/resource_tracker_core.py
Outdated
Show resolved
Hide resolved
...s/resource-usage-tracker/src/simcore_service_resource_usage_tracker/resource_tracker_core.py
Outdated
Show resolved
Hide resolved
services/resource-usage-tracker/src/simcore_service_resource_usage_tracker/cli.py
Show resolved
Hide resolved
services/resource-usage-tracker/tests/unit/test_resource_tracker_core.py
Show resolved
Hide resolved
...usage-tracker/src/simcore_service_resource_usage_tracker/resource_tracker_cli_placeholder.py
Show resolved
Hide resolved
...age-tracker/tests/unit/with_dbs/test_collect_container_resource_usage_task__on_update_set.py
Show resolved
Hide resolved
...age-tracker/tests/unit/with_dbs/test_collect_container_resource_usage_task__on_update_set.py
Outdated
Show resolved
Hide resolved
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.
very nice! let's check some of the comments together.
packages/postgres-database/src/simcore_postgres_database/models/resource_tracker.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/resource_tracker.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/resource_tracker.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/resource_tracker.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/resource_tracker.py
Outdated
Show resolved
Hide resolved
...s/resource-usage-tracker/src/simcore_service_resource_usage_tracker/resource_tracker_core.py
Outdated
Show resolved
Hide resolved
...s/resource-usage-tracker/src/simcore_service_resource_usage_tracker/resource_tracker_core.py
Outdated
Show resolved
Hide resolved
...age-tracker/tests/unit/with_dbs/test_collect_container_resource_usage_task__on_update_set.py
Show resolved
Hide resolved
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.
Some extra commends on top of our in person talk
...re_postgres_database/migration/versions/967cff1d52ac_new_resource_tracker_container_table.py
Outdated
Show resolved
Hide resolved
...re_postgres_database/migration/versions/967cff1d52ac_new_resource_tracker_container_table.py
Outdated
Show resolved
Hide resolved
...sage-tracker/src/simcore_service_resource_usage_tracker/models/resource_tracker_container.py
Outdated
Show resolved
Hide resolved
...usage-tracker/src/simcore_service_resource_usage_tracker/resource_tracker_cli_placeholder.py
Show resolved
Hide resolved
services/resource-usage-tracker/tests/unit/with_dbs/data/data.json
Outdated
Show resolved
Hide resolved
...ces/resource-usage-tracker/tests/unit/with_dbs/test_collect_container_resource_usage_task.py
Outdated
Show resolved
Hide resolved
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.
I already see a lot of comments. I rather wait for a second round. Please re-assign review when you are done with the others. Thx!
services/resource-usage-tracker/src/simcore_service_resource_usage_tracker/cli.py
Show resolved
Hide resolved
...ces/resource-usage-tracker/src/simcore_service_resource_usage_tracker/modules/db/__init__.py
Outdated
Show resolved
Hide resolved
...s/resource-usage-tracker/src/simcore_service_resource_usage_tracker/resource_tracker_core.py
Outdated
Show resolved
Hide resolved
…:matusdrobuliak66/osparc-simcore into is922-resource-tracking/adding-variables
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.
great! looking forward!
...postgres_database/migration/versions/6e91067932f2_adding_resource_tracker_container_table.py
Show resolved
Hide resolved
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.
great! looking forward!
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.
👍
services/resource-usage-tracker/src/simcore_service_resource_usage_tracker/cli.py
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Code Climate has analyzed commit 99dab0a and detected 0 issues on this pull request. View more on Code Climate. |
What do these changes do?
PromQL query:
We look for all running containers filtered by image name in the last 30 minutes (with a 1-minute resolution). We always update the observed last running timestamp (and also the last observed total container cpu used seconds).
Next steps:
Notes & Discussions:
Related issue/s
How to test
DevOps Checklist
for now, also using MACHINE_FQDN variable