Reputation: 95
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
I want to replace localhost with https://bingoke.com which comes from the url using some variable . not hard coding it.
Upvotes: 0
Views: 1122
Reputation: 28656
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.
Upvotes: 1