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

feat: fetch metrics for the dynamo and elasticache resources #303

Merged
merged 4 commits into from
Apr 3, 2024

Conversation

nand4011
Copy link
Contributor

@nand4011 nand4011 commented Apr 1, 2024

Change the get metadata functions for dynamo and elasticache to return a resource that will later be serialized into json.

Add code for fetching metrics based on the dynamo and elasticache resources.

Change the linter cli to print out the full json including the metrics.

Copy link
Contributor

@bruuuuuuuce bruuuuuuuce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Left a few clarifying questions/nits

momento/src/commands/cloud_linter/dynamodb.rs Show resolved Hide resolved
momento/src/commands/cloud_linter/dynamodb.rs Show resolved Hide resolved
let metrics =
query_metrics_for_target(&metrics_client, Arc::clone(&limiter), metric_target).await?;
self.set_metrics(metrics);
self.set_metric_period_seconds(60 * 60 * 24);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is 1 day right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is.

Base automatically changed from aws-linter-metadata to main April 2, 2024 21:43
Change the get metadata functions for dynamo and elasticache to return
a resource that will later be serialized into json.

Add code for fetching metrics based on the dynamo and elasticache
resources.

Change the linter cli to print out the full json including the metrics.
Properly populate the region field in the resources.
Add progress bars/indicators for the different steps.
Copy link
Contributor

@bruuuuuuuce bruuuuuuuce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@nand4011 nand4011 merged commit abdd076 into main Apr 3, 2024
3 checks passed
@nand4011 nand4011 deleted the aws-linter-metrics branch April 3, 2024 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants