Check SSL Certificates expiry date and expose them as a Gerrit metrics.
The certificates-validity-checker plugin is configured in $site_path/etc/@PLUGIN@.config` files, example:
[validation] endpoint = hostname:443 endpoint = mail.hostname.com:993 checkInterval = 1 day
validation.checkInterval
: Frequency of the SSL certificates expiry date check operation Value should use common time unit suffixes to express their setting:
1 week
is treated as 7 days
)1 month
is treated as 30 days
)1 year
is treated as 365 days
) If a time unit suffix is not specified, hours
is assumed. Time intervals smaller than one hour are not supported. Default: 24 hoursvalidation.endpoint
: Specify for which endpoint SSL certificates expiry date should be checked and expose as a Gerrit metric. Endpoint format is : It can be provided more than once.
Currently, the metrics exposed are the following:
groovy_certificates_validity_checker_certificates_number_of_day_to_expire_per_endpoint_<hostname>