commit | b25471c1372e85ad36e90a98f91eef0e3c237b4d | [log] [tgz] |
---|---|---|
author | Fabio Ponciroli <ponch78@gmail.com> | Wed Sep 07 09:32:23 2022 +0200 |
committer | Fabio Ponciroli <ponch78@gmail.com> | Wed Sep 21 13:42:30 2022 -0500 |
tree | 785030be4b517d8c611397edcfaf1b2aa593cd89 | |
parent | b3d64ea970302a83313465992105004ebc934b7c [diff] |
Replace Map with MetricsRecord to group metrics Added a MetricsRecord class to group the metrics collected by the File System collector and to improve code readability. Change-Id: I9a0528c8a90e4ccbeb0cfde4db452b410f4879ae
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.