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 mapping - ranges? #1319

Closed
christrotter opened this issue Jan 9, 2015 · 33 comments
Closed

Value to text mapping - ranges? #1319

christrotter opened this issue Jan 9, 2015 · 33 comments

Comments

@christrotter
Copy link

SingleStat panels are awesome. Thank you so much.

I would love to be able to specify a range or 'greater-than or less-than' operators in the value-to-text mappings. This issue mentioned adding range functionality at a later date. #1130

image

So the use case is on my dashboards I want things to be simple, so just display 'OKAY' if the value is below 500. Above that do whatever. And you can further that by specifying 500to1000 = WARN, and >1000 = RUH ROH SHAGGY or whatever.

@nickman
Copy link

nickman commented Jan 9, 2015

+1
On Jan 9, 2015 9:02 AM, "christrotter" notifications@github.com wrote:

SingleStat panels are awesome. Thank you so much.

I would love to be able to specify a range or 'greater-than or less-than'
operators in the value-to-text mappings. This issue mentioned adding range
functionality at a later date. #1130
#1130

[image: image]
https://cloud.githubusercontent.com/assets/8292406/5680585/151099ea-97dd-11e4-8a19-0825190a64c1.png

So the use case is on my dashboards I want things to be simple, so just
display 'OKAY' if the value is below 500. Above that do whatever. And you
can further that by specifying 500to1000 = WARN, and >1000 = RUH ROH SHAGGY
or whatever.


Reply to this email directly or view it on GitHub
#1319.

@tehdirector
Copy link

+1

5 similar comments
@rmoff
Copy link

rmoff commented Feb 5, 2015

👍

@enri57ar
Copy link

enri57ar commented Mar 4, 2015

+1

@maximsnezhkov
Copy link

+1

@pazoozooCH
Copy link

+1

@ernoaapa
Copy link

+1

@dahendel
Copy link

+1 This would be great as I am making a Status Dashboard for back end users.

@cemo
Copy link

cemo commented May 1, 2015

+1

1 similar comment
@agaon
Copy link

agaon commented May 14, 2015

+1

@argais
Copy link

argais commented Jun 16, 2015

+1 any plans for this? just downloaded a 2.1 .deb and its still not there.

@davidetempesta-zz
Copy link

+1

@plopp
Copy link
Contributor

plopp commented Aug 20, 2015

+1

13 similar comments
@javiermarcon
Copy link

+1

@xneo64
Copy link

xneo64 commented Nov 8, 2015

+1

@sergey-brutsky
Copy link

+1

@sebbourgeois
Copy link

+1

@afflick
Copy link

afflick commented Nov 26, 2015

+1

@agaon
Copy link

agaon commented Dec 1, 2015

+1

@markri
Copy link

markri commented Dec 30, 2015

+1

@SteveNewhouse
Copy link

+1

@romanponomarev
Copy link

+1

@rurutia
Copy link

rurutia commented Feb 4, 2016

+1

@bblok11
Copy link

bblok11 commented Feb 15, 2016

+1

@petterbrodin-goodtech
Copy link

+1

@miedzwiedz
Copy link

+1

@utkarshcmu
Copy link
Collaborator

PR #4644 created, implemented this feature, key points are mentioned in the PR.

Here are some screenshots of Singlestat panel editor:

Value to text mappings removed from Options tab
screen shot 2016-04-10 at 11 25 55 pm

Moved the value to text mappings to Mappings tab
screen shot 2016-04-10 at 11 26 03 pm

Range to text mapping functionality
screen shot 2016-04-10 at 11 26 09 pm

@bergquist
Copy link
Contributor

closed by #4644

@bergquist bergquist added this to the 3.0.0 milestone May 2, 2016
@bergquist
Copy link
Contributor

This is merged to the development branch and will be available in grafana 3.1

@bergquist bergquist modified the milestones: 3.1.0, 3.0.0 May 2, 2016
@utkarshcmu
Copy link
Collaborator

@bergquist Thanks for merging this functionality. Its available in Grafana master now. :)

@gam-phon
Copy link

Thanks for merging this awesome feature. How about greater than or less than? How can I define it?

@flopp999
Copy link
Contributor

flopp999 commented Jun 13, 2018

Continue this thread
I am using "range to text".
0 to 100 = OK
null to null = Bad
It is working like I expect.
My problem is that I want to have red background when value is null, the text change to "Bad" but background is still same color as it was for value 0-100.

Would it be possible to implement when value is outside "Options->Thresholds" a different background is used.
I understand it maybe difficult to set the background to a color when it is Null so maybe no background at all is easier to implement, and it is better then keeping the last background.

@fmakawa
Copy link

fmakawa commented Feb 26, 2020

And if we wanted a range to infinity? As in, the current implementation from my understanding needs you to expressly state a lower and upper limit. When we state lets say: from 500 to the text mapping for that is not triggered because it expecting an upper limit value. It would great if we got true greater than and less than functionality for when we don't have an end limit to what we are monitoring but still want to map those values

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