8e8a55e650
The healthcheck plugin for Gerrit provides a convenient way to determine
the health of different functionalities and components of Gerrit. If
the endpoint provided by the plugin is pinged, it will execute a set
of checks and return either 200 if all checks passed or 500 if at least
one failed. It will also provide metrics that can be scraped by
Prometheus.
This change adds the option for Gerrit installations outside of Kubernetes
to install a sidecar container in the Prometheus deployment that every
30 s pings the healthcheck plugin's endpoint, thereby triggering the
checks. This is not provided for kubernetes, since there the ping should
be the task of the Kubernetes liveness probes.
The change additionally adds a dashboard displaying the status of the
healthcheck for each Gerrit instance over time.
Change-Id: Ieeedc4406b642e542c89679a8314d771ca0928af
69 lines
1.2 KiB
YAML
69 lines
1.2 KiB
YAML
gerritServers:
|
|
kubernetes:
|
|
- namespace: default
|
|
label:
|
|
name: app
|
|
value: gerrit-slave
|
|
containerName: gerrit-slave
|
|
port: 8080
|
|
username: admin
|
|
password: secret
|
|
other:
|
|
- host: gerrit.example.com
|
|
username: admin
|
|
password: secret
|
|
healthcheck: false
|
|
promtail:
|
|
storagePath: /var/promtail
|
|
logPath: /var/gerrit/logs
|
|
namespace: namespace
|
|
tls:
|
|
skipVerify: true
|
|
caCert:
|
|
monitoring:
|
|
prometheus:
|
|
server:
|
|
host: prometheus.example.com
|
|
username:
|
|
password:
|
|
tls:
|
|
cert:
|
|
key:
|
|
alertmanager:
|
|
slack:
|
|
apiUrl: https://hooks.slack.com/services/xxx/xxx
|
|
channel: '#alerts'
|
|
grafana:
|
|
host: grafana.example.com
|
|
tls:
|
|
cert:
|
|
key:
|
|
admin:
|
|
username: admin
|
|
password: secret
|
|
ldap:
|
|
enabled: false
|
|
host:
|
|
port: ""
|
|
password:
|
|
bind_dn:
|
|
accountBases: "[]"
|
|
groupBases: "[]"
|
|
dashboards:
|
|
editable: false
|
|
logging:
|
|
loki:
|
|
host: loki.example.com
|
|
username:
|
|
password:
|
|
s3:
|
|
protocol: https
|
|
host: s3.eu-de-1.example.com
|
|
accessToken: abcd
|
|
secret: "1234"
|
|
bucket: bucket
|
|
region: eu-de-1
|
|
tls:
|
|
cert:
|
|
key:
|