Hue Active Users Metric Improvements

Published on 01 April 2020 in Administration / Version 4.7 - 2 minutes read - 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

19 May 2020
How to grant Ranger permissions for a new user on a Secure Cluster
Read More
06 May 2020
SQL Editor for Apache Flink SQL
Read More
05 May 2020
How to Configure Hue to authenticate with Apache Knox SSO on a Secure Cluster
Read More