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

Change bucket color based on threshold #7659

Closed
kan1207 opened this issue Jul 7, 2016 · 10 comments
Closed

Change bucket color based on threshold #7659

kan1207 opened this issue Jul 7, 2016 · 10 comments

Comments

@kan1207
Copy link

kan1207 commented Jul 7, 2016

I am using Kibana to visualize my server status and performance. Though there is watcher, I would like to know if it is possible to have thresholds to implement on the visualized data. For example, the bar chart for Disk Usage is green below 80% usage, Red for above.

@Bargs
Copy link
Contributor

Bargs commented Jul 7, 2016

Hi @kan1207, you can already to this with a range filter sub-aggregation. Here's a screenshot of an example:

screen shot 2016-07-07 at 10 00 38 am

You can change the colors of the bars by clicking on the labels in the legend.

@Bargs Bargs closed this as completed Jul 7, 2016
@kan1207
Copy link
Author

kan1207 commented Jul 7, 2016

Oh sorry, what I mean is to automatically change into another color but not split ranges into 2 bars

@Bargs
Copy link
Contributor

Bargs commented Jul 7, 2016

I'm not sure I understand the difference, don't they accomplish the same thing?

@kan1207
Copy link
Author

kan1207 commented Jul 7, 2016

In your figure, that is the count of cpu usage percentage within the range. Instead of spliting the bar into different ranges and count their existance, I hope there is a threshold that can enable to monitor live average cpu usage within a certain time range. so that whenever the average cpu usage reaaches a certain percentage the bar will turn to another color according to the threshold set. For example, the average cpu usage should be around 60% (normal range: green color), when the usage suddenly increases to 90%, the same chart will turn to red color which indicates a warning.

Hope I have made it clear

@Bargs
Copy link
Contributor

Bargs commented Jul 7, 2016

when the usage suddenly increases to 90%, the same chart will turn to red color which indicates a warning.

So the entire bar (the one that's above 60%) will turn red, or the entire chart will turn red?

@kan1207
Copy link
Author

kan1207 commented Jul 7, 2016

he entire bar will turn red, sorry for confusing

@Bargs
Copy link
Contributor

Bargs commented Jul 7, 2016

Got it. That seems reasonable. There are other ways I think you could achieve the same result, but maybe not quite as nice. You could create a chart that is filtered to only show values above the threshold, so that if you see anything in that chart you know it's bad news. I'll reopen this though since it could be a nice-to-have.

@Bargs Bargs reopened this Jul 7, 2016
@Bargs Bargs changed the title [Feature Request] Making Threshold for data visulization in Kibana Change bucket color based on threshold Jul 7, 2016
@sharon-ca
Copy link

Yes, it is definitely a very good feature for data visualisation.

@tbragin
Copy link
Contributor

tbragin commented Jul 29, 2016

@Bargs is this a dup of #4482 ?

@Bargs
Copy link
Contributor

Bargs commented Jul 29, 2016

Ah, yep, thanks @tbragin. Closing as dupe.

@Bargs Bargs closed this as completed Jul 29, 2016
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

4 participants