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

Unified Diff: appengine/third_party/gae_ts_mon/README.md

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/swarming/ts_mon_metrics.py ('k') | appengine/third_party/gae_ts_mon/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/third_party/gae_ts_mon/README.md
diff --git a/appengine/third_party/gae_ts_mon/README.md b/appengine/third_party/gae_ts_mon/README.md
index bc9d213a5674e3ad429f6e20654e7d204dc538e9..9c181283a2af25799d23b4f6262cb7ecb513d35d 100644
--- a/appengine/third_party/gae_ts_mon/README.md
+++ b/appengine/third_party/gae_ts_mon/README.md
@@ -76,7 +76,10 @@ for more information.
from infra_libs import ts_mon
class MyHandler(webapp2.RequestHandler):
- goats_teleported = ts_mon.CounterMetric('goats/teleported')
+ goats_teleported = ts_mon.CounterMetric(
+ 'goats/teleported',
+ 'Number of goats teleported',
+ None)
def get(self):
count = goat_teleporter.teleport()
@@ -119,8 +122,8 @@ globally. Here's an example of how to set up a global metric:
'task_num': 0, # instance ID
}
- remaining = ts_mon.GaugeMetric('goats/remaining')
- in_flight = ts_mon.GaugeMetric('goats/in_flight)
+ remaining = ts_mon.GaugeMetric('goats/remaining', '...', None)
+ in_flight = ts_mon.GaugeMetric('goats/in_flight', '...', None)
def set_global_metrics():
# Query some global resource, e.g. Datastore
« no previous file with comments | « appengine/swarming/ts_mon_metrics.py ('k') | appengine/third_party/gae_ts_mon/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698