Ejemplo 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')
Ejemplo 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
Ejemplo 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')
Ejemplo 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')
Ejemplo 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
Ejemplo 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
Ejemplo 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
Ejemplo 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)')
Ejemplo 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'
                                                          ])
Ejemplo 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')
Ejemplo 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')
Ejemplo 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')
Ejemplo 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'])