mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
monitor_uptime_ratio and monitor_response_time_seconds still exposed in metrics when paused/deleted #4693
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#4693
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tr4nt0r on GitHub (Feb 10, 2026).
📑 I have found these related issues/pull requests
Possibly related: #6903
🛡️ Security Policy
📝 Description
monitor_uptime_ratioandmonitor_response_time_secondsstill exposed in metrics when paused👟 Reproduction steps
Delete or pause a monitor
👀 Expected behavior
When a monitor is paused or deleted, it is not exposed in
/metricsendpoint anymore😓 Actual Behavior
monitor_uptime_ratioandmonitor_response_time_secondsare still exposed in metrics when monitor is paused or deleted, only a restart cleans up the metrics🐻 Uptime-Kuma Version
2.1.0
💻 Operating System and Arch
CentOS Linux release 7.9.2009 (Core)
🌐 Browser
Chrome 44.0.7559.132
🖥️ Deployment Environment
4📝 Relevant log output
@CommanderStorm commented on GitHub (Feb 10, 2026):
A monitor does not suddenly loose its uptime when paused. It still has uptime, it is just fixed.
No bug that I can see
@tr4nt0r commented on GitHub (Feb 10, 2026):
@CommanderStorm Previously (<2.1.0) monitors were not exposed at all in the prometheus metrics when they were paused. Now when a monitor is paused all other metrics values stop being exposed, except these two. When I do a restart, the change takes effect and none of the metrics are exposed. Maybe a caching issue. Could it be that
monitor_uptime_ratioandmonitor_response_time_secondsare served from cache and the others are not?@CommanderStorm commented on GitHub (Feb 10, 2026):
I don't know and would need to have a deeper look.
That part of the system is particularly hard to work with and fairly undertested
@tr4nt0r commented on GitHub (Feb 10, 2026):
I dived a bit into the code, but I'm not familiar with javascript/nodejs, so I'm not gonna submit a PR, but this should fix the issue. The
removemethod is responsible for removing the metrics when paused, but this does not happen as expected for the aforementioned values.@tr4nt0r commented on GitHub (Feb 19, 2026):
@CommanderStorm Can we reopen this issue until it is fixed? Or do you still consider this not a bug?
@CommanderStorm commented on GitHub (Feb 19, 2026):
We close bugs once they are fixed in nigtly.
Too hard to manage otherwise.
@tr4nt0r commented on GitHub (Feb 19, 2026):
nightly is master branch, right? Then it's still not fixed. PR is still open #6915 (Tut mir echt leid, wenn ich dich nerve 🥺)
@CommanderStorm commented on GitHub (Feb 19, 2026):
Yea, sorry. Currently exam phase here, so did not have time to test if that works (it looks good, but time..)
@johntdyer commented on GitHub (Feb 23, 2026):
@CommanderStorm ... seems to pass https://github.com/louislam/uptime-kuma/pull/6915 . Does that mean its about to proceed and be merged? Would love to see this fixed so I can stop manually managing the fault state in home assistant.
@CommanderStorm commented on GitHub (Feb 23, 2026):
Sorry, I still have exams.
You mean you have tested the PR and it works as expected?