Closed darkhelmet closed 10 years ago
Oh, hmm... I wasn't paying close enough attention. I guess this could be pretty useful. I'm generally against stuffing logic into the configs, but I can imagine this would be very useful to Librato and InfluxDB users.
Curious what smarter folks think of this... @roidrage @eric @gorsuch ?
Background:
I use scout at my job, and it logs disk usage in GB. This is fine most of the time, but useless on the boot drive, which is only 100MB or something like that. It just reports 0. I'm writing a little server metrics thing that reports to InfluxDB and report disk usage in MB, because it seems more useful for the reason above. This transform lets me display it better in the dashboard, when it makes sense.
I've always wanted my metrics displays to be smarter about displays of values that can have smarter units.
I'm totally in favor of this. :+1:
Works for me, merging. :smile_cat:
I'm very excited about this!
@roidrage I'm only now reading your comment, and it makes me sad that I've missed out on that gif for a month.
I've never been able to get over http://youtu.be/Veg63B8ofnQ
This lets you report things like disk space in MB (you're monitoring both boot and root, they both report in MB) but you want to display some things in GB.
Can include a filter function in the metric to divide by 1024, and now your MB are in GB.
Also:
parseInt