Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ private Map<String, String> getThroughputTotalMetricTags(
queryMetricTags.remove(StreamsMetricsImpl.TASK_ID_TAG);
queryMetricTags.remove(StreamsMetricsImpl.PROCESSOR_NODE_ID_TAG);

// Convert the tag name from 'topic-name' to 'topic' to conform to client metrics
// We can remove this once the Streams fix is merged https://github.com/apache/kafka/pull/12310
queryMetricTags.remove(StreamsMetricsImpl.TOPIC_NAME_TAG);
queryMetricTags.put(KSQL_TOPIC_TAG, topic);

// Replace thread id with consumer group member id to match existing client tag/Druid label
final String threadId = queryMetricTags.remove(StreamsMetricsImpl.THREAD_ID_TAG);
queryMetricTags.put(KSQL_CONSUMER_GROUP_MEMBER_ID_TAG, threadId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,25 @@ public class ThroughputMetricsReporterTest {
"thread-id", THREAD_ID,
"task-id", TASK_ID_1,
"processor-node-id", PROCESSOR_NODE_ID,
"topic-name", TOPIC_NAME
"topic", TOPIC_NAME
);
private static final Map<String, String> STREAMS_TAGS_TASK_2 = ImmutableMap.of(
"thread-id", THREAD_ID,
"task-id", TASK_ID_2,
"processor-node-id", PROCESSOR_NODE_ID,
"topic-name", TOPIC_NAME
"topic", TOPIC_NAME
);
private static final Map<String, String> STREAMS_TAGS_PROCESSOR_2 = ImmutableMap.of(
"thread-id", THREAD_ID,
"task-id", TASK_ID_2,
"processor-node-id", PROCESSOR_NODE_ID_2,
"topic-name", TOPIC_NAME
"topic", TOPIC_NAME
);
private static final Map<String, String> STREAMS_TAGS_TOPIC_2 = ImmutableMap.of(
"thread-id", THREAD_ID_2,
"task-id", TASK_ID_1,
"processor-node-id", PROCESSOR_NODE_ID,
"topic-name", TOPIC_NAME_2
"topic", TOPIC_NAME_2
);
private static final Map<String, String> QUERY_ONE_TAGS = ImmutableMap.of(
"logical_cluster_id", "lksqlc-12345",
Expand Down