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

Unified Diff: infra_libs/ts_mon/common/interface.py

Issue 2119933003: Add Configurable metric_name_prefix (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Add trailing slash 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 | « no previous file | infra_libs/ts_mon/common/metrics.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/common/interface.py
diff --git a/infra_libs/ts_mon/common/interface.py b/infra_libs/ts_mon/common/interface.py
index 61232e2e93dcd435aaef03ed293a0117feeeb465..df3f50286c7abadf96eb0f6d77d6b2a94555aea4 100644
--- a/infra_libs/ts_mon/common/interface.py
+++ b/infra_libs/ts_mon/common/interface.py
@@ -77,6 +77,8 @@ class State(object):
self.store = store_ctor(self)
# Cached time of the last flush. Useful mostly in AppEngine apps.
self.last_flushed = datetime.datetime.utcfromtimestamp(0)
+ # Metric name prefix
+ self.metric_name_prefix = '/chrome/infra/'
def reset_for_unittest(self):
self.metrics = {}
« no previous file with comments | « no previous file | infra_libs/ts_mon/common/metrics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698