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

Move e2e tests for metrics export to integration status to reduce crosstalk flakiness #1782

Closed
wants to merge 11 commits into from
4 changes: 4 additions & 0 deletions metrics/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ func isNewExporterRequired(newConfig *metricsConfig) bool {
return newConfig.collectorAddress != cc.collectorAddress || newConfig.requireSecure != cc.requireSecure
}

if newConfig.backendDestination == prometheus {
return newConfig.prometheusPort != cc.prometheusPort
}

return newConfig.backendDestination == stackdriver && newConfig.stackdriverClientConfig != cc.stackdriverClientConfig
}
Copy link
Contributor

Choose a reason for hiding this comment

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

return dest=promo && nc.pp != cc.pp || des == stack && nc.sCC != cc.sCC?

Copy link
Member Author

Choose a reason for hiding this comment

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

I might make this a switch, I worry about having a conditional with 4 boolean expressions being hard to maintain.


Expand Down
Loading