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