Add `is_gc_running_per_project_<repo_name>` metric

Introduce a Gerrit metric to track if a GC process is running
for specific projects. The metric checks for the presence of a
`gc.pid` file in the repository and ensures the file is not older
than the configured staleness period.

By default, the staleness period is 12 hours and can be customized
using the configuration:
`plugins.repo-repack-tracker.considerGcStaleAfter`.

Change-Id: Ib19541280a913eece34b96975412673c932a7370
2 files changed
tree: 851f4040fef74f937ecf1bf55c7df0bfe27b2cb5
  1. admin/
  2. multi-primary/
  3. replication/
  4. .gitignore
  5. README.md
README.md

Gerrit scripting plugins collection

Overview

This repository contains a collection of Gerrit scripting plugins that are intended to provide simple and useful extensions.

How to run the scripting plugins

Gerrit needs to be able to recognise the scripts syntax and being able to load them as plugins.

In order to be able to run Groovy scripts, you need to install first the Groovy scripting provider and then copy the Groovy scripts under your Gerrit /plugins directory.

Similarly for Scala scripts, you need to install the Scala scripting provider and then copy the Scala scripts under your Gerrit /plugins directory.

Administration Scripts

Gerrit multi-primary Scripts