sqshq / sampler

Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
https://sampler.dev
GNU General Public License v3.0
12.88k stars 573 forks source link

Explicit min/max for sparklines and runcharts? #31

Open Fusty opened 5 years ago

Fusty commented 5 years ago

Can we explicitly set the min/max on the scale for sparklines and/or runcharts? I've tried and it doesn't seem to respond. I should probably just use gauges, but I like seeing the history. I'd just like to define the vertical axis' min/max.

vipau commented 5 years ago

This is so useful! I was trying to display CPU percentage (that's always from 0-100) but a gauge doesn't cut it for the reason you mentioned.

spice0xff commented 5 years ago

As a temporary solution: items:

deefdragon commented 5 years ago

To add to the temporary solution posted by @spice0xff you can use color: 16 to make them invisible (assuming black background). It also makes the legend invisible.

the biggest downside of this is that the minimum and maximum workaround only works on something know to be between those values. Percentages for example. It doesn't allow for a cutoff if something ls well outside the expected range.