]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stats: show stat resolvers missing in the help message
authorCyril Bonté <cyril.bonte@free.fr>
Fri, 6 May 2016 10:18:51 +0000 (12:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2016 10:28:43 +0000 (12:28 +0200)
The help message provided by the "help" command on the unix socket didn't
provide "show stat resolvers" in the list of supported commands.

This patch should be backported to 1.6

src/dumpstats.c

index 182064a16a71faa24f58922190a33349c26ee179..19e26887ebf071b3a306369920e744ee912fc5c0 100644 (file)
@@ -313,7 +313,7 @@ static int dump_servers_state(struct stream_interface *si, struct chunk *buf);
  *     -> stats_dump_backend_to_buffer()  // "show backend"
  *     -> stats_dump_servers_state_to_buffer() // "show servers state [<backend name>]"
  *     -> stats_dump_stat_to_buffer()     // "show stat"
- *        -> stats_dump_resolvers_to_buffer() // "show stat resolver <id>"
+ *        -> stats_dump_resolvers_to_buffer() // "show stat resolvers <id>"
  *        -> stats_dump_csv_header()
  *        -> stats_dump_proxy_to_buffer()
  *           -> stats_dump_fe_stats()
@@ -350,6 +350,8 @@ static const char stats_sock_usage_msg[] =
        "  show info      : report information about the running process\n"
        "  show pools     : report information about the memory pools usage\n"
        "  show stat      : report counters for each proxy and server\n"
+       "  show stat resolvers [id]: dumps counters from all resolvers section and\n"
+       "                            associated name servers\n"
        "  show errors    : report last request and response errors for each proxy\n"
        "  show sess [id] : report the list of current sessions or dump this session\n"
        "  show table [id]: report table usage stats or dump this table's contents\n"