Forum Discussion
Jeremy_Bridges_
Nimbostratus
Sep 08, 2009Stats Profiles and bigpipe
I would like to access statistics profiles using the bigpipe utility. What command do I need to use to get the value of "field1" on a stats profile called "stats-MyServer"? Maybe like this?
bi...
Jeremy_Bridges_
Nimbostratus
Sep 11, 2009I created the iRule as you suggested:
when HTTP_REQUEST
{
parse URL
set urlParts [split [HTTP::uri] /]
if {[lindex $urlParts 1] == "F5Stats"}
{
pull out the statistics profile and field name
set statProfile [lindex $urlParts 2]
set fieldName [lindex $urlParts 3]
check for reset flag
if {[lindex $urlParts 4] == "reset"}
{
STATS::set $statProfile $fieldName 0
HTTP::respond 200 content "$statProfile/$fieldName was reset to 0"
}
else
{
set currentStatValue [STATS::get $statProfile $fieldName]
HTTP::respond 200 content "$statProfile/$fieldName = $currentStatValue"
}
}
}
Unfortunately, in order to use the STATS commands in the iRule you have to associate a statistics profile with the VIP. As a consequence of this, you cannot change or view any values that are not on the associated profile. So, to set this up, I would need to set up a different VIP for every statistics profile I wanted to manipulate. Not very easy to manage.
Is there some way around this limitation?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
