vgoklani
vgoklani

Reputation: 11746

How to link to external sites in a grafana table

How do I create a column of cells that contains hyperlinks to external sites?

I'm able to embed the text and pass it in via the data-feed, unfortunately grafana doesn't convert the plain text to a hyperlink.

For example, I'm able to create a cell with this text:

"https://www.google.com/search?q=hot+dogs"

How do I get grafana to convert it into a clickable hyperlink?

thanks!

Upvotes: 6

Views: 8709

Answers (2)

Guillaume Outters
Guillaume Outters

Reputation: 1146

As seen on Grafana issue 24482, the Table does not allow tuned formatting anymore (for multiple links, personalized label, icons, and so on).

The tip shown in the comments works, though: convert your table to table-old (JSON export, modify "type": "table" to "type": "table-old", JSON import, and then set your column to "String" with "Sanitize HTML" on)

Upvotes: 1

Jan Garaj
Jan Garaj

Reputation: 28656

Grafana 8.1.x with Table panel type:

  • create new Override, where you select/override column with that link value
  • add overide property Data links > Data links where Title and URL will have value ${__value.raw}

Upvotes: 14

Related Questions