jianghuazhu commented on PR #7306:
URL: https://github.com/apache/ozone/pull/7306#issuecomment-2541006183

   > * In the dashboard (Grafana for example) we approximate network traffic 
over time by subtracting the current sampled metric value from the last sampled 
metric.
   
   Regarding this, I think there are two ways to achieve it:
   1. Now that we have the total number of bytes transmitted, when we want to 
check the transmission trend, we can record the difference of the data outside 
the Ozone system. For example, the total number of bytes obtained at 09:10:20 
is 300mb, and the total number of bytes obtained at 09:10:30 is 400mb, then the 
traffic trend during the period of 09:10:20~09:10:30 is 100mb.
   
   2. A common module can be designed to handle functions similar to traffic 
transmission trends. It is necessary to implement aggregation according to time 
periods, for example, 5s, 1min, 1h. Regularly collect the difference between 
two time periods, 09:10:20~09:10:25->40mb, 09:10:30~09:11:30->500mb, 
09:10:30~10:10:30->2gb, these differences should be defined as instantaneous 
values.
   In general, their effects should be like this:
   
![image](https://github.com/user-attachments/assets/ca6946b2-433a-4184-9726-ef9a718b70f8)
   
   
   @\ @errose28  @kerneltime , what do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to