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

Unified Diff: infra/services/sysmon/puppet_metrics.py

Issue 2111473003: Issue 623854: Support unit annotations in ts_mon metrics (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Split off go changes to a separate CL: https://codereview.chromium.org/2125943003 Created 4 years, 5 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 | « infra/services/sysmon/android_device_metrics.py ('k') | infra/services/sysmon/system_metrics.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/services/sysmon/puppet_metrics.py
diff --git a/infra/services/sysmon/puppet_metrics.py b/infra/services/sysmon/puppet_metrics.py
index c6e41e870392e1df1efb4d89f4bc54c3922aaed3..5c4ac963fd17ccf4d64136b34fccb6f2affecefd 100644
--- a/infra/services/sysmon/puppet_metrics.py
+++ b/infra/services/sysmon/puppet_metrics.py
@@ -28,8 +28,11 @@ resources = ts_mon.GaugeMetric('puppet/resources',
description='Number of resources known by the puppet client in its last '
'run')
times = ts_mon.FloatMetric('puppet/times',
- description='Time taken to perform various parts of the last puppet run')
-age = ts_mon.FloatMetric('puppet/age', description='Time since last run')
+ description='Time taken to perform various parts of the last puppet run',
+ units=ts_mon.MetricsDataUnits.SECONDS)
+age = ts_mon.FloatMetric('puppet/age',
+ description='Time since last run',
+ units=ts_mon.MetricsDataUnits.SECONDS)
def _lastrunfile(): # pragma: no cover
« no previous file with comments | « infra/services/sysmon/android_device_metrics.py ('k') | infra/services/sysmon/system_metrics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698