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

Added string thresholds for singlestat and table panel #5638

Closed
wants to merge 7 commits into from

Conversation

bmundt
Copy link
Contributor

@bmundt bmundt commented Jul 22, 2016

Related issue/feature request: #3601

This will allow you to input regex for threshold values in both the singlestat and table panels.
The regex works like this: Enter regex, seperated by commas for more regex. Make sure the regex starts with a forward slash, so it can determine between a number and regex. Anything that does not match a regex, will be mapped to the first color, this is similar to how the thresholds with numbers work, where anything <= the first number is mapped to the first color.

The getColorForValue function seems redundant to be in both the table panel and singlestat, I am considering moving it to somewhere common, like /public/app/core/utils/kbn.js . However, this would break the current tests for singlestat, requiring that they be moved to kbn_specs. The file singlestat_panel_specs.ts would then be useless and have to be removed, not sure how that works with a pull request.

@bmundt
Copy link
Contributor Author

bmundt commented Jul 22, 2016

Table thresholds will be added shortly

@zarbis
Copy link

zarbis commented Dec 22, 2016

Is this PR abandoned? Would love to see this feature.

@torkelo
Copy link
Member

torkelo commented Jan 31, 2017

closing this, think it complicates the code to much and is confusing number thresholds with text -> color mappings. Something that if implemented needs it's own concept, feel it makes the code too hacky to use the thresholds for this

@lucasrodcosta
Copy link
Contributor

lucasrodcosta commented Jun 13, 2017

Hi @bmundt, @zarbis and @torkelo. I created a concept for this in #7631.
What do you think? Makes sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants