mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
/metrics endpoint is not available when auth is enabled. #4571
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#4571
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 @keithellis74 on GitHub (Jan 2, 2026).
📑 I have found these related issues/pull requests
Not found any related issues
🛡️ Security Policy
📝 Description
Uptime-kuma, version 2.02, Docker install.
When Auth is disabled in settings the endpoint/metrics works as expected.
When Auth is enabled, the /metrics endpoint does not accept the basic auth credentials and reports 401 Unauthorised.
I tried with API key and I get the same, 401 Unauthorised.
I've had prometheus pulling these metrics with no problems with basic auth for a year or more. But recently basic auth has been failing and I'm unable to pull the metrics now.
👟 Reproduction steps
point browser to http://x.x.x.x/metrics Basic auth request fails.
a curl request responds as follows:
I know I've pasted a password in here, this is not a real password, I'm not using it.
👀 Expected behavior
Prometheus metrics provided.
😓 Actual Behavior
Auth error
🐻 Uptime-Kuma Version
2.0.2
💻 Operating System and Arch
Unraid 7.2.3 Docker Template. & DietPi Docker
🌐 Browser
Safari/Firefox
🖥️ Deployment Environment
27.5.1, build 9f9e405)v2.40.350📝 Relevant log output
@CommanderStorm commented on GitHub (Jan 2, 2026):
We have not touched any code in this area in a long while. (I think this might be user error -> changed this to an
helpissue. If it is a confirmed bug I can always retag)Can you reproduce this if you do a fresh
docker run ...?This is documented here, not quite sure how well this is documented in the UI.
Not sure what is happening there
@keithellis74 commented on GitHub (Jan 3, 2026):
Yes, I rolled back to a 1.xx revision and it still was not working. I get the same issue on a fresh install at another location. I’ll try a docker run install also and post back.
Regards,Keith Ellis