Chromium Code Reviews| Index: infra_libs/ts_mon/config.py |
| diff --git a/infra_libs/ts_mon/config.py b/infra_libs/ts_mon/config.py |
| index 4e0b25d2fd1a8aec1bb65b3e90d5b52b22e5cc51..25b526e356ee9f88c2e9eea6077b04a39109f36e 100644 |
| --- a/infra_libs/ts_mon/config.py |
| +++ b/infra_libs/ts_mon/config.py |
| @@ -159,6 +159,10 @@ def add_argparse_options(parser): |
| help='number (e.g. for replication) of this instance of this task ' |
| '(default: %(default)s)') |
| + parser.add_argument( |
| + '--ts-mon-metric-name-prefix', |
| + default='/chrome/infra', |
|
Sergey Berezin
2016/07/06 17:49:12
Looks like you want '/chrome/infra/' (trailing sla
|
| + help='metric name prefix for all metrics (default: %(default)s)') |
| def process_argparse_options(args): |
| """Process command line arguments to initialize the global monitor. |
| @@ -212,6 +216,7 @@ def process_argparse_options(args): |
| hostname, |
| args.ts_mon_task_number) |
| + interface.state.metric_name_prefix = args.ts_mon_metric_name_prefix |
| interface.state.global_monitor = monitors.NullMonitor() |
| if endpoint.startswith('file://'): |