commit | c79f46076424eaf16e62c66e3f03c487f91c2276 | [log] [tgz] |
---|---|---|
author | Fabio Ponciroli <ponch78@gmail.com> | Tue Jun 07 14:33:58 2022 +0200 |
committer | Fabio Ponciroli <ponch78@gmail.com> | Tue Jun 07 16:27:58 2022 +0200 |
tree | e9fc216c0b36a84df5dc039c2cdb6428b627687d | |
parent | e439080dceabe48ef80aaa684ad85b81dbb7a5f8 [diff] |
Add grace period to avoid collecting stats too often Some stats might be too heavy to compute. Added a grace period to avoid too frequent collection. Bug: Issue 15971 Change-Id: I54adfe04e8aec8f7fd1b7d8bf12367422b5e04e1
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.