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.
This commit is contained in:
parent
9125d889e4
commit
014e03f310
|
@ -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}}) {
|
||||
|
|
Loading…
Reference in New Issue