From 014e03f31085abecb6712f3cdd57d8d2cf3cb7e4 Mon Sep 17 00:00:00 2001 From: matoy Date: Mon, 17 May 2021 17:27:02 +0200 Subject: [PATCH] Update connections.pm fix ; $metric_type (servers, flexibleServers) don't exist in $metrics_mapping hash (active_connections, connections_failed) same bug in several modes of this plugin. --- cloud/azure/database/mysql/mode/connections.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}}) {