-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAUSED Sensor will not been shown in /metrics page #3579
Comments
I believe it's by design, metrics is not supposed to show stale data. https://serverfault.com/questions/1005300/do-prometheus-metrics-have-some-sort-of-freshness-lifetime |
After prolonged observation, this is probably not a mistake:
It would be very useful to be able to retrieve a JSON with all current monitor values. |
We already have the following APIs. Do they solve your usecase?
|
@RK62 |
Continued in #1928 |
🛡️ Security Policy
Description
Sensors that are on PAUSE are not listed on the /metrics page under "monitor_status".
States MAINTENANCE, UP and DOWN are always complete.
The sensor type does not matter.
The number on the "QuickStats" page is also correct.
If you set a group to pause, QuickStats will show the correct number including the underlying sensors, but the /metrics page will show them as UP.
👟 Reproduction steps
Set sensors to State PAUSE and call /metrics page
The call of the /metric page was authorised by API-KEY.
👀 Expected behavior
The State / Counter of QuickStats und /Metrices page should be the same.
😓 Actual Behavior
The Information of sensors and /metric page differs.
🐻 Uptime-Kuma Version
1.22.1
💻 Operating System and Arch
Docker: louislam/uptime-kuma:1.22.1
🌐 Browser
Edge
🐋 Docker Version
20.10.25
🟩 NodeJS Version
No response
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: