-
Notifications
You must be signed in to change notification settings - Fork 10
Collect cloud volume metrics from AWS #620
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
base: main
Are you sure you want to change the base?
Conversation
b824b16 to
3cdad7c
Compare
3cdad7c to
d937fd7
Compare
fc08852 to
dfa4e9c
Compare
| instanceIDToNodeName[instanceID] = node.Name | ||
| } | ||
|
|
||
| err := c.cloudProvider.RefreshStorageState(ctx, instanceIDs...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I see RefreshStorageState and GetStorageState are always called together. Do we really need two method for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified to only use GetStorageState
|
|
||
| message CloudVolumeInfo { | ||
| string cloud_provider = 1; | ||
| string zone = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also care about the region?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The region is not returned in the API response and we would need to derive it from the zone so I would leave the zone only for now
| } | ||
|
|
||
| // TestRefreshStorageState calls RefreshStorageState and prints the results. | ||
| func TestRefreshStorageState(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this test always run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we should have e2e tests covering CSP functionality but we don't have those yet. These integration test are meant to be used only for local testing for now
dfa4e9c to
e848e4f
Compare
Collect and send metrics about AWS volumes. The controller needs to be configured with the following values:
Example output for node
ip-192-168-91-132.eu-central-1.compute.internal: