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

Unified Diff: appengine/swarming/swarming_bot/bot_code/bot_main.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
« no previous file with comments | « appengine/machine_provider/metrics.py ('k') | appengine/swarming/ts_mon_metrics.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/swarming_bot/bot_code/bot_main.py
diff --git a/appengine/swarming/swarming_bot/bot_code/bot_main.py b/appengine/swarming/swarming_bot/bot_code/bot_main.py
index d74398b59a11c9baa1be8db40e1f15c1c276ec38..0687d6c4965f19502b157b616c7d5d13cab52f2a 100644
--- a/appengine/swarming/swarming_bot/bot_code/bot_main.py
+++ b/appengine/swarming/swarming_bot/bot_code/bot_main.py
@@ -109,8 +109,12 @@ _bucketer = ts_mon.GeometricBucketer(growth_factor=10**0.07,
num_finite_buckets=100)
hooks_durations = ts_mon.CumulativeDistributionMetric(
- 'swarming/bots/hooks/durations', bucketer=_bucketer,
- description='Duration of bot hook calls in ms',
+ 'swarming/bots/hooks/durations',
+ 'Duration of bot hook calls in ms', [
+ ts_mon.StringField('hookname'),
+ ts_mon.StringField('pool'),
+ ],
+ bucketer=_bucketer,
units=ts_mon.MetricsDataUnits.MILLISECONDS)
« no previous file with comments | « appengine/machine_provider/metrics.py ('k') | appengine/swarming/ts_mon_metrics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698