]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stats: add the ability to dump table entries matching criteria
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Jul 2010 09:46:20 +0000 (11:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 16:04:14 +0000 (18:04 +0200)
commit4f3f01fa39f181d48a5366fe90547e875529a5ee
treef07aabd4eb42aa88923882f89ad63b9d3c7962f2
parent603861ed9de512e437f7da060e1ae130cc7da370
[MEDIUM] stats: add the ability to dump table entries matching criteria

It is now possible to dump some select table entries based on criteria
which apply to the stored data. This is enabled by appending the following
options to the end of the "show table" statement :

  data.<data_type> {eq|ne|lt|gt|le|ge} <value>

For intance :

  show table http_proxy data.conn_rate gt 5
  show table http_proxy data.gpc0 ne 0

The compare applies to the integer value as it would be displayed, and
operates on signed long long integers.
include/types/session.h
src/dumpstats.c