-
Notifications
You must be signed in to change notification settings - Fork 32
✨Adds metrics regarding new style dynamic services timings #6347
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
✨Adds metrics regarding new style dynamic services timings #6347
Conversation
…rics-for-start-and-stop
…rics-for-start-and-stop
…rics-for-start-and-stop
…rics-for-start-and-stop
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.
Thanks for the first draft. I added a few comments that we can over together.
We cannot have size as a label as this is unbound.
Also the bucket size must be reduced until we gather more experience at least, no need to go so fine grained, otherwise prometheus will blow up.
Let's discuss later.
services/director-v2/src/simcore_service_director_v2/core/application.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/models/dynamic_services_scheduler.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/models/dynamic_services_scheduler.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/models/dynamic_services_scheduler.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/models/dynamic_services_scheduler.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/instrumentation/_models.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/instrumentation/_models.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/instrumentation/_utils.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/instrumentation/_utils.py
Show resolved
Hide resolved
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/long_running_tasks.py
Show resolved
Hide resolved
…rics-for-start-and-stop
…rics-for-start-and-stop
services/director-v2/src/simcore_service_director_v2/core/application.py
Outdated
Show resolved
Hide resolved
...simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_core/_events_user_services.py
Outdated
Show resolved
Hide resolved
...-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_core/_events_utils.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/instrumentation/_models.py
Outdated
Show resolved
Hide resolved
...-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_core/_events_utils.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/instrumentation/_utils.py
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/instrumentation/_models.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.
Nice!
…rics-for-start-and-stop
…rics-for-start-and-stop
…rics-for-start-and-stop
…rics-for-start-and-stop
…rics-for-start-and-stop
…rics-for-start-and-stop
|



What do these changes do?
Adding metrics regarding the times it takes to finish certain operations. The following labels are used for all the metrics (
user_id,wallet_id,service_keyandservice_version).Metrics based on times:
start_time_duration_secondsstop_time_duration_secondspull_user_services_images_duration_secondsMetrics based on rates:
output_ports_pull_rate_bpsinput_ports_pull_rate_bpspull_service_state_rate_bpspush_service_state_rate_bpsBelow, truncated output of
curl director-v2:8000/metricsafter starting and stopping a service.Related issue/s
How to test
Dev-ops checklist