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

More spanner observability / Go Scheduler metrics #1609

Merged
merged 6 commits into from
Oct 25, 2023

Conversation

vroldanbet
Copy link
Contributor

@vroldanbet vroldanbet commented Oct 24, 2023

  • adds opentelemetry integration into Spanner client
  • exposes Spanner client metrics via prometheus
  • enables All Go runtime metrics (including scheduler)

@github-actions github-actions bot added the area/datastore Affects the storage system label Oct 24, 2023
Base automatically changed from add-singleflight-check-dispatch to main October 24, 2023 16:55
@github-actions github-actions bot added the area/dependencies Affects dependencies label Oct 24, 2023
@vroldanbet vroldanbet force-pushed the more-spanner-observability branch 5 times, most recently from 2788119 to 65b5e32 Compare October 25, 2023 09:35
@github-actions github-actions bot added the area/CLI Affects the command line label Oct 25, 2023
@vroldanbet vroldanbet self-assigned this Oct 25, 2023
@vroldanbet vroldanbet force-pushed the more-spanner-observability branch from 81e6af5 to 21b85c7 Compare October 25, 2023 12:29
@vroldanbet vroldanbet marked this pull request as ready for review October 25, 2023 12:29
@vroldanbet vroldanbet requested a review from a team October 25, 2023 12:29
@vroldanbet vroldanbet changed the title More spanner observability More spanner observability / Go Scheduler metrics Oct 25, 2023
//
// in order to register this, the package must be imported anonymously
func init() {
prometheus.DefaultRegisterer.Unregister(collectors.NewGoCollector())
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah nice, I spent a bunch of time trying to register the scheduler metrics but they kept including metrics that conflicted with existing ones as a side-effect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Spent most of the time dealing with the same 😅 We could also create a new promhttp handler with a Gatherer, but would require a different HTTP endpoint and that's a mess. The reason we have to do this is because we rely heavily on the default prometheus Registry - we may want to revisit that.

@vroldanbet vroldanbet added this pull request to the merge queue Oct 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 25, 2023
@vroldanbet vroldanbet added this pull request to the merge queue Oct 25, 2023
Merged via the queue into main with commit 9768443 Oct 25, 2023
19 checks passed
@vroldanbet vroldanbet deleted the more-spanner-observability branch October 25, 2023 15:45
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/CLI Affects the command line area/datastore Affects the storage system area/dependencies Affects dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants