Abraham Lugonzo
Abraham Lugonzo

Reputation: 95

Get FDQN from url and link it to grafana dashboards data link

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

Upvotes: 0

Views: 1122

Answers (1)

Jan Garaj
Jan Garaj

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

Related Questions