commit | 2ccb5b3b13434d857d69fce1646007dfc9bede8e | [log] [tgz] |
---|---|---|
author | Fabio Ponciroli <ponch78@gmail.com> | Wed Aug 24 16:07:41 2022 +0200 |
committer | Fabio Ponciroli <ponch78@gmail.com> | Mon Sep 12 18:42:53 2022 +0200 |
tree | cd0b1180a5771a4b79d7da8b9070e168d6a11a8b | |
parent | 288c2ea3e118b0364603f69ee64b1a6cce6da9fe [diff] |
Add filesystem metrics Collect metrics from filesystem: - number of keep files - number of directories - number of empty directories - number of total files Bug: Issue 16223 Change-Id: I37a142a166c9beb164e72c6ac9e57e70b677a39a
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.