blob: 2b7a224a4a2b25397c783bab992fd539fa7b226e [file] [log] [blame] [view]
@PLUGIN@ configuration
======================
The @PLUGIN@
------------
The plugin does not require any configuration at all and exposes an HTTP
endpoint for querying the service status.
```
GET /config/server/healthcheck~status
)]}'
{
"ts": 139402910202,
"elapsed": 100,
"reviewdb": {
"ts": 139402910202,
"elapsed": 50,
"result": "passed"
},
"projectslist": {
"ts": 139402910202,
"elapsed": 100,
"result": "passed"
},
"auth": {
"ts": 139402910202,
"elapsed": 80,
"result": "passed"
}
}
```
Settings
--------
The plugin allows to customize its behaviour through a specific
`healthcheck.config` file in the `$GERRIT_SITE/etc` directory.
Each section of the form `[healthcheck "<checkName>"]` can tailor the
behaviour of an individual `<checkName>`. The section `[healthcheck]`
defines the global defaults valid for all checks.
The following check names are available:
- `reviewdb` : check connectivity and ability to query ReviewDb
- `jgit` : check connectivity to the filesystem and ability to open a JGit ref and object
- `projectslist` : check the ability to list projects with their descriptions
- `auth`: check the ability to authenticate with username and password
Each check name can be disabled by setting the `enabled` parameter to **false**,
by default this parameter is set to **true**
The following parameters are available:
- `healthcheck.<checkName>.timeout` : Specific timeout (msec) for the
healthcheck to complete. Zero means that there is no timeout.
Default: 500
- `healthcheck.<checkName>.query` : Query to be executed for extracting
elements from the check.
Default: status:open
- `healthcheck.<checkName>.limit` : Maximum number of elements to retrieve from
the the check results.
Default: 10
- `healthcheck.jgit.project` : A project name to check for accessibility of its refs/meta/config.
Multiple occurrences are allowed to configure more projects, in addition
to the default ones that are always included.
Default: All-Projects, All-Users
- `healthcheck.auth.username` : Username to use for authentication
Default: healthcheck
- `healthcheck.auth.password` : Password to use for authentication
Default: no password