Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"EnhancedMonitoring" not displayed for kinesis describe-stream command output #1929

Closed
quiver opened this issue Apr 20, 2016 · 1 comment
Closed
Labels
bug This issue is a bug.

Comments

@quiver
Copy link
Contributor

quiver commented Apr 20, 2016

This is related new feature, shard level metrics.

https://aws.amazon.com/blogs/aws/amazon-kinesis-update-amazon-elasticsearch-service-integration-shard-level-metrics-time-based-iterators/

For describe-stream API calls, EnhancedMonitoring is included in the response body, but CLI output does not include them.
See the following sessions:

$ aws --version
aws-cli/1.10.21 Python/2.7.10 Linux/4.4.5-15.26.amzn1.x86_64 botocore/1.4.12
$ aws kinesis create-stream --stream-name foo --shard-count 1
$ aws kinesis describe-stream --stream-name foo --debug
...
2016-04-20 03:24:40,538 - MainThread - botocore.parsers - DEBUG - Response body:
{"StreamDescription":{"EnhancedMonitoring":[{"ShardLevelMetrics":[]}],"HasMoreShards":false,"RetentionPeriodHours":24,"Shards":[{"HashKeyRange":{"EndingHashKey":"340282366920938463463374607431768211455","StartingHashKey":"0"},"SequenceNumberRange":{"StartingSequenceNumber":"49561203237286696357221491199423707957921949335917953026"},"ShardId":"shardId-000000000000"}],"StreamARN":"arn:aws:kinesis:ap-northeast-1:123456789012:stream/foo","StreamName":"foo","StreamStatus":"ACTIVE"}}
...
2016-04-20 03:24:40,540 - MainThread - awscli.errorhandler - DEBUG - HTTP Response Code: 200
{
    "StreamDescription": {
        "RetentionPeriodHours": 24,
        "StreamStatus": "ACTIVE",
        "StreamName": "foo",
        "StreamARN": "arn:aws:kinesis:ap-northeast-1:123456789012:stream/foo",
        "Shards": [
            {
                "ShardId": "shardId-000000000000",
                "HashKeyRange": {
                    "EndingHashKey": "340282366920938463463374607431768211455",
                    "StartingHashKey": "0"
                },
                "SequenceNumberRange": {
                    "StartingSequenceNumber": "49561203237286696357221491199423707957921949335917953026"
                }
            }
        ]
    }
}
$ aws kinesis enable-enhanced-monitoring --stream-name foo --shard-level-metrics ALL
{
    "StreamName": "foo",
    "CurrentShardLevelMetrics": [],
    "DesiredShardLevelMetrics": [
        "IncomingBytes",
        "OutgoingRecords",
        "IteratorAgeMilliseconds",
        "IncomingRecords",
        "ReadProvisionedThroughputExceeded",
        "WriteProvisionedThroughputExceeded",
        "OutgoingBytes"
    ]
}

$ aws kinesis describe-stream --stream-name foo --debug
...
2016-04-20 03:36:21,892 - MainThread - botocore.parsers - DEBUG - Response body:
{"StreamDescription":{"EnhancedMonitoring":[{"ShardLevelMetrics":["IncomingBytes","OutgoingRecords","IteratorAgeMilliseconds","IncomingRecords","ReadProvisionedThroughputExceeded","WriteProvisionedThroughputExceeded","OutgoingBytes"]}],"HasMoreShards":false,"RetentionPeriodHours":24,"Shards":[{"HashKeyRange":{"EndingHashKey":"340282366920938463463374607431768211455","StartingHashKey":"0"},"SequenceNumberRange":{"StartingSequenceNumber":"49561203237286696357221491199423707957921949335917953026"},"ShardId":"shardId-000000000000"}],"StreamARN":"arn:aws:kinesis:ap-northeast-1:123456789012:stream/foo","StreamName":"foo","StreamStatus":"ACTIVE"}}
...
2016-04-20 03:36:21,894 - MainThread - awscli.errorhandler - DEBUG - HTTP Response Code: 200
{
    "StreamDescription": {
        "RetentionPeriodHours": 24,
        "StreamStatus": "ACTIVE",
        "StreamName": "foo",
        "StreamARN": "arn:aws:kinesis:ap-northeast-1:123456789012:stream/foo",
        "Shards": [
            {
                "ShardId": "shardId-000000000000",
                "HashKeyRange": {
                    "EndingHashKey": "340282366920938463463374607431768211455",
                    "StartingHashKey": "0"
                },
                "SequenceNumberRange": {
                    "StartingSequenceNumber": "49561203237286696357221491199423707957921949335917953026"
                }
            }
        ]
    }
}
@jamesls
Copy link
Member

jamesls commented Apr 22, 2016

Looks like we need to update our pagination config here. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants