mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
canonicalize keys with _ instead of dots
This commit is contained in:
parent
e3e3ca2787
commit
0ddf01817f
1 changed files with 7 additions and 3 deletions
|
@ -95,8 +95,10 @@ sub do_stats {
|
||||||
|
|
||||||
open(Q,"> $STATEFILE") or die;
|
open(Q,"> $STATEFILE") or die;
|
||||||
foreach $k (@INkeys[0 .. 19]) {
|
foreach $k (@INkeys[0 .. 19]) {
|
||||||
print "rr_$k.value ",$IN{$k},"\n";
|
next if not defined $k;
|
||||||
print Q "$k ",$IN{$k},"\n";
|
my $l = $k; $k =~ tr/\./_/;
|
||||||
|
print "rr_$k.value ",$IN{$l},"\n";
|
||||||
|
print Q "$l ",$IN{$l},"\n";
|
||||||
}
|
}
|
||||||
close(Q);
|
close(Q);
|
||||||
}
|
}
|
||||||
|
@ -114,7 +116,9 @@ graph_vlabel Queries / \${graph_period}
|
||||||
my @INkeys = sort { $IN{$b} <=> $IN{$a} } keys %IN;
|
my @INkeys = sort { $IN{$b} <=> $IN{$a} } keys %IN;
|
||||||
|
|
||||||
foreach $k (@INkeys[0 .. 19]) {
|
foreach $k (@INkeys[0 .. 19]) {
|
||||||
print "rr_$k.label $k
|
next if not defined $k;
|
||||||
|
my $l = $k; $k =~ tr/\./_/;
|
||||||
|
print "rr_$k.label $l
|
||||||
rr_$k.type DERIVE
|
rr_$k.type DERIVE
|
||||||
rr_$k.min 0
|
rr_$k.min 0
|
||||||
rr_$k.draw STACK
|
rr_$k.draw STACK
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue