I have a table with 4 columns:
date, name, num_value, comment.
I can plot Grafana time series using this SQL:
select date, name, num_value as " " from T
and applying transformation: Prepare Time Series → Format → Multi-frame time series.
The tooltip shows (date, name, value).
I would like to add to tooltip the content of column “comment” in my table T.
How to do it?
There is similar feature request created on Aug 29, 2023:
opened 09:17AM - 29 Aug 23 UTC
type/feature-request
area/dashboard
area/panel/state-timeline
area/tooltip
**Why is this needed**:
When showing data on state timelines, I need to be ab… le to see some clarifying info on hover to e.g. understand the cause of the state or how a potential issue was resolved.
**What would you like to be added**:
I want to be able to specify fields to show in the tooltip on hover. Example from the community panel call Gannt, where this feature is indicated:
![image](https://github.com/grafana/grafana/assets/88662219/554502bc-c3fb-4e85-a23c-a07fe4a1d30b)
It is specified based on column name like this:
![image](https://github.com/grafana/grafana/assets/88662219/76ea3404-6c5c-4395-9094-35e10f220a91)
**Who is this feature for?**
This is relevant for all state timelines where quickly getting more info about a specific state is necesdsary without going to another dashboard for it.
Link to the forum topic, where other s show interest in a similar feature (or something that this feature would resolve): https://community.grafana.com/t/grafana-tooltip-customization/66221/10
Thanks!
3 Likes
I see so many people requesting this online. Seems like a no brainer feature. There doesn’t even seem to be a good workaround
looks it still needs some polishing but something is available in latest grafana v11
Could you share how you achieved this? I’m trying to show text values in tooltips as well and this looks exactly like what I’m looking for.
the picture I posted above is exactly how I did it. what is your datasource
Thanks for your reply. I tried replicating your query format:
SELECT
'foo' as comment,
33.7 as num_value,
'juicy' as metrics,
'2024-11-11' as time
FROM issue_stats
But I can only see the timestamp and numeric values in the tooltip - the string values (comment, metrics) don’t show up. I’m using MySQL as my data source.
Am I missing something in the configuration? Do you have any additional settings or transformations applied to make the text values appear in the tooltip?