Skip to content

Instantly share code, notes, and snippets.

@mrwacky42
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrwacky42/abead1d8b26ad323d377 to your computer and use it in GitHub Desktop.
Save mrwacky42/abead1d8b26ad323d377 to your computer and use it in GitHub Desktop.
{
"region": "us-west-1",
"metrics": [
{
"aws_namespace": "AWS/S3", "aws_metric_name": "BucketSizeBytes",
"aws_dimensions": ["BucketName", "StorageType"],
"aws_dimension_select": {
"BucketName": ["<redacted>"],
"StorageType": ["StandardStorage"]
}
}
]
}
@mrwacky42
Copy link
Author

I'm having trouble collecting S3 stats with https://github.com/prometheus/cloudwatch_exporter.
I can get ELB stats, but S3 stats are just not reported, and no errors are generated.

@mrwacky42
Copy link
Author

The correct answer is: ask for non-default period/range:

{
    "region": "us-west-1",
    "metrics": [
        {
            "aws_namespace": "AWS/S3", "aws_metric_name": "BucketSizeBytes",
            "aws_dimensions": ["BucketName", "StorageType"],
            "aws_dimension_select": {
                "BucketName": ["redacted"],
                "StorageType": ["StandardStorage"]
            },
            "aws_statistics": ["Average"],
            "period_seconds":86400,
            "range_seconds":86400
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment