Skip to content

Commit

Permalink
Merge pull request #1029 from DataDog/conor/fix-kafka-metrics
Browse files Browse the repository at this point in the history
Treat all Mean values from Kafka as gauges instead of counters.
  • Loading branch information
Remi Hakim committed Jul 14, 2014
2 parents cdda553 + 75863d8 commit 76d81a1
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions conf.d/kafka.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ init_config:
bean: '"kafka.server":type="BrokerTopicMetrics",name="AllTopicsBytesOutPerSec"'
attribute:
MeanRate:
metric_type: counter
metric_type: gauge
alias: kafka.net.bytes_out
- include:
domain: '"kafka.server"'
bean: '"kafka.server":type="BrokerTopicMetrics",name="AllTopicsBytesInPerSec"'
attribute:
MeanRate:
metric_type: counter
metric_type: gauge
alias: kafka.net.bytes_in
- include:
domain: '"kafka.server"'
Expand Down Expand Up @@ -66,50 +66,50 @@ init_config:
bean: '"kafka.network":type="RequestMetrics",name="Produce-TotalTimeMs"'
attribute:
Mean:
metric_type: counter
metric_type: gauge
alias: kafka.request.produce.time.avg
99thPercentile:
metric_type: counter
metric_type: gauge
alias: kafka.request.produce.time.99percentile
- include:
domain: '"kafka.network"'
bean: '"kafka.network":type="RequestMetrics",name="Fetch-TotalTimeMs"'
attribute:
Mean:
metric_type: counter
metric_type: gauge
alias: kafka.request.fetch.time.avg
99thPercentile:
metric_type: counter
metric_type: gauge
alias: kafka.request.fetch.time.99percentile
- include:
domain: '"kafka.network"'
bean: '"kafka.network":type="RequestMetrics",name="UpdateMetadata-TotalTimeMs"'
attribute:
Mean:
metric_type: counter
metric_type: gauge
alias: kafka.request.update_metadata.time.avg
99thPercentile:
metric_type: counter
metric_type: gauge
alias: kafka.request.update_metadata.time.99percentile
- include:
domain: '"kafka.network"'
bean: '"kafka.network":type="RequestMetrics",name="Metadata-TotalTimeMs"'
attribute:
Mean:
metric_type: counter
metric_type: gauge
alias: kafka.request.metadata.time.avg
99thPercentile:
metric_type: counter
metric_type: gauge
alias: kafka.request.metadata.time.99percentile
- include:
domain: '"kafka.network"'
bean: '"kafka.network":type="RequestMetrics",name="Offsets-TotalTimeMs"'
attribute:
Mean:
metric_type: counter
metric_type: gauge
alias: kafka.request.offsets.time.avg
99thPercentile:
metric_type: counter
metric_type: gauge
alias: kafka.request.offsets.time.99percentile

#
Expand All @@ -120,28 +120,28 @@ init_config:
bean: '"kafka.server":type="ReplicaManager",name="ISRShrinksPerSec"'
attribute:
MeanRate:
metric_type: counter
metric_type: gauge
alias: kafka.replication.isr_shrinks
- include:
domain: '"kafka.server"'
bean: '"kafka.server":type="ReplicaManager",name="ISRExpandsPerSec"'
attribute:
MeanRate:
metric_type: counter
metric_type: gauge
alias: kafka.replication.isr_expands
- include:
domain: '"kafka.server"'
bean: '"kafka.server":type="ControllerStats",name="LeaderElectionRateAndTimeMs"'
attribute:
MeanRate:
metric_type: counter
metric_type: gauge
alias: kafka.replication.leader_elections
- include:
domain: '"kafka.server"'
bean: '"kafka.server":type="ControllerStats",name="UncleanLeaderElectionsPerSec"'
attribute:
MeanRate:
metric_type: counter
metric_type: gauge
alias: kafka.replication.unclean_leader_elections

#
Expand All @@ -152,5 +152,5 @@ init_config:
bean: '"kafka.log":type="LogFlushStats",name="LogFlushRateAndTimeMs"'
attribute:
MeanRate:
metric_type: counter
metric_type: gauge
alias: kafka.log.flush_rate

0 comments on commit 76d81a1

Please sign in to comment.