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?
bigpipe stats "stats-MyServer" "field1"
17 Replies
Sort By
- Kevin_Stewart
Employee
It's been awhile since I've worked with STAT profiles, but if I understand it correctly, a single STAT profile can be used across multiple VIPs. If that is the case, you need to clear a single STAT value, and iRules is the only way to do it, you could create a "Services VIP". Its sole job is to execute iRules and return a response. You would then access that VIP via command line Curl.when HTTP_REQUEST { switch [HTTP::uri] { "/FIELD_RESET" { STATS::set $statProfile $fieldName 0 HTTP::respond 200 Content "OK" } default { HTTP::respond 200 Content "Nothing selected" } } }
- L4L7_53191
Nimbostratus
Kevin: Nice technique! That design could be useful for a whole bunch of things - thanks for the idea. - Jeremy_Bridges_
Nimbostratus
I'm not following. How do you build an iRule that executes arbitrary iRules? The iRule you show doesn't do this. - Jeremy_Bridges_
Nimbostratus
I should also mention that I will not be using a stat profile across multiple VIP's. Each stat profile will be specificly designed to track the performance of the pool members in a pool behind one specific VIP. - The_Bhattman
Nimbostratus
What Kirk was saying that if you create a dummy Virtual address called Services_VIP listening on port 80 without a pool associated to it. - Jeremy_Bridges_
Nimbostratus
I got that part. What I don't follow is how to execute iRules from another iRule. Maybe that is not what was meant. - Jeremy_Bridges_
Nimbostratus
Nevermind, we settled on just resetting every stat field with iControl. It is a bit of a blunt instrument, but it will sufficise for now. I have a feature request in to add the ability to reset just one field (C573859) using iControl. So, we will see how that goes. Thanks for the help everyone.
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