]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: Add JSON export from the stats page
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 9 Sep 2019 13:50:54 +0000 (15:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Sep 2019 08:29:54 +0000 (10:29 +0200)
commit6338a08c34bd1544ffcf91e2aafbf6e8ed9ffa58
tree27b3c62b3b075bfa75c4c1c6f53607b520a654b8
parent82004145d495bc3f159af06acad333fa6da4b58d
MINOR: stats: Add JSON export from the stats page

It is now possible to export stats using the JSON format from the HTTP stats
page. Like for the CSV export, to export stats in JSON, you must add the option
";json" on the stats URL. It is also possible to dump the JSON schema with the
option ";json-schema". Corresponding Links have been added on the HTML page.

This patch fixes the issue #263.
include/types/stats.h
src/http_ana.c
src/stats.c