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

*: Initialize gRPC server metrics #1478

Merged
merged 3 commits into from Sep 3, 2019

Conversation

kakkoyun
Copy link
Member

This PR initializes gRPC server metrics as soon as server starts, to provide more reliable data for instrumentation.

Changes

  • Initialize gRPC server metrics

Verification

  • make test | build | lint and local test

cmd/thanos/query.go Outdated Show resolved Hide resolved
cmd/thanos/main.go Outdated Show resolved Hide resolved
@kakkoyun kakkoyun force-pushed the initialize_grpc_metrics branch 2 times, most recently from 27ab81b to 1636ff3 Compare September 2, 2019 09:43
@kakkoyun
Copy link
Member Author

kakkoyun commented Sep 2, 2019

It's failed because of a dependency issue:

>> fetching github.com/minio/minio@RELEASE.2018-10-06T00-15-16Z revision/version
# cd .; git clone https://git.apache.org/thrift.git /tmp/thanos-go/src/git.apache.org/thrift.git
Cloning into '/tmp/thanos-go/src/git.apache.org/thrift.git'...
fatal: unable to access 'https://git.apache.org/thrift.git/': Failed to connect to git.apache.org port 443: Connection timed out
package github.com/minio/minio
	imports git.apache.org/thrift.git/lib/go/thrift: exit status 128
Makefile:209: recipe for target 'test-deps' failed
make[2]: *** [test-deps] Error 1
make[2]: Leaving directory '/go/src/github.com/thanos-io/thanos'
Makefile:193: recipe for target 'test-only-gcs' failed
make[1]: *** [test-only-gcs] Error 2
make[1]: Leaving directory '/go/src/github.com/thanos-io/thanos'
Makefile:202: recipe for target 'test-local' failed
make: *** [test-local] Error 2
Exited with code 2

@kakkoyun
Copy link
Member Author

kakkoyun commented Sep 2, 2019

There's already an issue (#1483) opened for the failure.

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Copy link
Member

@squat squat left a comment

Choose a reason for hiding this comment

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

lgtm

@brancz brancz merged commit f7a238f into thanos-io:master Sep 3, 2019
wbh1 pushed a commit to wbh1/thanos that referenced this pull request Sep 17, 2019
* Initialize grpc server metrics

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>

* Ad change log

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>

* Refactor. Separate server initialization from server options

Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants