commit | a2c3f297295360647673761605bebfd5f7033e7c | [log] [tgz] |
---|---|---|
author | Fabio Ponciroli <ponch78@gmail.com> | Thu Jun 02 19:52:03 2022 +0200 |
committer | Fabio Ponciroli <ponch78@gmail.com> | Mon Jun 06 22:03:54 2022 +0200 |
tree | 8b8b0e1766525e42a3e0b63417ab70287e20d7c4 | |
parent | eede6a4d0b0bbf72eba0d5798c49083854a79a58 [diff] |
Make GitRepoMetricsCache a Singleton Refactor GitRepoMetricsCache to be a singleton and add accessor methods to access the metrics. Change-Id: I48ab46c56f86dd819b3ac9c2b60b306f93513d06
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.