Skip to content

Commit

Permalink
add kafka metrics receiver mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Dec 13, 2023
1 parent f1232fc commit c2f57f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/otlp/metrics/metrics_remapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ func remapKafkaMetrics(all pmetric.MetricSlice, m pmetric.Metric) {
copyMetric(all, m, "kafka.request.produce.time.avg", 1, kv{"type", "produce"})
copyMetric(all, m, "kafka.request.fetch_consumer.time.avg", 1, kv{"type", "fetchconsumer"})
copyMetric(all, m, "kafka.request.fetch_follower.time.avg", 1, kv{"type", "fetchfollower"})
// kafka metrics receiver
case "kafka.partition.current_offset":
copyMetric(all, m, "kafka.broker_offset", 1)
case "kafka.consumer_group.lag":
copyMetric(all, m, "kafka.consumer_lag", 1)
case "kafka.consumer_group.offset":
copyMetric(all, m, "kafka.consumer_offset", 1)
}
}

Expand Down

0 comments on commit c2f57f7

Please sign in to comment.