Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Kafka metric support for 3 labels #778

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion api/assets/kafka/jmx-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ rules:
# Emulate Prometheus 'Summary' metrics for the exported 'Histogram's.
#
# Note that these are missing the '_sum' metric!
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+), (.+)=(.+), (.+)=(.+)><>Count
name: kafka_$1_$2_$3_count
cache: true
type: COUNTER
labels:
"$4": "$5"
"$6": "$7"
"$8": "$9"
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+), (.+)=(.+)><>Count
name: kafka_$1_$2_$3_count
cache: true
Expand Down Expand Up @@ -194,7 +202,16 @@ rules:
type: GAUGE
labels:
quantile: "0.$4"
# Catch all other GAUGES with other types with 0-2 key-value pairs
# Catch all other GAUGES with other types with 0-3 key-value pairs
- pattern : kafka.(\w+)<type=([A-Za-z-]+), (.+)=(.+), (.+)=(.+), (.+)=(.+)><>([A-Za-z-]+)
name: kafka_$1_$2_$9
type: GAUGE
cache: true
labels:
"$3": "$4"
"$5": "$6"
"$7": "$8"
# Catch all other GAUGES with other types with 0-2 key-value pairs
- pattern : kafka.(\w+)<type=([A-Za-z-]+), (.+)=(.+), (.+)=(.+)><>([A-Za-z-]+)
name: kafka_$1_$2_$7
type: GAUGE
Expand Down