Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add site-specific IaaS metrics

  • Loading branch information...
commit b8d9afd091a56046bc570d7f8f2ca739991e2bd5 1 parent cd8277f
@priteau priteau authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 epu/provisioner/core.py
View
4 epu/provisioner/core.py
@@ -459,6 +459,8 @@ def _launch_one_group(self, spec, nodes, caller=None):
try:
self.statsd_client.timing('provisioner.run_instances.timing', (after - before) * 1000)
self.statsd_client.incr('provisioner.run_instances.count')
+ self.statsd_client.timing('provisioner.run_instances.%s.timing' % site_name, (after - before) * 1000)
+ self.statsd_client.incr('provisioner.run_instances.%s.count' % site_name)
except:
log.exception("Failed to submit metrics")
except timeout, t:
@@ -675,6 +677,8 @@ def _query_one_site(self, site, nodes, caller=None):
try:
self.statsd_client.timing('provisioner.list_instances.timing', (after - before) * 1000)
self.statsd_client.incr('provisioner.list_instances.count')
+ self.statsd_client.timing('provisioner.list_instances.%s.timing' % site, (after - before) * 1000)
+ self.statsd_client.incr('provisioner.list_instances.%s.count' % site)
except:
log.exception("Failed to submit metrics")
except timeout:
Please sign in to comment.
Something went wrong with that request. Please try again.