Darold Gilles [Mon, 25 Aug 2014 15:17:55 +0000 (17:17 +0200)]
- Fix issue in calculating min/max/avg in "General Activity" report. It was build on the sum of queries duration per minutes instead of each duration. Thanks to Jayadevan M for the report.
- The same issue remains with percentile that are build using the sum of duration per minutes and doesn't represent the real queries duration.
- This commit also include a modification in convert_time() method to reports milliseconds.
Darold Gilles [Fri, 22 Aug 2014 13:19:14 +0000 (15:19 +0200)]
Add -B or --bar-graph command line option to use bar instead of line in graph. Thanks to Bart Dopheide for the suggestion. Also fix Checkpoint Wal files usage graph title.
Darold Gilles [Thu, 7 Aug 2014 22:37:51 +0000 (00:37 +0200)]
Add -R | --retention option to set the maximum number of week reports to preserve in the output directory for incremental mode. Thanks to Kong Man for the feature request.
Darold Gilles [Wed, 6 Aug 2014 20:44:32 +0000 (22:44 +0200)]
Fix issue in incremental mode when parsing is stopped after rotating log and rotated log has new lines. The new file was not parsed at all. Thanks to CZAirwolf for the report.
Darold Gilles [Tue, 5 Aug 2014 22:14:47 +0000 (00:14 +0200)]
- Fix issue in handling SIGTERM/SIGINT that cause pgbadger to continue.
- Add autoclean feature to pgbadger in incremental mode. pgbadger will now removed automatically obsolete binary files unless you specify --noclean at command line. Take care that the old behaviour was to keep those unecessary binary files, now they will be removed if there's already a report in the day directory. In incremental mode (-I) only the binary files of the current parsed week are needed. This may help saving disk space.
Darold Gilles [Tue, 5 Aug 2014 18:25:28 +0000 (20:25 +0200)]
Add a global regex definition array named @session_closed_msg to add regex that match fatal error messages that do not generate disconnection line in pg log.
Darold Gilles [Tue, 5 Aug 2014 11:09:06 +0000 (13:09 +0200)]
Add new command line option --anonymize to obscure all literals in queries/errors to hide confidential data. Thanks to wmorancfi for the feature request.
Add a copy icon in front of each query in the report to select the entire query on click. Click and drag to select the query can be a pain, this button is a click-to-select that allow to use Ctrl+c to copy on clipboard. Thanks to Josh Berkus for the feature request.
Allow pgBadger to write out extra files to outdir when creating incremental reports. Require the use of the -X or --extra-files option in incremental mode (-I). Thanks to Matthew Musgrove for the feature request.
Fix an other issue with wrong offset in incremental mode, initial position was 1 instead of 0. Thanks to Herve Werner for the report.
Fix incomplete handling of XZ compressed format.
Fix overcount of sessions when a client attempts to log in and is kicked off because of failed authentication or an incorrect database name. These show up as sessions which connected and never disconnected. Thanks to Josh Berkus for the report.
Add execute attribute to pgbadger in the source repository, some may find this more helpful when pgbadger is not installed and executed directly from this repository.
Darold Gilles [Wed, 25 Jun 2014 22:45:32 +0000 (00:45 +0200)]
Fix issue with csv log format and incremental mode. Thanks to Suya for the report and the help to solve the issue. There also a fix to support autovacuum statistic with csv format.
Shanzhang Lan [Fri, 30 May 2014 09:55:01 +0000 (17:55 +0800)]
Add JSON support for output format.
JSON format is good for sharing data with other languages, which makes
it easy to integrate pgBadger's result into other monitoring tools
like Cacti or Graphite.
Darold Gilles [Tue, 6 May 2014 11:19:53 +0000 (13:19 +0200)]
Update documentation to inform that the xz utility should be at least in version 5.05 to support the --robot option. Thanks to Xavier Millies-Lacroix for the report.
Add support to named PREPARE and EXECUTE queries. Calls to EXECUTE statements are now replaced by the prepared query and show samples with parameters. Thanks to Brian DeRocher for the feature request.
Copyediting of the documentation. Attempting to fix various awkward
phrasings, grammar, and spelling. Consistently capitalize "pgBadger"
as such, except for command examples which should stay all-lowercase.
Histogram granularity can be adjusted using the -A command line option. By default they will report the mean of each top queries/error occuring per hour, but you can specify the granularity down to the minute.