Add `active_users` metric

This change exposes a new metric called `active_users`.
This metric indicates the number of active users; a user is considered
active when its inactivity period is not greater than the value
defined in the `cache."@PLUGIN@.users_cache".maxAge`.

The metric uses the `users_cache` of the
track-and-disable-inactive-users-1.3.groovy plugin to allow exposure
of this value to the various monitoring and observability stacks.

Bug: Issue 370937461
Change-Id: Iaa1a78a7435f80508eeeceb6df762f6c789a0bdc
2 files changed
tree: 3c00a54fad96956583a9a1de7783232eab4562b4
  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