Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: client/third_party/infra_libs/ts_mon/config.py

Issue 2705273003: Roll infra_libs and gae_ts_mon in luci-py, and add field_specs to all metrics (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/third_party/infra_libs/ts_mon/config.py
diff --git a/client/third_party/infra_libs/ts_mon/config.py b/client/third_party/infra_libs/ts_mon/config.py
index f78d5cea5369a63f3dcec9a098cc2f82e2b81bc0..51232b2ee72a36f09673caffa5308706682cc97b 100644
--- a/client/third_party/infra_libs/ts_mon/config.py
+++ b/client/third_party/infra_libs/ts_mon/config.py
@@ -243,14 +243,15 @@ def process_argparse_options(args):
project = url.netloc
topic = url.path.strip('/')
interface.state.global_monitor = monitors.PubSubMonitor(
- credentials, project, topic, use_instrumented_http=True,
- ca_certs=args.ts_mon_ca_certs)
+ monitors.CredentialFactory.from_string(credentials), project, topic,
+ use_instrumented_http=True, ca_certs=args.ts_mon_ca_certs)
else:
logging.error('ts_mon monitoring is disabled because credentials are not '
'available')
elif endpoint.startswith('https://'):
interface.state.global_monitor = monitors.HttpsMonitor(
- endpoint, credentials, ca_certs=args.ts_mon_ca_certs)
+ endpoint, monitors.CredentialFactory.from_string(credentials),
+ ca_certs=args.ts_mon_ca_certs)
elif endpoint.lower() == 'none':
logging.info('ts_mon monitoring has been explicitly disabled')
else:
« no previous file with comments | « client/third_party/infra_libs/ts_mon/common/standard_metrics.py ('k') | client/third_party/infra_libs/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698