Hue Active Users Metric Improvements

Published on 01 April 2020 in Version 4 / Development - 2 minutes read - Last modified on 19 April 2021 - Read in jp

To understand the performance of Hue, we want to know how many active users in Hue–and more specifically–how many on each host. An active user is who sends requests from his/her browser to the Hue server in the last one hour. Recently, Hue got some improvements for providing and displaying better metrics.

  1. On premise, Hue is using PyFormance implements /desktop/metrics endpoint. Cloudera Manager collects data via the endpoint and displays the metric “Active Users” in the Charts Library, but all hosts show the same number of active users. With HUE-9210, the active users metric on each host is collected based on its hostname (see screenshot).

    cm_active_users.png

    Here we can see three users on the blue Hue API server role and one on the green

  2. In Kubernetes, Hue is using django-prometheus to implement endpoint /metrics. With HUE-9194, we added two new active users metrics to display in Prometheus server. You may set up your Prometheus server without Kubernetes. Once setup is done and the server is started, open your browser at localhost:9090. From the drop down menu of metrics, you may find hue_active_users and hue_local_active_users.

    prometheus_active_users.png

    This hue_local_active_users is showing active users in specific container bases on its hostname, while hue_active_users will show all users in the data warehouse.

Any feedback or questions? Feel free to comment here or on the Forum or @gethue and quick start SQL querying!

Ying Chen from the Hue Team


comments powered by Disqus

More recent stories

03 May 2023
Discover the power of Apache Ozone using the Hue File Browser
Read More
23 January 2023
Hue 4.11 and its new dialects and features are out!
Read More