Devesh Kumar Singh created HDDS-12168:
-----------------------------------------
Summary: Ozone Recon UI - Show Cluster growth rate based on last X
hours using promQL
Key: HDDS-12168
URL: https://issues.apache.org/jira/browse/HDDS-12168
Project: Apache Ozone
Issue Type: Task
Components: Ozone Recon
Reporter: Devesh Kumar Singh
Assignee: Abhishek Pal
Recon can show cluster growth rate on an hourly basis or last X number of hours
selected by user. This information will be computed based on prometheus metrics
if prometheus service is running in cluster.
*promQL:*
{code:java}
sum(rate(scm_node_manager_total_used[1h])) * 100 /
sum(scm_node_manager_total_used){code}
Here 1h can be changed based on user selection, but default it will show in
last 1 hour, what is the growth rate. Above promQL shows in percentage. So for
example Recon can query below API and display the growth rate over UI, also it
can allow user to change the last X hour value.
{code:java}
http://<prometheus_host_ip>:9090/api/v1/query?query=sum(rate(scm_node_manager_total_used[1h]))
* 100 / sum(scm_node_manager_total_used){code}
cc: [~kkasawa] [~ritesh] [~swagle]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]