Forum Discussion
zentropy_128313
Nimbostratus
Feb 04, 2005Accessing a Pool's Common.Statistic properties from within an IRule
I'm writing an iRule that redirects traffic based on the value of STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS for a particular pool. Does anyone know if there is a way to access this value?
6 Replies
- Loc_Pham_101863Historic F5 AccountUnfortunately, currently there's no way to access statistics from within an iRule.
Loc - unRuleY_95363Historic F5 AccountWe do already have an enhancement request for accessing such stats tracked as CR33356.
It will likely be scheduled for implementation in our upcoming release later this spring. - zentropy_128313
Nimbostratus
Thanks.
In the alternative, I was thinking that maybe I can create a cron job that uses the iControl SDK to periodically (e.g every 10 secs) poll the F5 for these statistics, and then insert them into the header of a request to a server managed by the F5.
I would then write an iRule to look for this header variable, and if found, it would set a tcl global variable to this value. Then any other request needing this statistic would be able to access it via the global variable.
Would this work?
Regards - unRuleY_95363Historic F5 AccountYep, that would probably be a good way to work around it for now.
You could even remove the stats header with "HTTP::header remove" so your clients don't even see it. - Jeremy_Bridges_
Nimbostratus
Was this functionality ever added to the iRule interfaces? I would like to use it to affect pool member status (pool member gets too slow, it is marked down by an iRule). - hoolio
Cirrostratus
It would be very helpful to be able to get statistics for the virtual server and pool from an iRule. Unfortunately, this hasn't been added yet. You could open a case with F5 Support and ask them to provide status on CR33356 and to attach your request to the enhancement request.
Aaron
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
