gatus icon indicating copy to clipboard operation
gatus copied to clipboard

Feature: Show full endpoint.url somewhere in the ui

Open vanhoutenbos opened this issue 2 years ago • 3 comments

Describe the feature request

Hi!

It would be nice to be able to view the exact url the endpoint is pinging, not just the domain. For example on the endpoint page it would be nice to have an href text with the exact url and being able to click it!

If possible I would love to help adding this feature!

Why do you personally want this feature to be implemented?

Currently I go into the config and copy the link from there but that's not always an option and requires extra effort

How long have you been using this project?

Quite a while

Additional information

No response

vanhoutenbos avatar Aug 24 '23 16:08 vanhoutenbos

Thing is, while adding a configuration in endpoints[].ui to show the full url is a good idea, it wouldn't provide a consistent experience.

For instance, what if the endpoint requires a specific header? Or what if the endpoint has a request body? What if there's a lot of query parameters, which would force us to trim (at least visually) the URL?

Instead, I'm going to suggest an alternative, but it would be contingent on the 2nd implementation suggestion I made here being implemented. If it is implemented, then you could add a menu element of type curl that would allow you to generate the curl needed to query the endpoint locally.

Of course, it would be a per-endpoint configuration (since there may be some private endpoints you don't want people to be able to generate a curl command for), but that'd be an option.

TwiN avatar Sep 02 '23 20:09 TwiN

This sounds like a good solution, I understand the challenge with all the options you have in the tool! Most monitoring we do are quite basic (http call to an endpoint and waiting for 200 OK)

vanhoutenbos avatar Sep 28 '23 08:09 vanhoutenbos