centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
311 stars 275 forks source link

[cloud::aws::elasticache::plugin] returns only NULL values on every mode on Cluster #4689

Open joschi99 opened 1 year ago

joschi99 commented 1 year ago

Latest plugins

we have a AWS Elasticache cluster with 2 nodes:

If we are monitor a single Node then everything is working fine.

The plugin help shows:

    --name  Set the cluster name (Required) (can be defined multiple times).

    --node-id
            Set the node id (Optional).

Monitoring with --name='prod-redis' every mode returns "no value".

omercier commented 1 year ago

Hi @joschi99 Have you tried --name='prod-redis-001' --name='prod-redis-002' ?

joschi99 commented 1 year ago

Hi, whis will monitor only the status of the single nodes, but I'm missing the cluster status.

omercier commented 1 year ago

Can you post the full command + result with the --debug option?

joschi99 commented 1 year ago

Here is a full debug log for the redis cluster object:

--custommode=awscli --region=eu-central-1 --plugin=cloud::aws::elasticache::plugin --mode=cpu --name=prod-redis --debug
2023-11-07 05:52:02,716 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.13.8 Python/3.11.4 Linux/4.18.0-477.27.1.el8_8.x86_64 exe/x86_64.oracle.8
2023-11-07 05:52:02,717 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['cloudwatch', 'get-metric-statistics', '--region', 'eu-central-1', '--namespace', 'AWS/ElastiCache', '--metric-name', 'CPUUtilization', '--start-time', '2023-11-07T04:42:00', '--end-time', '2023-11-07T04:52:00', '--period', '60', '--statistics', 'Average', '--output', 'json', '--dimensions', 'Name=CacheClusterId,Value=prod-redis', '--debug']
2023-11-07 05:52:02,747 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_s3 at 0x7fcb1efeff60>
2023-11-07 05:52:02,750 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_ddb at 0x7fcb1f235800>
2023-11-07 05:52:02,751 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.configure.configure.ConfigureCommand'>>
2023-11-07 05:52:02,751 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function change_name at 0x7fcb1f393b00>
2023-11-07 05:52:02,751 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function change_name at 0x7fcb1f3b91c0>
2023-11-07 05:52:02,751 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function alias_opsworks_cm at 0x7fcb1f006a20>
2023-11-07 05:52:02,751 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_history_commands at 0x7fcb1f28c220>
2023-11-07 05:52:02,752 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.devcommands.CLIDevCommand'>>
2023-11-07 05:52:02,752 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_waiters at 0x7fcb1f0068e0>
2023-11-07 05:52:02,752 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x7fcb1f0bc790>>
2023-11-07 05:52:02,752 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.8/dist/awscli/data/cli.json
2023-11-07 05:52:02,764 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_types at 0x7fcb1f13dbc0>
2023-11-07 05:52:02,764 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function no_sign_request at 0x7fcb1f13dee0>
2023-11-07 05:52:02,764 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_verify_ssl at 0x7fcb1f13de40>
2023-11-07 05:52:02,765 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_cli_read_timeout at 0x7fcb1f13e020>
2023-11-07 05:52:02,765 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_cli_connect_timeout at 0x7fcb1f13df80>
2023-11-07 05:52:02,765 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <built-in method update of dict object at 0x7fcb1f0ad900>
2023-11-07 05:52:02,765 - MainThread - botocore.session - DEBUG - Setting config variable for region to 'eu-central-1'
2023-11-07 05:52:02,770 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.13.8 Python/3.11.4 Linux/4.18.0-477.27.1.el8_8.x86_64 exe/x86_64.oracle.8 prompt/off
2023-11-07 05:52:02,770 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['cloudwatch', 'get-metric-statistics', '--region', 'eu-central-1', '--namespace', 'AWS/ElastiCache', '--metric-name', 'CPUUtilization', '--start-time', '2023-11-07T04:42:00', '--end-time', '2023-11-07T04:52:00', '--period', '60', '--statistics', 'Average', '--output', 'json', '--dimensions', 'Name=CacheClusterId,Value=prod-redis', '--debug']
2023-11-07 05:52:02,771 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_timestamp_parser at 0x7fcb1f004900>
2023-11-07 05:52:02,773 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x7fcb1f61dbc0>
2023-11-07 05:52:02,778 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_binary_formatter at 0x7fcb1f073ec0>
2023-11-07 05:52:02,784 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function no_pager_handler at 0x7fcb1f73c860>
2023-11-07 05:52:02,784 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x7fcb1f6394e0>
2023-11-07 05:52:02,788 - MainThread - botocore.utils - DEBUG - IMDS ENDPOINT: http://169.254.169.254/
2023-11-07 05:52:02,793 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x7fcb1f2709a0>
2023-11-07 05:52:02,793 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_json_file_cache at 0x7fcb1f219a80>
2023-11-07 05:52:02,822 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.8/dist/awscli/botocore/data/cloudwatch/2010-08-01/service-2.json
2023-11-07 05:52:02,843 - MainThread - botocore.hooks - DEBUG - Event building-command-table.cloudwatch: calling handler <function add_waiters at 0x7fcb1f0068e0>
2023-11-07 05:52:02,869 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.8/dist/awscli/botocore/data/cloudwatch/2010-08-01/waiters-2.json
2023-11-07 05:52:02,870 - MainThread - botocore.hooks - DEBUG - Event building-command-table.cloudwatch: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x7fcb1f0bc790>>
2023-11-07 05:52:02,872 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('namespace', <awscli.arguments.CLIArgument object at 0x7fcb1e7ced10>), ('metric-name', <awscli.arguments.CLIArgument object at 0x7fcb1e7ceed0>), ('dimensions', <awscli.arguments.ListArgument object at 0x7fcb1e7cf050>), ('start-time', <awscli.arguments.CLIArgument object at 0x7fcb1e7cf110>), ('end-time', <awscli.arguments.CLIArgument object at 0x7fcb1e7cf210>), ('period', <awscli.arguments.CLIArgument object at 0x7fcb1e7cf390>), ('statistics', <awscli.arguments.ListArgument object at 0x7fcb1e7cf4d0>), ('extended-statistics', <awscli.arguments.ListArgument object at 0x7fcb1e7cf5d0>), ('unit', <awscli.arguments.CLIArgument object at 0x7fcb1e7cf790>)])
2023-11-07 05:52:02,873 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.cloudwatch.get-metric-statistics: calling handler <function add_streaming_output_arg at 0x7fcb1f004e00>
2023-11-07 05:52:02,877 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.cloudwatch.get-metric-statistics: calling handler <function add_cli_input_json at 0x7fcb1f639e40>
2023-11-07 05:52:02,878 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.cloudwatch.get-metric-statistics: calling handler <function add_cli_input_yaml at 0x7fcb1f639ee0>
2023-11-07 05:52:02,880 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.cloudwatch.get-metric-statistics: calling handler <function unify_paging_params at 0x7fcb1f235e40>
2023-11-07 05:52:02,928 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.8/dist/awscli/botocore/data/cloudwatch/2010-08-01/paginators-1.json
2023-11-07 05:52:02,928 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.cloudwatch.get-metric-statistics: calling handler <function add_generate_skeleton at 0x7fcb1f13c400>
2023-11-07 05:52:02,930 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.cloudwatch.get-metric-statistics: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x7fcb1e5d4250>>
2023-11-07 05:52:02,931 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.cloudwatch.get-metric-statistics: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x7fcb1e5d47d0>>
2023-11-07 05:52:02,931 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.cloudwatch.get-metric-statistics: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7fcb1e7a7ad0>>
2023-11-07 05:52:02,931 - MainThread - botocore.hooks - DEBUG - Event building-command-table.cloudwatch_get-metric-statistics: calling handler <function add_waiters at 0x7fcb1f0068e0>
2023-11-07 05:52:02,931 - MainThread - botocore.hooks - DEBUG - Event building-command-table.cloudwatch_get-metric-statistics: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x7fcb1f0bc790>>
2023-11-07 05:52:02,933 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.namespace: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,933 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.cloudwatch.get-metric-statistics: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7fcb1f75b3d0>
2023-11-07 05:52:02,933 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'AWS/ElastiCache' for parameter "namespace": 'AWS/ElastiCache'
2023-11-07 05:52:02,933 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.metric-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,933 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.cloudwatch.get-metric-statistics: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7fcb1f75b3d0>
2023-11-07 05:52:02,933 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'CPUUtilization' for parameter "metric_name": 'CPUUtilization'
2023-11-07 05:52:02,933 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.dimensions: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,934 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.cloudwatch.get-metric-statistics: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7fcb1f75b3d0>
2023-11-07 05:52:02,934 - MainThread - awscli.argprocess - DEBUG - Parsing param --dimensions as shorthand
2023-11-07 05:52:02,934 - MainThread - awscli.arguments - DEBUG - Unpacked value of ['Name=CacheClusterId,Value=prod-redis'] for parameter "dimensions": [{'Name': 'CacheClusterId', 'Value': 'prod-redis'}]
2023-11-07 05:52:02,934 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.start-time: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,934 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.cloudwatch.get-metric-statistics: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7fcb1f75b3d0>
2023-11-07 05:52:02,934 - MainThread - awscli.arguments - DEBUG - Unpacked value of '2023-11-07T04:42:00' for parameter "start_time": '2023-11-07T04:42:00'
2023-11-07 05:52:02,934 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.end-time: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,934 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.cloudwatch.get-metric-statistics: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7fcb1f75b3d0>
2023-11-07 05:52:02,934 - MainThread - awscli.arguments - DEBUG - Unpacked value of '2023-11-07T04:52:00' for parameter "end_time": '2023-11-07T04:52:00'
2023-11-07 05:52:02,935 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.period: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,935 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.cloudwatch.get-metric-statistics: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7fcb1f75b3d0>
2023-11-07 05:52:02,935 - MainThread - awscli.arguments - DEBUG - Unpacked value of '60' for parameter "period": 60
2023-11-07 05:52:02,935 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.statistics: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,935 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.cloudwatch.get-metric-statistics: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7fcb1f75b3d0>
2023-11-07 05:52:02,935 - MainThread - awscli.arguments - DEBUG - Unpacked value of ['Average'] for parameter "statistics": ['Average']
2023-11-07 05:52:02,935 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.extended-statistics: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,935 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.unit: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,935 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,936 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.cli-input-yaml: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,936 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.monitoring.get-metric-statistics.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7fcb1f5f6990>
2023-11-07 05:52:02,936 - MainThread - botocore.hooks - DEBUG - Event calling-command.cloudwatch.get-metric-statistics: calling handler <bound method CliInputArgument.add_to_call_parameters of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x7fcb1e5d4250>>
2023-11-07 05:52:02,936 - MainThread - botocore.hooks - DEBUG - Event calling-command.cloudwatch.get-metric-statistics: calling handler <bound method CliInputArgument.add_to_call_parameters of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x7fcb1e5d47d0>>
2023-11-07 05:52:02,936 - MainThread - botocore.hooks - DEBUG - Event calling-command.cloudwatch.get-metric-statistics: calling handler <bound method GenerateCliSkeletonArgument.generate_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7fcb1e7a7ad0>>
2023-11-07 05:52:02,936 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2023-11-07 05:52:02,936 - MainThread - botocore.credentials - INFO - Found credentials in environment variables.
2023-11-07 05:52:02,940 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.8/dist/awscli/botocore/data/endpoints.json
2023-11-07 05:52:03,043 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x7fcb21422160>
2023-11-07 05:52:03,061 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.8/dist/awscli/botocore/data/cloudwatch/2010-08-01/endpoint-rule-set-1.json
2023-11-07 05:52:03,062 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.13.8/dist/awscli/botocore/data/partitions.json
2023-11-07 05:52:03,064 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.cloudwatch: calling handler <function add_generate_presigned_url at 0x7fcb21bc6660>
2023-11-07 05:52:03,064 - MainThread - botocore.configprovider - DEBUG - Looking for endpoint for cloudwatch via: environment_service
2023-11-07 05:52:03,064 - MainThread - botocore.configprovider - DEBUG - Looking for endpoint for cloudwatch via: environment_global
2023-11-07 05:52:03,064 - MainThread - botocore.configprovider - DEBUG - Looking for endpoint for cloudwatch via: config_service
2023-11-07 05:52:03,065 - MainThread - botocore.configprovider - DEBUG - Looking for endpoint for cloudwatch via: config_global
2023-11-07 05:52:03,065 - MainThread - botocore.configprovider - DEBUG - No configured endpoint found.
2023-11-07 05:52:03,068 - MainThread - botocore.endpoint - DEBUG - Setting monitoring timeout as (60, 60)
2023-11-07 05:52:03,070 - MainThread - botocore.regions - DEBUG - Calling endpoint provider with parameters: {'Region': 'eu-central-1', 'UseDualStack': False, 'UseFIPS': False}
2023-11-07 05:52:03,071 - MainThread - botocore.regions - DEBUG - Endpoint provider result: https://monitoring.eu-central-1.amazonaws.com
2023-11-07 05:52:03,071 - MainThread - botocore.hooks - DEBUG - Event provide-client-params.cloudwatch.GetMetricStatistics: calling handler <function base64_decode_input_blobs at 0x7fcb1f073f60>
2023-11-07 05:52:03,072 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.cloudwatch.GetMetricStatistics: calling handler <function generate_idempotent_uuid at 0x7fcb21440400>
2023-11-07 05:52:03,073 - MainThread - botocore.hooks - DEBUG - Event before-call.cloudwatch.GetMetricStatistics: calling handler <function inject_api_version_header_if_needed at 0x7fcb21441ee0>
2023-11-07 05:52:03,073 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=GetMetricStatistics) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/2.13.8 Python/3.11.4 Linux/4.18.0-477.27.1.el8_8.x86_64 exe/x86_64.oracle.8 prompt/off command/cloudwatch.get-metric-statistics'}, 'body': {'Action': 'GetMetricStatistics', 'Version': '2010-08-01', 'Namespace': 'AWS/ElastiCache', 'MetricName': 'CPUUtilization', 'Dimensions.member.1.Name': 'CacheClusterId', 'Dimensions.member.1.Value': 'prod-redis', 'StartTime': '2023-11-07T04:42:00Z', 'EndTime': '2023-11-07T04:52:00Z', 'Period': 60, 'Statistics.member.1': 'Average'}, 'url': 'https://monitoring.eu-central-1.amazonaws.com/', 'context': {'client_region': 'eu-central-1', 'client_config': <botocore.config.Config object at 0x7fcb1e5d4e10>, 'has_streaming_input': False, 'auth_type': None}}
2023-11-07 05:52:03,073 - MainThread - botocore.hooks - DEBUG - Event request-created.cloudwatch.GetMetricStatistics: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fcb1e5e4750>>
2023-11-07 05:52:03,074 - MainThread - botocore.hooks - DEBUG - Event choose-signer.cloudwatch.GetMetricStatistics: calling handler <function set_operation_specific_signer at 0x7fcb214402c0>
2023-11-07 05:52:03,074 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2023-11-07 05:52:03,074 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-www-form-urlencoded; charset=utf-8
host:monitoring.eu-central-1.amazonaws.com
x-amz-date:20231107T045203Z

content-type;host;x-amz-date
d212e11ada3f067fa809cb26b887d69837f2f55f6c8491eb9f1f2ac8ac3603b6
2023-11-07 05:52:03,074 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20231107T045203Z
20231107/eu-central-1/monitoring/aws4_request
ea8afa01ac7d801d06a07d68d75162fa06f23ef325756dc8c84dfd4c40639a00
2023-11-07 05:52:03,074 - MainThread - botocore.auth - DEBUG - Signature:
e701d4047fac6be8d71dd46248aa57964fedd44e073b0ae73ec9cf2406da08f9
2023-11-07 05:52:03,075 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://monitoring.eu-central-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'aws-cli/2.13.8 Python/3.11.4 Linux/4.18.0-477.27.1.el8_8.x86_64 exe/x86_64.oracle.8 prompt/off command/cloudwatch.get-metric-statistics', 'X-Amz-Date': b'20231107T045203Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIA56ZMVH34RCLBXPPC/20231107/eu-central-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=e701d4047fac6be8d71dd46248aa57964fedd44e073b0ae73ec9cf2406da08f9', 'Content-Length': '282'}>
2023-11-07 05:52:03,075 - MainThread - botocore.httpsession - DEBUG - Certificate path: /usr/local/aws-cli/v2/2.13.8/dist/awscli/botocore/cacert.pem
2023-11-07 05:52:03,076 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): monitoring.eu-central-1.amazonaws.com:443
2023-11-07 05:52:03,102 - MainThread - urllib3.connectionpool - DEBUG - https://monitoring.eu-central-1.amazonaws.com:443 "POST / HTTP/1.1" 200 337
2023-11-07 05:52:03,103 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'd40e6a03-e0be-4661-b767-f1696980ee35', 'Content-Type': 'text/xml', 'Content-Length': '337', 'Date': 'Tue, 07 Nov 2023 04:52:02 GMT'}
2023-11-07 05:52:03,103 - MainThread - botocore.parsers - DEBUG - Response body:
b'<GetMetricStatisticsResponse xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">\n  <GetMetricStatisticsResult>\n    <Datapoints/>\n    <Label>CPUUtilization</Label>\n  </GetMetricStatisticsResult>\n  <ResponseMetadata>\n    <RequestId>d40e6a03-e0be-4661-b767-f1696980ee35</RequestId>\n  </ResponseMetadata>\n</GetMetricStatisticsResponse>\n'
2023-11-07 05:52:03,104 - MainThread - botocore.hooks - DEBUG - Event needs-retry.cloudwatch.GetMetricStatistics: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7fcb1e0f7350>>
2023-11-07 05:52:03,105 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2023-11-07 05:52:03,106 - MainThread - botocore.hooks - DEBUG - Event after-call.cloudwatch.GetMetricStatistics: calling handler <bound method RetryQuotaChecker.release_retry_quota of <botocore.retries.standard.RetryQuotaChecker object at 0x7fcb1f0be410>>
2023-11-07 05:52:03,107 - MainThread - awscli.formatter - DEBUG - RequestId: d40e6a03-e0be-4661-b767-f1696980ee35
UNKNOWN: No metrics. Check your options or use --zeroed option to set 0 on undefined values
Command line: 'aws cloudwatch get-metric-statistics --region eu-central-1 --namespace AWS/ElastiCache --metric-name 'CPUUtilization' --start-time 2023-11-07T04:42:00 --end-time 2023-11-07T04:52:00 --period 60 --statistics Average --output json --dimensions 'Name=CacheClusterId,Value=prod-redis' --debug'