fix(aws): skip failing RDS and VPC collectors instead of aborting provider#863
fix(aws): skip failing RDS and VPC collectors instead of aborting provider#863stephan-rayner wants to merge 1 commit intomainfrom
Conversation
…vider createAWSConfig failures during RDS and VPC collector init returned nil, err, killing the entire AWS provider. S3 and EC2 already log and continue on init failure. Align RDS and VPC with the same pattern so a pricing config error for one collector does not drop metrics from all others. Also makes createAWSConfig a package-level var to allow injection in tests. Adds unit tests asserting that a createAWSConfig failure for RDS or VPC skips that collector while leaving the remaining collectors intact. Fixes #716
5e41c46 to
36aeb94
Compare
|
hm, I'm more unsure about this one. I agree that we should not block other collectors from progressing if one of the collectors fails to be initialised. But just logging an error and continuing will not be enough because then our error rate SLOs will never fire and we won't know a collector broke in the first place. |
I like that @leonorfmartins! It was a kind of a coin flip for this change. A little more than half of the resources we look at do it the way in the PR and a little less than half do it the way you are suggesting. Upon further reflection, and after having slept on it, I agree with you! |
Summary
nil, err, killing the entire AWS provider and dropping all metrics from every other servicecontinueso remaining collectors stay intactFixes #716
Test plan
make testpasses