Skip to content

Commit

Permalink
Kafka - Added session metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
DingGGu committed Apr 18, 2021
1 parent f6185cf commit 397c3c8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kafka/datadog_checks/kafka/data/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -664,3 +664,21 @@ jmx_metrics:
Count:
metric_type: rate
alias: kafka.session.zookeeper.sync.rate

#
# Session stats
#
- include:
domain: 'kafka.server'
bean: 'kafka.server:type=FetchSessionCache,name=NumIncrementalFetchSessions'
attribute:
Value:
metric_type: gauge
alias: kafka.session.fetch.count
- include:
domain: 'kafka.server'
bean: 'kafka.server:type=FetchSessionCache,name=IncrementalFetchSessionEvictionsPerSec'
attribute:
Count:
alias: kafka.session.fetch.eviction
metric_type: rate
2 changes: 2 additions & 0 deletions kafka/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ kafka.topic.messages_in.rate,gauge,10,message,,Incoming message rate by topic,0,
kafka.topic.net.bytes_out.rate,gauge,10,byte,second,Outgoing byte rate by topic.,0,kafka,topic bytes out
kafka.topic.net.bytes_in.rate,gauge,10,byte,second,Incoming byte rate by topic.,0,kafka,topic bytes in
kafka.topic.net.bytes_rejected.rate,gauge,10,byte,second,Rejected byte rate by topic.,-1,kafka,topic bytes rejected
kafka.session.fetch.count,gauge,10,,,Number of fetch sessions.,0,kafka,fetch sessions
kafka.session.fetch.eviction,gauge,10,event,second,Eviction rate of fetch session.,0,kafka,eviction session rate
3 changes: 3 additions & 0 deletions kafka/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@
"kafka.session.zookeeper.expire.rate",
"kafka.session.zookeeper.readonly.rate",
"kafka.session.zookeeper.sync.rate",
# Session
"kafka.session.fetch.count",
"kafka.session.fetch.eviction",
]

0 comments on commit 397c3c8

Please sign in to comment.