mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Fix inconsistent category order of varnish4_ plugin
Varnish4_ plugin displays categories in an arbitrary order, changing the colors of the graphs with each run. This fix introduces a 'sort' statement in the category iteration function to force the same order consistently.
This commit is contained in:
parent
7325ba61ba
commit
49bfc34617
@ -1081,7 +1081,7 @@ sub get_config
|
|||||||
print_if_exist(\%ASPECTS,$graph,$field,"graph_$field");
|
print_if_exist(\%ASPECTS,$graph,$field,"graph_$field");
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $value (keys %values) {
|
foreach my $value (sort keys %values) {
|
||||||
# Just print the description/type if it's a dynamic
|
# Just print the description/type if it's a dynamic
|
||||||
# counter. It'll be silent if it isn't.
|
# counter. It'll be silent if it isn't.
|
||||||
if(print_dynamic($value,'.label',('description','type','ident'))) {
|
if(print_dynamic($value,'.label',('description','type','ident'))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user