PT-182 Added --output-format for MongoDB tools

Added `--output-format` option for pt-mongodb-summary and
pt-mongodb-query-digest.
Valid values are: text & json. Defaulf: text
This commit is contained in:
Carlos Salguero
2017-08-01 11:20:06 -03:00
parent 70702daa98
commit 1f35e1a12d
6 changed files with 61 additions and 50 deletions

View File

@@ -45,6 +45,10 @@ Options
``-d``, ``--database``
Specifies which database to profile
``-f``, ``--output-format``
Specifies the report output format. Valid options are: ``text``, ``json``.
The default value is ``text``.
``-l``, ``--log-level``
Specifies the log level:
``panic``, ``fatal``, ``error``, ``warn``, ``info``, ``debug error``

View File

@@ -35,6 +35,10 @@ Options
with a MongoDB server.
By default, the ``admin`` database is used.
``-f``, ``--output-format``
Specifies the report output format. Valid options are: ``text``, ``json``.
The default value is ``text``.
``-p``, ``--password``
Specifies the password to use when connecting to a server
with authentication enabled.