def add_arguments(self, parser):
     """Add custom arguments."""
     parser.add_argument("--clean-cache", help="clean cache", action="store_true")
     parser.add_argument(
         "--clean-backend", help="clean backend", action="store_true"
     )
     parser.add_argument(
         "--clean-corrupted", help="clean corrupted metrics", action="store_true"
     )
     parser.add_argument(
         "--quiet",
         action="store_const",
         default=False,
         const=True,
         help="Show no output unless there are problems.",
     )
     parser.add_argument(
         "--max-age",
         help="Specify the age of metrics in seconds to evict"
         " (ie: 3600 to delete older than one hour metrics)",
         type=int,
         default=3 * 24 * 60 * 60,
         action="store",
     )
     command.add_sharding_arguments(parser)
    def add_arguments(self, parser):
        """Add custom arguments.

        See command.CommandBase.
        """
        command.add_sharding_arguments(parser)
        parser.add_argument(
            "-c", "--conf", help="Configuration file for namespaces", dest="conf"
        )

        formats = tabulate.tabulate_formats
        formats.append("graphite")
        parser.add_argument(
            "-f", "--format", help="Format: %s" % ", ".join(formats), dest="fmt"
        )
        parser.add_argument(
            "--carbon",
            help="Carbon host:port to send points to when using graphite output."
        )
        parser.add_argument(
            "--prefix",
            help="Prefix to add to every section name.",
            default='',
        )
        self._n_metrics = collections.defaultdict(int)
        self._n_points = collections.defaultdict(int)
Exemple #3
0
 def add_arguments(self, parser):
     """Add custom arguments."""
     command.add_sharding_arguments(parser)
     parser.add_argument("--quiet",
                         action="store_const",
                         default=False,
                         const=True,
                         help="Show no output unless there are problems.")
Exemple #4
0
 def add_arguments(self, parser):
     """Add custom arguments."""
     command.add_sharding_arguments(parser)
     parser.add_argument(
         "--quiet",
         action="store_const",
         default=False,
         const=True,
         help="Show no output unless there are problems.",
     )
     parser.add_argument("--metrics-file-path",
                         help="Dump metrics in file",
                         type=str,
                         default="",
                         action="store")
Exemple #5
0
    def add_arguments(self, parser):
        """Add custom arguments.

        See command.CommandBase.
        """
        command.add_sharding_arguments(parser)
        parser.add_argument(
            "-c", "--conf", help="Configuration file for namespaces", dest="conf"
        )

        formats = tabulate.tabulate_formats
        formats.append("graphite")
        parser.add_argument(
            "-f", "--format", help="Format: %s" % ", ".join(formats), dest="fmt"
        )
        self._n_metrics = collections.defaultdict(int)
        self._n_points = collections.defaultdict(int)
Exemple #6
0
    def add_arguments(self, parser):
        """Add custom arguments.

        See command.CommandBase.
        """
        command.add_sharding_arguments(parser)
        parser.add_argument(
            "-c", "--conf", help="Configuration file for namespaces", dest="conf"
        )

        formats = tabulate.tabulate_formats
        formats.append("graphite")
        parser.add_argument(
            "-f", "--format", help="Format: %s" % ", ".join(formats), dest="fmt"
        )
        parser.add_argument(
            "--carbon",
            help="Carbon host:port to send points to when using graphite output."
        )
        parser.add_argument(
            "--prefix",
            help="Prefix to add to every section name.",
            default='',
        )
        parser.add_argument(
            "--metadata-analysis",
            help="Run a statistical analysis on metadata contents.",
            default=False,
        )
        parser.add_argument(
            "--metrics-file-path",
            help="Dump metrics in file",
            type=str,
            default="",
            action="store"
        )

        self._n_metrics = collections.defaultdict(int)
        self._n_points = collections.defaultdict(int)