Applies To:

Show Versions Show Versions

Manual Chapter: Configuration Guide for the BIG-IP® Link Controller: 17 - Using the Statistics Profile
Manual Chapter
Table of Contents   |   << Previous Chapter   |   Next Chapter >>


Using the Statistics Profile

Introducing the Statistics profile

In addition to the profiles described in previous chapters, you can configure the Statistics profile, which provides user-defined statistical counters.

For each profile type, the BIG-IP® system provides a pre-configured profile with default settings. In most cases, you can use these default profiles as is. If you want to change these settings, you can configure profile settings when you create a profile, or after profile creation by modifying the profile's settings.

The following sections list the traffic-management settings contained in the Statistics profile. For information on configuring other types of profiles, see the following:

Configuring a Statistics profile

The Statistics profile provides user-defined statistical counters. Each profile contains 32 settings (Field1 through Field32), which define named counters. Using a Tcl-based iRule command, you can use the names to manipulate the counters while processing traffic.

For example, you can create a profile named my_stats, which assigns the counters tot_users, cur_users, and max_users to the profile settings Field1, Field2, and Field3 respectively. You can then write an iRule named track_users, and then assign the my_stats profile and the track_users iRule to a virtual server named stats-1. Figure 17.1 shows this configuration.


Figure 17.1 Example of Statistics profile counters used in an iRule
profile stats my_stats {
   defaults from stats
   field1 tot_users
   field2 cur_users
   field3 max_users
rule track_users {
       STATS::incr my_stats tot_users 
       STATS::setmax my_stats max_users [STATS::incr my_stats 
virtual stats-1 {
   ip protocol tcp
   profile http my_stats tcp
   pool pool1
   rule track_users


In this example, the counter tot_users counts the total number of connections, the counter cur_users counts the current number of connections, and the counter max_users retains the largest value of the counter cur_users.

For information on iRules STATS commands, see the F5 Networks DevCentral web site, and Chapter 18, Writing iRules .

Table of Contents   |   << Previous Chapter   |   Next Chapter >>

Was this resource helpful in solving your issue?

NOTE: Please do not provide personal information.

Incorrect answer. Please try again: Please enter the words to the right: Please enter the numbers you hear:

Additional Comments (optional)