fix(azure/sqldatabase): label notation (#3053)

This commit is contained in:
Thibault S 2021-08-31 08:18:38 +02:00 committed by GitHub
parent 6f84d5906d
commit 041d9444ad
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ sub set_counters {
my $metric_perf = lc($metric);
my $metric_label = lc($metric);
$metric_perf =~ s/ /_/g;
$metric_label =~ s/ /-/g;
$metric_label =~ s/[ |_]/-/g;
my $entry = { label => $metric_label . '-' . $aggregation, set => {
key_values => [ { name => $metric_perf . '_' . $aggregation }, { name => 'display' }, { name => 'stat' } ],
output_template => 'Database size percentage: %.2f %%',