From: Bjørn R. <bj...@ru...> - 2012-04-12 10:28:08
|
On 12. april 2012 12:06, Darac Marjal wrote: > On Thu, Apr 12, 2012 at 11:33:23AM +0200, Balint Deak wrote: >> Hi, >> Is it possible to sort the fields of a graph based on the current values? >> The usual workflow for some graphs is that I see that a value is too high, >> then as there are many values graphed it's hard to determine based on >> coloring which field has the high value. If the fields were sorted based >> on values, it would be much easier to find out which plotted value >> corresponds to which field. >> I tried googling, but it didn't help me much. > As far as I'm aware, Munin doesn't sort the fields itself, but also > won't change the sort order provided by your plugin. > > So what you need to do is modify the config stage of your plugin to > return the fields in the order that you want them. For many plugins, > this is a bit difficult as, at config time, they don't know whether the > values are too high, normal, unknown etc. So you may also need to move > the fetch stage into a common path, such that both the fetch and the > config stages have access to the info. > You can use graph_order for this, but as has been mentioned you will need to know the values during the config run. -- Bjørn |