Skip to content

Conversation

@Vanlightly
Copy link
Contributor

Motivation

As part of BP-44, some metrics can provide more insight with the addition of labels that allow for drill-down by thread pool and thread ordinal.

Changes

  • Addition of thread-scoped OpStatsLogger and Counter implementations (Prometheus only as this point).
  • New methods in StatsLogger interface for obtaining these thread-scoped variants
  • ThreadRegistry for the mapping of thread ids to thread pools and thread ordinal numbers.

This PR does not include the usage of these new thread-scoped variants as so is completely backwards compatible.

Master Issue: #2835

@Vanlightly Vanlightly force-pushed the thread-scoped-stats branch 4 times, most recently from 94d77ac to 1d732ba Compare October 21, 2021 10:26
The Counter and OpStatsLogger have new variants that
add threadPool and thread labels to their metrics.
These new variants can be obtained via new methods
in the StatsLogger interface.
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

very good, I left some comments

@Vanlightly Vanlightly requested a review from eolivelli October 25, 2021 09:19
@Vanlightly
Copy link
Contributor Author

@eolivelli can you PTAL, I can follow up with another PR with the new and modified metrics.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM

@eolivelli eolivelli merged commit 77a6adb into apache:master Oct 27, 2021
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
…Counter (apache#2839)

* Addition of thread-scoped stats

The Counter and OpStatsLogger have new variants that
add threadPool and thread labels to their metrics.
These new variants can be obtained via new methods
in the StatsLogger interface.
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.

4 participants