Skip to content

Add supervisorId as a dimension to task stat metrics#18920

Merged
cryptoe merged 3 commits intoapache:masterfrom
capistrant:TaskStats-supervisorId
Jan 16, 2026
Merged

Add supervisorId as a dimension to task stat metrics#18920
cryptoe merged 3 commits intoapache:masterfrom
capistrant:TaskStats-supervisorId

Conversation

@capistrant
Copy link
Contributor

@capistrant capistrant commented Jan 15, 2026

Description

Add supervisorId dimension to task stats emitted by the Overlord (or Coordinator)

Now that multiple supervisors can ingest into the same Druid datasource, the existing dataSource dimension in these metrics can lose some of its value. Adding a supervisorId dimension can add better visibility in the metrics for such cases of > 1 supervisor writing to the same Druid datasource. A similar change was made for metrics emitted by individual streaming tasks here: #18803

Release note

TaskCountStatsMonitor metrics were updated to add supervisorId dimension for streaming tasks.


Key changed/added classes in this PR
  • TaskQueue

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

'null' value for all tasks that are not of type SeekableStreamIndextask
@cryptoe cryptoe merged commit 2c5c121 into apache:master Jan 16, 2026
40 checks passed
@kgyrtkirk kgyrtkirk added this to the 37.0.0 milestone Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants