Forum Discussion
Tal_BenHaim_112
Nimbostratus
Dec 04, 2006throughput rate
Hi,
How can I retreive statistics of the exact number of BPS
going through the interface connected to the ISP.
(I want to make a cross reference between the information I receive from that interface and the information collected from the POOLS.)
Thanks,
Tal
9 Replies
- Rates are going to have to be calculated by your calling application. All of the statistics interfaces (in the case of pools it's with the LocalLB::Pool::get_statistics() method) are returned as either counters our totals. To turn counters into rates (ie, bps), you need to take a sample of two points and divide by the interval between the two (c2 - c1)/(t2 - t1). BTW, we've included the timestamp the data was sampled on in the returned statistics data structure.
- Tal_BenHaim_112
Nimbostratus
Hi Joe, - Tal_BenHaim_112
Nimbostratus
Hello Joe, - Tal_BenHaim_112
Nimbostratus
Hello Aaron, - Most likely your code (as well as the Distribution Monitor sample) are not correctly converting the UInt64 Structure to a valid 64 bit number. Odds are something is getting truncated there.
- The Networking::Interfaces::get_statistics() will return the cumulative statistics for the requested interface (or interfaces).
- Tal_BenHaim_112
Nimbostratus
Hi Joe, - That brings back memories...
UInt64 build64(iControl.CommonULong64 ul64) { return ((UInt64)(UInt32)ul64.high) << 32 | ((UInt64)(UInt32)ul64.low); } public UInt64 findStatisticType(PoolMember.CommonStatistic[] stat_list, PoolMember.CommonStatisticType stat_type) { //The DataGrid does not support 64 bit integers // so this is cast to the lower 32 bits UInt64 value = 0; for(int i=0; i { if ( stat_type == stat_list[ i ].type ) { value = build64(stat_list[ i ].value); } } return value; }
- Tal_BenHaim_112
Nimbostratus
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects