Package org.apache.druid.server.metrics
Interface SupervisorStatsProvider
public interface SupervisorStatsProvider
Provides supervisor stats for metrics emission. Used by
SupervisorStatsMonitor
to report supervisor count and state metrics.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classImmutable snapshot of a single supervisor's stats for metrics emission. -
Method Summary
Modifier and TypeMethodDescriptionReturns a snapshot of per-supervisor stats for the current emission period.
-
Method Details
-
getSupervisorStats
Collection<SupervisorStatsProvider.SupervisorStats> getSupervisorStats()Returns a snapshot of per-supervisor stats for the current emission period. Each entry represents one active supervisor with its id, type, and state.- Returns:
- collection of supervisor stats; empty if no supervisors are active
-