Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-5913

RHODS 1.19 usage metrics are not including usage for Data Science Projects

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • RHODS_1.19.0_GA
    • Monitoring
    • 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

            Unassigned Unassigned
            rhn-support-jgarciao Jorge Garcia Oncins
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: