Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
suneet-s committed Aug 3, 2023
1 parent f3ff440 commit 619f18e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/operations/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ These metrics are for the Druid Coordinator and are reset each time the Coordina

### Service Health

|Metric|Description|Dimensions|Normal value|
|------|-----------|----------|------------|
| `service/heartbeat` | Metric indicating the service is up. `ServiceStatusMonitor` must be enabled. |`leader` on the Overlord and Coordinator.|1|
|Metric|Description| Dimensions |Normal value|
|------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------|
| `service/heartbeat` | Metric indicating the service is up. `ServiceStatusMonitor` must be enabled. | `leader` on the Overlord and Coordinator.<br />`workerVersion`, `workerCapacity`, `workerEnabled` on the Middle Manager.<br />`taskId`, `groupId`, `taskType`, `dataSource` on the Peon |1|

### Historical

Expand Down
9 changes: 5 additions & 4 deletions services/src/main/java/org/apache/druid/cli/CliPeon.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
import org.apache.druid.java.util.common.logger.Logger;
import org.apache.druid.metadata.IndexerSQLMetadataStorageCoordinator;
import org.apache.druid.metadata.input.InputSourceModule;
import org.apache.druid.query.DruidMetrics;
import org.apache.druid.query.QuerySegmentWalker;
import org.apache.druid.query.lookup.LookupModule;
import org.apache.druid.segment.handoff.CoordinatorBasedSegmentHandoffNotifierConfig;
Expand Down Expand Up @@ -272,10 +273,10 @@ public Supplier<Map<String, Object>> heartbeatDimensions(Task task)
{
return Suppliers.ofInstance(
ImmutableMap.of(
"taskId", task.getId(),
"dataSource", task.getDataSource(),
"taskType", task.getType(),
"groupId", task.getGroupId()
DruidMetrics.TASK_ID, task.getId(),
DruidMetrics.DATASOURCE, task.getDataSource(),
DruidMetrics.TASK_TYPE, task.getType(),
DruidMetrics.GROUP_ID, task.getGroupId()
)
);
}
Expand Down

0 comments on commit 619f18e

Please sign in to comment.