airbnb / kafka-statsd-metrics2

Send Kafka Metrics to StatsD.
Apache License 2.0
135 stars 49 forks source link

stasd metric value larger than jmx_port metric value #18

Open culiangfanzi opened 8 years ago

culiangfanzi commented 8 years ago

when i used jmx metrics and stasd metrics, I got different values。 the results below:

image

image

kafka version 0.8.2.2 server config:

# enable the support of statsd tag extension, e.g. datadog statsd (true)
external.kafka.statsd.tag.enabled=false

# a prefix for all metrics names (empty)
external.kafka.statsd.metrics.prefix=

# note that the StatsD reporter follows the global polling interval (10)
kafka.metrics.polling.interval.secs=10

# A regex to exclude some metrics
# Default is: (kafka\.consumer\.FetchRequestAndResponseMetrics.*)|(.*ReplicaFetcherThread.*)|(kafka\.server\.FetcherLagMetrics\..*)|(kafka\.log\.Log\..*)|(kafka\.cluster\.Partition\..*) 
#
# The metric name is formatted with this template: group.type.scope.name
#
# external.kafka.statsd.metrics.exclude_regex=

#
# Each metric provides multiple dimensions: min, max, meanRate, etc
# This might be too much data.
# It is possible to disable some metric dimensions with the following properties:
# By default all dimenstions are enabled.
#
# external.kafka.statsd.dimension.enabled.count=true
# external.kafka.statsd.dimension.enabled.meanRate=true
# external.kafka.statsd.dimension.enabled.rate1m=true
# external.kafka.statsd.dimension.enabled.rate5m=true
# external.kafka.statsd.dimension.enabled.rate15m=true
# external.kafka.statsd.dimension.enabled.min=true
# external.kafka.statsd.dimension.enabled.max=true
# external.kafka.statsd.dimension.enabled.mean=true
# external.kafka.statsd.dimension.enabled.stddev=true
# external.kafka.statsd.dimension.enabled.median=true
# external.kafka.statsd.dimension.enabled.p75=true
# external.kafka.statsd.dimension.enabled.p95=true
# external.kafka.statsd.dimension.enabled.p98=true
# external.kafka.statsd.dimension.enabled.p99=true
# external.kafka.statsd.dimension.enabled.p999=true