Brand new to Grafana: Finding the UID of a dashboard

I am trying to create a tool which would grab a link to the dashboard with the right filters set. To do this, I think I need to grab the UID of the dashboard I am interested in. However, when I try to view it through Settings -> View JSON, I don’t see the UID. Two questions:

  • Can I actually create a link dynamically adjusting the date range/times
  • If I do need the UID, how do I get it? If I don’t, how should I identify the dashboard?


You need to save the dashboard, then a UID will be generated. You can create dashboards thru the api and optionally provide a UID yourself. Also, if you retrieve a saved dashboard from the API you’ll get back the base url which you should be able to use for creating links.