diff --git a/cloud/azure/database/mysql/mode/connections.pm b/cloud/azure/database/mysql/mode/connections.pm index 48d0e6a28..66e341d5e 100644 --- a/cloud/azure/database/mysql/mode/connections.pm +++ b/cloud/azure/database/mysql/mode/connections.pm @@ -123,7 +123,7 @@ sub check_options { my $metrics_mapping_transformed; foreach my $metric_type (@{$resource_mapping->{$resource_type}}) { - $metrics_mapping_transformed->{$metric_type} = $self->{metrics_mapping}->{$metric_type}; + $metrics_mapping_transformed->{$metric_type} = $self->{resource_mapping}->{$metric_type}; } foreach my $metric (keys %{$self->{metrics_mapping_transformed}}) {