-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
RHODS_1.19.0_GA
-
False
-
None
-
False
-
Testable
-
No
-
-
-
-
-
-
-
No
-
No
-
Pending
-
None
-
-
-
RHODS 1.22, RHODS 1.23, RHODS 1.24, RHODS 1.25, RHODS 1.26, RHODS 1.27
Description of problem:
In RHODS 1.19 usage metrics like rhods_total_users, notebook_cpu_usage, active_users are only considering usage from Applications > Jupyter, ignoring usage made from Data Science Projects
rhods_total_users: metric defined here:
count(kube_statefulset_replicas{namespace=~"rhods-notebooks", statefulset=~"jupyter-nb-.*"})
notebook_cpu_usage: metric defined here
sum(rate(container_cpu_usage_seconds_total{container="",pod=~"jupyter-nb.*",namespace="rhods-notebooks"}[1h]))
active_users: metric defined here
count(kube_statefulset_replicas{namespace=~"rhods-notebooks", statefulset=~"jupyter-nb-.*"} ==1)
active_notebooks_pod_time: metric defined here
count(kube_pod_container_status_ready{namespace="rhods-notebooks", pod=~"jupyter-nb.*",container=~"jupyter-nb-.*"}==1)
cluster:usage:consumption:rhods:cpu_requests_runtime: defined here
sum(kube_pod_container_resource_requests{namespace="rhods-notebooks",resource="cpu", container=~"jupyter-nb-.*"} * on(pod) kube_pod_status_phase{phase="Running", namespace="rhods-notebooks"})
cluster:usage:consumption:rhods:cpu_limits_runtime: defined here
sum(kube_pod_container_resource_limits{namespace="rhods-notebooks",resource="cpu", container=~"jupyter-nb-.*"} * on(pod) kube_pod_status_phase{phase="Running", namespace="rhods-notebooks"})
Note: there is a related issue about user PVC usage alerts not considering Data Science Projects (RHODS-5822)
Expected results:
I think the metrics, to be meaningful, should also count usage originated at Data Science Projects
Reproducibility (Always/Intermittent/Only Once):
Always
Build Details:
RHODS 1.19.0-14
- relates to
-
RHODS-5822 [DSG] RHODS admins are not warned when usage exceeds 90% or 100% for PVCs created by Data Science Projects
- Closed