Example #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')
Example #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
Example #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')
Example #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')
Example #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
Example #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
Example #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
Example #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)')
Example #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'
                                                          ])
Example #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')
Example #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')
Example #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')
Example #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'])