commit | 6f2cd3d069183825494c6ba755eb12eb4254650f | [log] [tgz] |
---|---|---|
author | Fabio Ponciroli <ponch78@gmail.com> | Fri Sep 23 13:30:03 2022 -0500 |
committer | Fabio Ponciroli <ponch78@gmail.com> | Fri Sep 23 18:52:14 2022 +0000 |
tree | 90a0b13e7f3bec9bbc761961ef6f4ebe0afc38f7 | |
parent | 4f825460ddc9ec57868a9a65ec2749f11e7c89ca [diff] |
Register metrics explicitly Metric registration with a `Supplier` wasn't properly working. Bug: Issue 16259 Change-Id: I99449647f286645cf81ea489efb6e5f74eaad224
This plugin allows a systematic collection of repository metrics. Metrics are updated upon a ref-update
receive.
Clone or link this plugin to the plugins directory of Gerrit‘s source tree, and then run bazel build on the plugin’s directory.
Example:
git clone --recursive https://gerrit.googlesource.com/gerrit git clone https://gerrit.googlesource.com/plugins/git-repo-metrics pushd gerrit/plugins && ln -s ../../git-repo-metrics . && popd cd gerrit && bazel build plugins/git-repo-metrics
The output plugin jar is created in:
bazel-genfiles/plugins/git-repo-metrics/git-repo-metrics.jar
Copy the git-repo-metrics.jar into the Gerrit's /plugins directory and wait for the plugin to be automatically loaded.
More information about the plugin configuration can be found in the config.md file.