Skip to content

*: Initialize gRPC server metrics#1478

Merged
brancz merged 3 commits intothanos-io:masterfrom
kakkoyun:initialize_grpc_metrics
Sep 3, 2019
Merged

*: Initialize gRPC server metrics#1478
brancz merged 3 commits intothanos-io:masterfrom
kakkoyun:initialize_grpc_metrics

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

@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>
@kakkoyun kakkoyun force-pushed the initialize_grpc_metrics branch from 1636ff3 to 1bf2966 Compare September 2, 2019 14:43
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.

3 participants