moxious / triage

testing triage actions for issues
0 stars 1 forks source link

Alert urls: Grafana alert urls not working under subpath and reverse proxy #372

Open tonypowa opened 1 month ago

tonypowa commented 1 month ago

What happened?

Specific Grafana urls not working when serving Grafana under subpath.

Seems that the subpath is not populated in the links. This results to the links not working when using Reverse proxy.

What did you expect to happen?

Expected for the subpath to be populated in the links.

example:

the alert rule annotation links ( dashboard , panel ) links are as follows:

But they should also have the subpath populated

Screenshot from 2024-06-10 12-14-08

Did this work before?

Didn't work before.

Only works when using no reverse proxy.

How do we reproduce it?

  1. Setup grafana with subpath / reverse proxy

  2. Create an alert , and link with panel ( Dashboard/panel annotation links )

  3. Open the alerts ( https://intragate.ec.europa.eu/cc-grafana-prod/alerting/list)

  4. Navigate to the created alert and expand

  5. Try to click in one of the links ( Dashboard UID , Panel ID )

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana: oss - 10.3.3

OS: Podman - Rhel 8

Browser: Chrome

Grafana platform?

Docker

Datasource(s)?

Prometheus

tonypowa commented 1 month ago

This issue is a test copy of an issue in another repo. Original issue: https://github.com/grafana/grafana/issues/#88974

moxious commented 1 month ago

Summary: There is an open issue where Grafana alert URLs are malfunctioning when Grafana is served under a subpath with a reverse proxy, due to the subpath not being included in the links, which works correctly without a reverse proxy.

moxious commented 1 month ago

Hi @tonypowa, it seems like your issue relates to how Grafana handles subpaths under a reverse proxy setup. This could likely be an issue to address within the Backend Platform project, as it involves the server-side handling of URLs and proxy configurations. I suggest tagging this issue for the Backend Platform team to investigate further.

/label ~"Backend Platform project"

moxious commented 1 month ago

Elaboration:

Hello @tonypowa, thank you for reporting the issue with Grafana alert links under a subpath while using a reverse proxy. To help us further investigate and resolve the issue, could you please provide some additional details?

Once we have this information, we will be in a better position to assist you. Thanks!