Merge pull request #1169 from jbenguira/patch-1

Fixed #1024
This commit is contained in:
Louis Lam 2022-01-19 14:41:15 +08:00 committed by GitHub
commit aba6cb2c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,9 @@ class Prometheus {
} }
try { try {
monitor_cert_days_remaining.set(this.monitorLabelValues, tlsInfo.certInfo.daysRemaining); if (tlsInfo.certInfo != null) {
monitor_cert_days_remaining.set(this.monitorLabelValues, tlsInfo.certInfo.daysRemaining);
}
} catch (e) { } catch (e) {
console.error(e); console.error(e);
} }