Home

Traffic Server Software Developers Kit

Reading Traffic Server Settings and Statistics

Your plugin might need to know information about Traffic Server’s current configuration and performance. The functions described in this section read this information from the Traffic Server records.config file. Configuration settings are stored in CONFIG variables and statistics are stored in PROCESS variables.

[Caution] Caution

Not all CONFIG and PROCESS variables in records.config are relevant to Traffic Server’s configuration and statistics. Therefore, retrieve only the records.config variables that are documented in the Traffic Server Administrator’s Guide.

To retrieve a variable, you need to know its type (int, counter, float, or string). Plugins store the records.config values as an INKMgmtInt, INKMgmtCounter, INKMgmtFloat, or INKMgmtString. You can look up records.config variable types in the Traffic Server Administrator’s Guide.

Depending on the result type, you'll use INKMgmtIntGet, INKMgmtCounterGet, INKMgmtFloatGet, or INKMgmtStringGet to obtain the variable value (see the example for INKMgmtIntGet).

The INKMgmt*Get functions are: