change sql path (#2561)

This commit is contained in:
qgarnier 2021-02-01 14:22:49 +01:00 committed by GitHub
parent bbe4fd1c14
commit 8b46c7f4e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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