Skip to content

Commit

Permalink
result is actually in MB not bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
akumar1214 committed Nov 5, 2024
1 parent ff4a7c5 commit 48f6a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_min_free_storage(cluster_name)
]
})

metric_response.metric_data_results.first.values.first / (1024 * 1024) # result is in bytes
metric_response.metric_data_results.first.values.first
end

def get_queue_attributes(queue_urls)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def cloudwatch_client_with_storage_metrics(free_storage)
metric_data_results: [
{
id: "minFreeStorageAcrossNodes",
values: [(free_storage * 1024 * 1024).to_f],
values: [free_storage.to_f],
timestamps: [::Time.parse("2024-10-30T12:00:00Z")]
}
]
Expand Down

0 comments on commit 48f6a76

Please sign in to comment.