Esempio n. 1
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --restarts flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument(
            '--rsstate',
            action='store_true',
            help='outputs information about every detected RS state change')
Esempio n. 2
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --restarts flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument('--distinct', action='store_true', help='outputs distinct list of all log line by message type (slow)')

        # progress bar
        self.progress_bar_enabled = not self.mloginfo.is_stdin
Esempio n. 3
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --restarts flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument(
            '--connections',
            action='store_true',
            help='outputs information about opened and closed connections')
Esempio n. 4
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --rsinfo flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument(
            '--rsinfo',
            action='store_true',
            help='outputs replica set config information')
Esempio n. 5
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --queries flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument('--queries', action='store_true', help='outputs statistics about query patterns')

        # progress bar
        self.progress_bar_enabled = not self.mloginfo.is_stdin
Esempio n. 6
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --queries flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument(
            '--queries',
            action='store_true',
            help='outputs statistics about query patterns')

        # progress bar
        self.progress_bar_enabled = not self.mloginfo.is_stdin
Esempio n. 7
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --restarts flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument(
            '--distinct',
            action='store_true',
            help='outputs distinct list of all log line by message type (slow)'
        )

        # progress bar
        self.progress_bar_enabled = not self.mloginfo.is_stdin
Esempio n. 8
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        self.mloginfo.argparser_sectiongroup.add_argument(
            '--connections',
            action='store_true',
            help='outputs information about opened and closed connections')
        self.mloginfo.argparser_sectiongroup.add_argument(
            '--connstats',
            action='store_true',
            help=
            'outputs helpful statistics for connection duration (min/max/avg)')
Esempio n. 9
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --queries flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument(
            '--queries',
            action='store_true',
            help='outputs statistics about query patterns')
        self.mloginfo.argparser_sectiongroup.add_argument('--sort',
                                                          action='store',
                                                          default='sum',
                                                          choices=[
                                                              'namespace',
                                                              'pattern',
                                                              'count', 'min',
                                                              'max', 'mean',
                                                              '95%', 'sum'
                                                          ])
Esempio n. 10
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --restarts flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument('--connections', action='store_true', help='outputs information about opened and closed connections')
Esempio n. 11
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --rsinfo flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument('--rsinfo', action='store_true', help='outputs replica set config information')
Esempio n. 12
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --restarts flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument('--rsstate', action='store_true', help='outputs information about every detected RS state change')
Esempio n. 13
0
    def __init__(self, mloginfo):
        BaseSection.__init__(self, mloginfo)

        # add --queries flag to argparser
        self.mloginfo.argparser_sectiongroup.add_argument('--queries', action='store_true', help='outputs statistics about query patterns')
        self.mloginfo.argparser_sectiongroup.add_argument('--sort', action='store', default='sum', choices=['namespace', 'pattern', 'count', 'min', 'max', 'mean', '95%', 'sum'])