[ 
https://issues.apache.org/jira/browse/HDDS-12168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashish Kumar resolved HDDS-12168.
---------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

> Grafana dashboard - 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: Sreeja
>            Priority: Major
>              Labels: newbie, pull-request-available
>             Fix For: 2.0.0
>
>
> Grafana dashboard 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. 
>  
> {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]

Reply via email to