Skip to content

Commit

Permalink
Merge pull request #1 from liorfranko/patch-1
Browse files Browse the repository at this point in the history
Add kafka.streams metrics
  • Loading branch information
arnoldyahad authored Jul 20, 2022
2 parents a6aa51d + 15cbc93 commit 693e2b5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions files/configs/kafka-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,42 @@ cacheRules: true
whitelistObjectNames:
- "kafka.consumer:*"
- "kafka.producer:*"
- "kafka.streams:*"
blacklistObjectNames:
- "kafka.streams:type=kafka-metrics-count"
- "kafka.admin.client:*"
- "kafka.consumer:type=*,id=*"
- "kafka.producer:type=*,id=*"
- "kafka.*:type=kafka-metrics-count,*"
rules:
- pattern: "kafka.streams<type=(.+), thread-id=(.+), task-id=(.+), (.+)=(.+)><>(.+):"
name: kafka_streams_$1_$6
type: GAUGE
labels:
thread_id: "$2"
task_id: "$3"
$4: "$5"
# kafka.streams:type=stream-task-metrics,task-id=*,thread-id=*
- pattern: "kafka.streams<type=(.+), thread-id=(.+), task-id=(.+)><>(.+):"
name: kafka_streams_$1_$4
type: GAUGE
labels:
thread_id: "$2"
task_id: "$3"
# kafka.streams:type=stream-metrics,client-id=*
- pattern: "kafka.streams<type=stream-metrics, (.+)=(.+)><>(state|alive-stream-threads|commit-id|version|application-id): (.+)"
name: kafka_streams_stream_metrics
value: 1
type: UNTYPED
labels:
$1: "$2"
$3: "$4"
# kafka.streams:type=stream-thread-metrics,thread-id=*
- pattern: "kafka.streams<type=(.+), (.+)=(.+)><>([^:]+)"
name: kafka_streams_$1_$4
type: GAUGE
labels:
$2: "$3"
# "kafka.consumer:type=app-info,client-id=*"
# "kafka.producer:type=app-info,client-id=*"
- pattern: "kafka.(.+)<type=app-info, client-id=(.+)><>(.+): (.+)"
Expand Down

0 comments on commit 693e2b5

Please sign in to comment.