mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Support monitoring cloudflare zero trust tunnel connectivity status #2344
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#2344
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 @AndLindemann on GitHub (Jul 6, 2023).
⚠️ Please verify that this feature request has NOT been suggested before.
🏷️ Feature Request Type
New Monitor
🔖 Feature description
It'd be nice if Uptime Kuma could also monitor existing cloudflare zero trust tunnels for their current connection status.
The cloudflare API allows that via accountid + tunnel id + api token.
That way we could get alerts when one of our cloudflare tunnels goes down / is not connected to cloudflare anymore.
✔️ Solution
Use the cloudflare API to retrieve the tunnel status from cloudflare to see whether it is healthy and connected or not. Use the result to update the monitor status.
Related cloudflare API docs: https://developers.cloudflare.com/api/operations/cloudflare-tunnel-list-cloudflare-tunnels
In the result output there would be an array of result objects, where the "status" field is the relevant field for determining if the tunnel is healthy or not.
❓ Alternatives
No response
📝 Additional Context
The list of tunnels for your account can be found on the zero trust dashboard https://one.dash.cloudflare.com/ under Access -> Tunnels, there you can also find the tunnel id for each tunnel.
Homepage for example has a widget that does this and can show if the tunnel with the corresponding tunnel id is currently connected or not: https://gethomepage.dev/en/services/cloudflared/
But Homepage is not really a tool for monitoring, so there is still value in having it in uptime-kuma for proper monitoring and alerts.
@CommanderStorm commented on GitHub (Feb 11, 2024):
Related https://github.com/louislam/uptime-kuma/issues/3875
@GAS85 commented on GitHub (Oct 21, 2025):
This is quite easy to configure with current setup:
https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/tunnels. To get anACCOUNT_ID, visit https://one.dash.cloudflare.com and select your account. Copy ID from URLhttps://one.dash.cloudflare.com/yourAccountIDresult[0].statushealthyCloudflare One Connector: cloudflared ReadIf you have multiple tunnels, you can monitor each separately by updating query to
$.result[id="Tunnel ID"].status.