louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
59.47k stars 5.32k forks source link

Add URL shortcut to `docker` monitors #3784

Open dreamwhite opened 1 year ago

dreamwhite commented 1 year ago

⚠️ Please verify that this feature request has NOT been suggested before.

🏷️ Feature Request Type

UI Feature

🔖 Feature description

When visiting the monitored service page (e.g. /dashboard/9) it would be useful to display a Visit link button.

✔️ Solution

This would be especially useful for monitored websites

❓ Alternatives

No response

📝 Additional Context

No response

CommanderStorm commented 1 year ago

What do you mean by the said button. (where should that button link)

Are you refering to this clickable link by any chance? image

dreamwhite commented 1 year ago

Exactly. I couldn't find a way to add such link.

Seems like that when selecting "Docker container" there's no chance...

I have 20 docker containers and each time remembering the url (which is basically the uptime kuma host + a custom port) is stressful. Is this achievable by any chance?

CommanderStorm commented 1 year ago

Currently, we don't quite have the information to construct a link to your other docker containers afaik. We don't know which port on localhost or which URL from the outside maps to each container ⇒ we currently don't display something like this.

If you'd like to contribute a fix for this, here is our contribution guide: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

Here is the code for the link-construction

https://github.com/louislam/uptime-kuma/blob/499429858c6c4926dbeb3511bed45744ea98fd74/src/pages/Details.vue#L30

dreamwhite commented 1 year ago

Thank you so much for your reply! I think that the logic behind my reasoning is similar to how is already done with http. I'll let you know once I figure it out