Button in dashboard

#1

I want to get skill.
if button is clicked in dashboard, data(like gps coordinate) will be sent to somewhere. how can I get this skill?

If my explanation is not enough, ask me again,plz

#2

Using the Text panel in HTML mode, you can add any HTML and JavaScript.

#3

thanks, but I want to use in Graph pannel. How can I use it?

#4

Have you looked at Drill Down links?

http://docs.grafana.org/features/panels/graph/#drilldown-detail-link

#5

<button class="btn navbar-button gf-timepicker-nav-btn" onClick="location.href='insert url here'">A Button</button>

You can also use grafanas css class :smiley:

#6

Where we need to add this code?

#7

Use daniellee post to see where to insert the code.

You create a text widget, select settings, options tab, mode html and insert the html code.

#8

Can’t make it work. JS isn’t allowed now?

#9

It is turned off by default for text panels to improve security. If you want to turn it back on, then change this setting in your config file for Grafana:

1 Like