grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.51k stars 289 forks source link

Moble App: Make the external Grafana URL customizable when using the "share" function #4484

Open ChristianCiach opened 5 months ago

ChristianCiach commented 5 months ago

What would you like to see!

When sharing alerts from within the Android app, the constructed URL seems to be based on the environment variable GRAFANA_API_URL of the oncall-engine process.

Since our Grafana runs inside the same cluster as the Oncall engine, we would like to use GRAFANA_API_URL=http://grafana.oncall.svc.cluster.local:8080 for the internal communication to the Grafana API, but the mobile app should use an external URL (like https://grafana.my-company.com) when using the share function to share alert groups.

At the moment, it doesn't seem to be possible to configure a separate (external) Grafana URL that should be used by the mobile app.

We are currently using the latest version of Oncall, which is v1.6.2.

Product Area

Mobile App

Anything else to add?

Even though I labeled this issue with part:mobile, I realize that any code change most likely won't affect the mobile app itself. I guess the mobile app just uses the URL that is part of the received alert, so any change to make this URL customizable will most likely affect the backend.

github-actions[bot] commented 5 months ago

The current version of Grafana OnCall, at the time this issue was opened, is v1.6.2. If your issue pertains to an older version of Grafana OnCall, please be sure to list it in the PR description. Thank you :smile:!

ChristianCiach commented 5 months ago

Most likely related to