mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-09 23:24:07 -08:00
Add the new gauges to the prometheus handler
This commit is contained in:
parent
e7cc5340e5
commit
5eb4f55dfd
|
@ -8,6 +8,17 @@ const commonLabels = [
|
|||
'monitor_port',
|
||||
]
|
||||
|
||||
const monitor_cert_days_remaining = new PrometheusClient.Gauge({
|
||||
name: 'monitor_cert_days_remaining',
|
||||
help: 'The number of days remaining until the certificate expires',
|
||||
labelNames: commonLabels
|
||||
});
|
||||
|
||||
const monitor_cert_is_valid = new PrometheusClient.Gauge({
|
||||
name: 'monitor_cert_is_valid',
|
||||
help: 'Is the certificate still valid? (1 = Yes, 0= No)',
|
||||
labelNames: commonLabels
|
||||
});
|
||||
const monitor_response_time = new PrometheusClient.Gauge({
|
||||
name: 'monitor_response_time',
|
||||
help: 'Monitor Response Time (ms)',
|
||||
|
|
Loading…
Reference in a new issue