Forum Discussion
Simon_Wright_85
Nimbostratus
Jun 25, 2007Displaying stats using HTTP::respond
Hi all
I am in the process of looking to display some performance statistics i want to gather in a statistics profile. I am able to gather statistics and can view them when looking at it through ...
Simon_Wright_85
Nimbostratus
Jun 25, 2007I realised my error and found the rule should look like this instead.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/myteststats" } {
set stats_html "Total Users: [STATS::get MyStatsProfile tot_users]"
set html_content "iRule Statistics$stats_html"
HTTP::respond 200 content $html_content
}
}I also found after a few minutes of headscratching that the name of the stats profile is case sensitive.
Cheers
simon
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