0

I have a grafana dashboard and I want to extract the url and use it in grafana data links .is there a variable I can use in order to get the url.

Example: I want to extract this https://bingoke.com and use it in datalinks

enter image description here

I want to replace localhost with https://bingoke.com which comes from the url using some variable . not hard coding it.

enter image description here

1 Answers1

0

Don't use absolute URL e.g. https://bingoke.com/?queueId=..., but relative URL instead e.g. /?queueId=..., so browser will use current protocol/domain automatically.

Jan Garaj
  • 25,598
  • 3
  • 38
  • 59
  • 1
    Yes it works but now on the datalink clicked the url appends /grafana . eg https://bingoke.com/grafana/queueId=... . I only want when clicked to direct me to https://bingoke.com/queueId=... but it seems its also appending /grafana . – Abraham Lugonzo Jun 15 '22 at 09:29
  • 1
    @AbrahamLugonzo naive workaround: use path tracing, so `/../?queueId=...` – Jan Garaj Jun 15 '22 at 10:15
  • @JanGaraj Thanks a lot! Where can I read more about path tracing? – bobah75 Sep 23 '22 at 10:27