(plugin) cloud::azure::network::trafficmanager - fix help and metric label
This commit is contained in:
parent
a370a53b27
commit
1079086e10
|
@ -29,7 +29,7 @@ sub get_metrics_mapping {
|
|||
my ($self, %options) = @_;
|
||||
|
||||
my $metrics_mapping = {
|
||||
'probeagentcurrentendpointstatebyprofileresourceid' => {
|
||||
'ProbeAgentCurrentEndpointStateByProfileResourceId' => {
|
||||
'output' => 'Endpoint Status',
|
||||
'label' => 'endpoint-status',
|
||||
'nlabel' => 'trafficmanager.endpoint.status.count',
|
||||
|
@ -101,19 +101,21 @@ __END__
|
|||
|
||||
Check Azure Traffic Manager endpoint status.
|
||||
|
||||
1 is returned if an endpoint's probe status is "Enabled", 0 otherwise.
|
||||
|
||||
Example:
|
||||
|
||||
Using resource name :
|
||||
|
||||
perl centreon_plugins.pl --plugin=cloud::azure::network::trafficmanager::plugin --mode=backendhealth --custommode=api
|
||||
--resource=<trafficmanagerprofile_id> --resource-group=<resourcegroup_id> --aggregation='average'
|
||||
--resource=<trafficmanagerprofile_id> --resource-group=<resourcegroup_id> --aggregation='Maximum'
|
||||
--warning-endpoint-status='1:' --critical-endpoint-status='0.9:'
|
||||
|
||||
Using resource id :
|
||||
|
||||
perl centreon_plugins.pl --plugin=cloud::azure::network::trafficmanager::plugin --mode=backendhealth --custommode=api
|
||||
--resource='/subscriptions/<subscription_id>/resourceGroups/<resourcegroup_id>/providers/Microsoft.Network/trafficmanagerprofiles/<trafficmanagerprofiles_id>'
|
||||
--aggregation='average' --warning-endpoint-status='1:' --critical-endpoint-status='0.9:'
|
||||
--aggregation='Maximum' --warning-endpoint-status='1:' --critical-endpoint-status='0.9:'
|
||||
|
||||
Default aggregation: 'maximum' / 'minimum', 'average' and 'total' are valid.
|
||||
|
||||
|
|
|
@ -102,19 +102,21 @@ __END__
|
|||
|
||||
Check Azure Traffic Manager queries.
|
||||
|
||||
Meaning the number of times a Traffic Manager endpoint was returned in the given time frame.
|
||||
|
||||
Example:
|
||||
|
||||
Using resource name :
|
||||
|
||||
perl centreon_plugins.pl --plugin=cloud::azure::network::trafficmanager::plugin --mode=queries --custommode=api
|
||||
--resource=<frontdoor_id> --resource-group=<resourcegroup_id> --aggregation='total'
|
||||
--warning-queries-perseconds='3000' --critical-queries-perseconds='4000'
|
||||
--resource=<trafficmanagerprofile_id> --resource-group=<resourcegroup_id> --aggregation='Total'
|
||||
--warning-queries-persecond='3000' --critical-queries-persecond='4000'
|
||||
|
||||
Using resource id :
|
||||
|
||||
perl centreon_plugins.pl --plugin=cloud::azure::network::trafficmanager::plugin --mode=queries --custommode=api
|
||||
--resource='/subscriptions/<subscription_id>/resourceGroups/<resourcegroup_id>/providers/Microsoft.Network/trafficmanagerprofiles/<frontdoor_id>'
|
||||
--aggregation='total' --warning-queries-perseconds='3000' --critical-queries-perseconds='4000'
|
||||
--resource='/subscriptions/<subscription_id>/resourceGroups/<resourcegroup_id>/providers/Microsoft.Network/trafficmanagerprofiles/<trafficmanagerprofile_id>'
|
||||
--aggregation='Total' --warning-queries-persecond='3000' --critical-queries-persecond='4000'
|
||||
|
||||
Default aggregation: 'total' / 'minimum', 'maximum' and 'average' are valid.
|
||||
|
||||
|
@ -128,13 +130,11 @@ Set resource name or id (Required).
|
|||
|
||||
Set resource group (Required if resource's name is used).
|
||||
|
||||
=item B<--warning-*>
|
||||
|
||||
=item B<--warning-queries-perseconds>
|
||||
=item B<--warning-queries-persecond>
|
||||
|
||||
Warning threshold.
|
||||
|
||||
=item B<--critical-queries-perseconds>
|
||||
=item B<--critical-queries-persecond>
|
||||
|
||||
Critical threshold.
|
||||
|
||||
|
|
Loading…
Reference in New Issue