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

Unified Diff: appengine/gce-backend/metrics.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 | « no previous file | appengine/machine_provider/metrics.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/gce-backend/metrics.py
diff --git a/appengine/gce-backend/metrics.py b/appengine/gce-backend/metrics.py
index 36efe76c9dc7791a6a6a0795962b0e61ac783a11..072e7e837255e633c39a8c68652e83dc04289b10 100644
--- a/appengine/gce-backend/metrics.py
+++ b/appengine/gce-backend/metrics.py
@@ -27,22 +27,26 @@ GLOBAL_TARGET_FIELDS = {
GLOBAL_METRICS = {
'config_max_instances': gae_ts_mon.GaugeMetric(
'machine_provider/gce_backend/config/instances/max',
- description='Maximum number of instances currently configured.',
+ 'Maximum number of instances currently configured.',
+ [gae_ts_mon.StringField('instance_template')]
),
'config_min_instances': gae_ts_mon.GaugeMetric(
'machine_provider/gce_backend/config/instances/min',
- description='Minimum number of instances currently configured.',
+ 'Minimum number of instances currently configured.',
+ [gae_ts_mon.StringField('instance_template')]
),
'instances': gae_ts_mon.GaugeMetric(
'machine_provider/gce_backend/instances',
- description='Current count of the number of instances.',
+ 'Current count of the number of instances.',
+ [gae_ts_mon.StringField('instance_template')]
),
}
config_valid = gae_ts_mon.BooleanMetric(
'machine_provider/gce_backend/config/valid',
- description='Whether or not the current config is valid.',
+ 'Whether or not the current config is valid.',
+ [gae_ts_mon.StringField('config')],
)
« no previous file with comments | « no previous file | appengine/machine_provider/metrics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698