louislam / uptime-kuma

A fancy self-hosted monitoring tool

Home Page:https://uptime.kuma.pet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prometheus metric `monitor_cert_days_remaining` missing after update to 1.23.12

DerGary opened this issue Β· comments

πŸ“‘ I have found these related issues/pull requests

πŸ›‘οΈ Security Policy

Description

after update to 1.23.12 monitor_cert_days_remaining is not exported anymore, it is still shown in the dashboard.

πŸ‘Ÿ Reproduction steps

use 1.23.12 and create monitor for an https website

πŸ‘€ Expected behavior

monitor_cert_days_remaining is exported as in version 1.23.11

πŸ˜“ Actual Behavior

the monitor_cert_days_remaining metric is missing

🐻 Uptime-Kuma Version

1.23.12

πŸ’» Operating System and Arch

debian/docker

🌐 Browser

chrome

πŸ–₯️ Deployment Environment

  • Runtime: Docker 24.0.7
  • Database: embedded
  • Filesystem used to store the database on:
  • number of monitors: 5

πŸ“ Relevant log output

No response

Are you using a proxy or plain http?

Plain https

This bug was likely introduced by #4630 and is likely caused by a timing issue between

options.httpsAgent.on("keylog", (line, tlsSocket) => {
tlsInfo = checkCertificate(tlsSocket);
});

and

this.prometheus?.update(bean, tlsInfo);

I have a dashboard in grafana, and I don't have the stats (for the metrics below) anymore since the Update

monitor_cert_is_valid and monitor_cert_days_remaining