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

Resolves GCP API calls for monitoring.googleapis.com to set of IPs #94

Merged
merged 26 commits into from
May 10, 2019

Conversation

nmdayton
Copy link
Contributor

No description provided.

@nmdayton nmdayton requested a review from jkohen February 27, 2019 16:32
Copy link
Contributor

@jkohen jkohen left a comment

Choose a reason for hiding this comment

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

Looking good. Looking forward to seeing the test.

cmd/stackdriver-prometheus-sidecar/main.go Outdated Show resolved Hide resolved
stackdriver/client.go Show resolved Hide resolved
cmd/stackdriver-prometheus-sidecar/main.go Show resolved Hide resolved
stackdriver/client.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Show resolved Hide resolved
stackdriver/client_test.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Show resolved Hide resolved
Copy link
Contributor

@jkohen jkohen left a comment

Choose a reason for hiding this comment

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

Great to see this!

Please make sure that vendor/google.golang.org/grpc/resolver/manual/manual.go isn't part of this PR (I'm not sure why it still is).

stackdriver/client.go Outdated Show resolved Hide resolved
stackdriver/client.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Outdated Show resolved Hide resolved
@@ -120,6 +127,11 @@ func (c *Client) getConnection(ctx context.Context) (*grpc.ClientConn, error) {
if len(c.url.Port()) > 0 {
address = fmt.Sprintf("%s:%s", address, c.url.Port())
}
if c.resolver != nil {
address = c.resolver.Scheme() + ":///" + address
Copy link
Contributor

Choose a reason for hiding this comment

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

What is c.resolver.Scheme() here? It seems like it wouldn't be an address, like what exists above on line 128.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some info here puts it better than I could: https://chromium.googlesource.com/external/github.com/grpc/grpc/+/v1.8.5/doc/naming.md The actual scheme is just a random series of letters. Most of what I know is that doc and the fact that we need it for dns. Let me know if you have other questions and I'll answer the best I can.

stackdriver/client_test.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Outdated Show resolved Hide resolved
cmd/stackdriver-prometheus-sidecar/main.go Outdated Show resolved Hide resolved
stackdriver/client_test.go Show resolved Hide resolved
@nmdayton nmdayton merged commit fc1c9e2 into master May 10, 2019
@jkohen jkohen deleted the nina-marie-sidecar branch November 16, 2019 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants