Send replication time metric to Gerrit's MetricsRegitry

With this plug-in execution times for successful replications are
reported to Gerrit's MetricRegistry. Metrics are separated per
destination.

This data can then be transported to other backends like Graphite.

Values currently reported:

plugins/replication/<my site>/execution_time
             count = 1
         mean rate = 0.01 calls/second
     1-minute rate = 0.07 calls/second
     5-minute rate = 0.16 calls/second
    15-minute rate = 0.19 calls/second
               min = 56.24 milliseconds
               max = 56.24 milliseconds
              mean = 56.24 milliseconds
            stddev = 0.00 milliseconds
            median = 56.24 milliseconds
              75% <= 56.24 milliseconds
              95% <= 56.24 milliseconds
              98% <= 56.24 milliseconds
              99% <= 56.24 milliseconds
            99.9% <= 56.24 milliseconds

Change-Id: I20b1d1ef376a41f72de7b7a70994be0cac9a1993
1 file changed
tree: 72d18d0c726d50bb2e492dd7df6929ffc67b506d
  1. .settings/
  2. src/
  3. .gitignore
  4. BUCK
  5. LICENSE