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

Unified Diff: client/third_party/infra_libs/logs/logs.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 | « client/third_party/infra_libs/httplib2_utils.py ('k') | client/third_party/infra_libs/ts_mon/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/third_party/infra_libs/logs/logs.py
diff --git a/client/third_party/infra_libs/logs/logs.py b/client/third_party/infra_libs/logs/logs.py
index 2a32786d825f49164ea6ca0c515281d650b3f678..dcd59895f61a82e77b1b15a73467bddfca106461 100644
--- a/client/third_party/infra_libs/logs/logs.py
+++ b/client/third_party/infra_libs/logs/logs.py
@@ -41,10 +41,12 @@ import textwrap
import pytz
-from infra_libs.ts_mon.common.metrics import CumulativeMetric
+from infra_libs.ts_mon.common import metrics
-log_metric = CumulativeMetric(
- 'proc/log_lines', description="Number of log lines, per severity level.")
+log_metric = metrics.CumulativeMetric(
+ 'proc/log_lines',
+ 'Number of log lines, per severity level.',
+ [metrics.StringField('level')])
if sys.platform.startswith('win'): # pragma: no cover
DEFAULT_LOG_DIRECTORIES = os.pathsep.join([
« no previous file with comments | « client/third_party/infra_libs/httplib2_utils.py ('k') | client/third_party/infra_libs/ts_mon/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698