diff --git a/cloud/google/gcp/database/common/mode/cpu.pm b/cloud/google/gcp/cloudsql/common/mode/cpu.pm similarity index 97% rename from cloud/google/gcp/database/common/mode/cpu.pm rename to cloud/google/gcp/cloudsql/common/mode/cpu.pm index 47e0ed809..16e433817 100644 --- a/cloud/google/gcp/database/common/mode/cpu.pm +++ b/cloud/google/gcp/cloudsql/common/mode/cpu.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::google::gcp::database::common::mode::cpu; +package cloud::google::gcp::cloudsql::common::mode::cpu; use base qw(cloud::google::gcp::custom::mode); @@ -99,7 +99,7 @@ Check database CPU metrics. Example: -perl centreon_plugins.pl --plugin=cloud::google::gcp::database::mysql::plugin +perl centreon_plugins.pl --plugin=cloud::google::gcp::cloudsql::mysql::plugin --mode=cpu --dimension-value=mydatabaseid --filter-metric='utilization' --aggregation='average' --critical-cpu-utilization-average='10' --verbose diff --git a/cloud/google/gcp/database/common/mode/network.pm b/cloud/google/gcp/cloudsql/common/mode/network.pm similarity index 97% rename from cloud/google/gcp/database/common/mode/network.pm rename to cloud/google/gcp/cloudsql/common/mode/network.pm index bc46d5dca..b01f1718e 100644 --- a/cloud/google/gcp/database/common/mode/network.pm +++ b/cloud/google/gcp/cloudsql/common/mode/network.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::google::gcp::database::common::mode::network; +package cloud::google::gcp::cloudsql::common::mode::network; use base qw(cloud::google::gcp::custom::mode); @@ -128,7 +128,7 @@ Check database instances network metrics. Example: -perl centreon_plugins.pl --plugin=cloud::google::gcp::database::mysql::plugin +perl centreon_plugins.pl --plugin=cloud::google::gcp::cloudsql::mysql::plugin --mode=network --dimension-value=mydatabaseid --filter-metric='bytes' --aggregation='average' --critical-received-volume='10' --verbose diff --git a/cloud/google/gcp/database/common/mode/storage.pm b/cloud/google/gcp/cloudsql/common/mode/storage.pm similarity index 97% rename from cloud/google/gcp/database/common/mode/storage.pm rename to cloud/google/gcp/cloudsql/common/mode/storage.pm index 1c1eaf5fc..e462e0488 100644 --- a/cloud/google/gcp/database/common/mode/storage.pm +++ b/cloud/google/gcp/cloudsql/common/mode/storage.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::google::gcp::database::common::mode::storage; +package cloud::google::gcp::cloudsql::common::mode::storage; use base qw(cloud::google::gcp::custom::mode); @@ -117,7 +117,7 @@ Check database storage metrics. Example: -perl centreon_plugins.pl --plugin=cloud::google::gcp::database::mysql::plugin +perl centreon_plugins.pl --plugin=cloud::google::gcp::cloudsql::mysql::plugin --mode=diskio --dimension-value=mydatabaseid --filter-metric='space' --aggregation='average' --verbose diff --git a/cloud/google/gcp/database/mysql/mode/discovery.pm b/cloud/google/gcp/cloudsql/mysql/mode/discovery.pm similarity index 97% rename from cloud/google/gcp/database/mysql/mode/discovery.pm rename to cloud/google/gcp/cloudsql/mysql/mode/discovery.pm index 479d0e629..83d85384f 100644 --- a/cloud/google/gcp/database/mysql/mode/discovery.pm +++ b/cloud/google/gcp/cloudsql/mysql/mode/discovery.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::google::gcp::database::mysql::mode::discovery; +package cloud::google::gcp::cloudsql::mysql::mode::discovery; use base qw(centreon::plugins::mode); diff --git a/cloud/google/gcp/database/mysql/mode/innodb.pm b/cloud/google/gcp/cloudsql/mysql/mode/innodb.pm similarity index 97% rename from cloud/google/gcp/database/mysql/mode/innodb.pm rename to cloud/google/gcp/cloudsql/mysql/mode/innodb.pm index 9b5cd1a3b..f8bec2a83 100644 --- a/cloud/google/gcp/database/mysql/mode/innodb.pm +++ b/cloud/google/gcp/cloudsql/mysql/mode/innodb.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::google::gcp::database::mysql::mode::innodb; +package cloud::google::gcp::cloudsql::mysql::mode::innodb; use base qw(cloud::google::gcp::custom::mode); @@ -142,7 +142,7 @@ Check mysql innodb metrics. Example: -perl centreon_plugins.pl --plugin=cloud::google::gcp::database::mysql::plugin +perl centreon_plugins.pl --plugin=cloud::google::gcp::cloudsql::mysql::plugin --mode=diskio --dimension-value=mydatabaseid --filter-metric='queries' --aggregation='average' --verbose diff --git a/cloud/google/gcp/database/mysql/mode/queries.pm b/cloud/google/gcp/cloudsql/mysql/mode/queries.pm similarity index 97% rename from cloud/google/gcp/database/mysql/mode/queries.pm rename to cloud/google/gcp/cloudsql/mysql/mode/queries.pm index 6588863c0..3a2144a7c 100644 --- a/cloud/google/gcp/database/mysql/mode/queries.pm +++ b/cloud/google/gcp/cloudsql/mysql/mode/queries.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::google::gcp::database::mysql::mode::queries; +package cloud::google::gcp::cloudsql::mysql::mode::queries; use base qw(cloud::google::gcp::custom::mode); @@ -108,7 +108,7 @@ Check mysql queries metrics. Example: -perl centreon_plugins.pl --plugin=cloud::google::gcp::database::mysql::plugin +perl centreon_plugins.pl --plugin=cloud::google::gcp::cloudsql::mysql::plugin --mode=diskio --dimension-value=mydatabaseid --filter-metric='queries' --aggregation='average' --verbose diff --git a/cloud/google/gcp/database/mysql/plugin.pm b/cloud/google/gcp/cloudsql/mysql/plugin.pm similarity index 72% rename from cloud/google/gcp/database/mysql/plugin.pm rename to cloud/google/gcp/cloudsql/mysql/plugin.pm index 916494045..2ff8a43be 100644 --- a/cloud/google/gcp/database/mysql/plugin.pm +++ b/cloud/google/gcp/cloudsql/mysql/plugin.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::google::gcp::database::mysql::plugin; +package cloud::google::gcp::cloudsql::mysql::plugin; use strict; use warnings; @@ -31,12 +31,12 @@ sub new { $self->{version} = '0.1'; $self->{modes} = { - 'cpu' => 'cloud::google::gcp::database::common::mode::cpu', - 'discovery' => 'cloud::google::gcp::database::mysql::mode::discovery', - 'innodb' => 'cloud::google::gcp::database::mysql::mode::innodb', - 'network' => 'cloud::google::gcp::database::common::mode::network', - 'queries' => 'cloud::google::gcp::database::mysql::mode::queries', - 'storage' => 'cloud::google::gcp::database::common::mode::storage' + 'cpu' => 'cloud::google::gcp::cloudsql::common::mode::cpu', + 'discovery' => 'cloud::google::gcp::cloudsql::mysql::mode::discovery', + 'innodb' => 'cloud::google::gcp::cloudsql::mysql::mode::innodb', + 'network' => 'cloud::google::gcp::cloudsql::common::mode::network', + 'queries' => 'cloud::google::gcp::cloudsql::mysql::mode::queries', + 'storage' => 'cloud::google::gcp::cloudsql::common::mode::storage' }; $self->{custom_modes}->{api} = 'cloud::google::gcp::custom::api'; @@ -49,6 +49,6 @@ __END__ =head1 PLUGIN DESCRIPTION -Check Google Cloud Platform MySQL. +Check Google CloudSQL MySQL. =cut