Exemplo n.º 1
0
 def init_argument_parser(parser, defaults):
     InMemoryMetricsRegistry.init_argument_parser(parser, defaults)
     add_parser_argument(parser,
                         'influxdb_url',
                         defaults,
                         'http://localhost:8086',
                         help='Server address to push metrics to.')
     add_parser_argument(parser,
                         'influxdb_database',
                         defaults,
                         'SpinnakerBuildTool',
                         help='Influxdb to push metrics to.')
     add_parser_argument(
         parser,
         'influxdb_reiterate_gauge_secs',
         defaults,
         60,
         help='Reiterate gauge values for the specified period of seconds.'
         ' This is because when they get chunked into time blocks, the'
         'values become lost, in particular settling back to 0.')
     add_parser_argument(
         parser,
         'influxdb_add_context_labels',
         defaults,
         None,
         help='A comma-separated list of additional name=value'
         ' labels to add to each event to associate them together.'
         ' (e.g. xRelease=release-1.2.x)')
Exemplo n.º 2
0
 def init_argument_parser(parser, defaults):
     """Init argparser with metrics-related options."""
     InMemoryMetricsRegistry.init_argument_parser(parser, defaults)
     InfluxDbMetricsRegistry.init_argument_parser(parser, defaults)
     add_parser_argument(parser,
                         'monitoring_enabled',
                         defaults,
                         False,
                         type=bool,
                         help='Enable monitoring to stackdriver.')
     add_parser_argument(
         parser,
         'monitoring_flush_frequency',
         defaults,
         15,
         help='Frequency at which to push metrics in seconds.')
     add_parser_argument(parser,
                         'monitoring_system',
                         defaults,
                         'file',
                         choices=['file', 'influxdb'],
                         help='Where to store metrics.')
     add_parser_argument(
         parser,
         'monitoring_context_labels',
         defaults,
         None,
         help='A comma-separated list of additional name=value'
         ' labels to add to each event to associate them together.'
         ' (e.g. version=release-1.2.x)')
Exemplo n.º 3
0
 def init_argument_parser(parser, defaults):
     InMemoryMetricsRegistry.init_argument_parser(parser, defaults)
     add_parser_argument(
         parser,
         "influxdb_url",
         defaults,
         "http://localhost:8086",
         help="Server address to push metrics to.",
     )
     add_parser_argument(
         parser,
         "influxdb_database",
         defaults,
         "SpinnakerBuildTool",
         help="Influxdb to push metrics to.",
     )
     add_parser_argument(
         parser,
         "influxdb_reiterate_gauge_secs",
         defaults,
         60,
         help="Reiterate gauge values for the specified period of seconds."
         " This is because when they get chunked into time blocks, the"
         "values become lost, in particular settling back to 0.",
     )
Exemplo n.º 4
0
 def init_argument_parser(parser, defaults):
     """Init argparser with metrics-related options."""
     InMemoryMetricsRegistry.init_argument_parser(parser, defaults)
     InfluxDbMetricsRegistry.init_argument_parser(parser, defaults)
     add_parser_argument(
         parser,
         'metric_name_scope',
         defaults,
         'buildtool',
         help='scope prefix for metrics generated by this tool')
     add_parser_argument(parser,
                         'monitoring_enabled',
                         defaults,
                         False,
                         type=bool,
                         help='Enable monitoring to stackdriver.')
     add_parser_argument(
         parser,
         'monitoring_flush_frequency',
         defaults,
         15,
         help='Frequency at which to push metrics in seconds.')
     add_parser_argument(parser,
                         'monitoring_system',
                         defaults,
                         'file',
                         choices=['file', 'influxdb'],
                         help='Where to store metrics.')
 def init_argument_parser(parser, defaults):
   InMemoryMetricsRegistry.init_argument_parser(parser, defaults)
   add_parser_argument(parser, 'influxdb_url', defaults,
                       'http://localhost:8086',
                       help='Server address to push metrics to.')
   add_parser_argument(parser, 'influxdb_database', defaults,
                       'SpinnakerBuildTool',
                       help='Influxdb to push metrics to.')
   add_parser_argument(
       parser, 'influxdb_reiterate_gauge_secs', defaults, 60,
       help='Reiterate gauge values for the specified period of seconds.'
            ' This is because when they get chunked into time blocks, the'
            'values become lost, in particular settling back to 0.')
Exemplo n.º 6
0
 def init_argument_parser(parser, defaults):
   """Init argparser with metrics-related options."""
   InMemoryMetricsRegistry.init_argument_parser(parser, defaults)
   InfluxDbMetricsRegistry.init_argument_parser(parser, defaults)
   add_parser_argument(
       parser, 'monitoring_enabled', defaults, False, type=bool,
       help='Enable monitoring to stackdriver.')
   add_parser_argument(
       parser, 'monitoring_flush_frequency', defaults, 15,
       help='Frequency at which to push metrics in seconds.')
   add_parser_argument(
       parser, 'monitoring_system', defaults, 'file',
       choices=['file', 'influxdb'],
       help='Where to store metrics.')
   add_parser_argument(
       parser, 'monitoring_context_labels', defaults, None,
       help='A comma-separated list of additional name=value'
            ' labels to add to each event to associate them together.'
            ' (e.g. version=release-1.2.x)')
Exemplo n.º 7
0
 def init_argument_parser(parser, defaults):
     """Init argparser with metrics-related options."""
     InMemoryMetricsRegistry.init_argument_parser(parser, defaults)
     InfluxDbMetricsRegistry.init_argument_parser(parser, defaults)
     add_parser_argument(
         parser,
         "monitoring_enabled",
         defaults,
         False,
         type=bool,
         help="Enable monitoring to stackdriver.",
     )
     add_parser_argument(
         parser,
         "monitoring_flush_frequency",
         defaults,
         15,
         help="Frequency at which to push metrics in seconds.",
     )
     add_parser_argument(
         parser,
         "monitoring_system",
         defaults,
         "file",
         choices=["file", "influxdb"],
         help="Where to store metrics.",
     )
     add_parser_argument(
         parser,
         "monitoring_context_labels",
         defaults,
         None,
         help="A comma-separated list of additional name=value"
         " labels to add to each event to associate them together."
         " (e.g. version=release-1.2.x)",
     )