Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value to text on table panel V2.6 #3544

Closed
Samuel1989 opened this issue Dec 16, 2015 · 29 comments
Closed

Value to text on table panel V2.6 #3544

Samuel1989 opened this issue Dec 16, 2015 · 29 comments

Comments

@Samuel1989
Copy link

Hey Guys,

I was wonder if value to text transformation is already available for tables or potentially planned into a future release?

Part of what I am using Grafana for is to keep track of active services, so I merely have a active state of 1 or a down state of 0, I then transform these into "Active" or "Inactive" via the single stat value to text functionality. As more and more services become available it would actually be really nice to just have a table of Active/Inactive with cell colours of green or red.

Sam

@KenBridgeman
Copy link

I have been trying to do the same. My work around is to build a dashboard that combines Text and SingleStat boxes in a row, then have it repeat using variables:

Create Variable: processName Check ALL
Row Editor: Row Height: 100px Repeat Row: select
Add Panel: Text Panel Title: $processName
Add Panel: SingleStat Query: processName:$processName Metric: State
Options: Value to Text Mapping: 1 -> UP 0 -> DOWN

then you can use the selector to choose a specific service, some, or all services to get a service panel.

@henry-spanka
Copy link

+1 Would appreciate this feature ;)

@vitorboschi
Copy link
Contributor

+1

1 similar comment
@evandro-portugal
Copy link

+1

@mattttt
Copy link
Contributor

mattttt commented May 12, 2016

This would be quite valuable for worldPing events table as well.

@slsims03
Copy link

+1 Would definitely be a very useful feature

@kirang20
Copy link

+1

3 similar comments
@ocervell
Copy link

+1

@glutzm
Copy link

glutzm commented Dec 8, 2016

+1

@trojanc
Copy link

trojanc commented Dec 12, 2016

+1

@slsims03
Copy link

slsims03 commented Dec 12, 2016 via email

@Kaauw
Copy link

Kaauw commented Feb 24, 2017

+1

8 similar comments
@gabosvk
Copy link

gabosvk commented Mar 14, 2017

+1

@lelando
Copy link

lelando commented Apr 17, 2017

+1

@delgod
Copy link

delgod commented Jun 20, 2017

+1

@jazzerjazzer
Copy link

+1

@mtehonica
Copy link

+1

@sharedansi
Copy link

+1

@westofariver
Copy link

+1

@szymic1
Copy link

szymic1 commented Oct 19, 2017

+1

@TomasMFranco
Copy link

+1.
Would be really useful to us as well.
I'd prefer to give the user a simple string rather than a code to look up.

@mjtrangoni
Copy link
Contributor

+1

2 similar comments
@ngrangeia
Copy link

+1

@cloudbehl
Copy link

+1

@defenestration
Copy link

This seems doable if you set the Cell Type to a 'String'. The 'Value Mappings' options then become available. I'm using Grafana 5.3.2.

@Willis0826
Copy link

@defenestration Thanks, I found it. However, I was wonder is that possible to change the color of the text which been converted?

@defenestration
Copy link

If you use the range/threshold setting it should be able to color the text.

@Willis0826
Copy link

Thanks again! I got it : )
It seems like if we want to show the value to text and change the color of text we will need to use Range to text and Thresholds both.

@torkelo
Copy link
Member

torkelo commented Jun 28, 2020

7.0 table panel supports value to text mappings

@torkelo torkelo closed this as completed Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests