Skip to content

Commit 631c92f

Browse files
committed
keep old broker yaml for compatibility
1 parent 43a1bce commit 631c92f

File tree

3 files changed

+106
-1
lines changed

3 files changed

+106
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ All notable changes to this project will be documented in this file.
3232
- hive: Add `4.1.0` ([#1295]).
3333
- hbase: Add `2.6.3` ([#1296]).
3434
- airflow,superset: Build from source ([#1304]).
35+
- kafka: Add updated JMX config `server.yaml` for KRaft ([#1308]).
3536

3637
### Changed
3738

@@ -47,7 +48,6 @@ All notable changes to this project will be documented in this file.
4748
- testing-tools: Update keycloak dependency to `26.3.5` and `python:3.12-slim-bullseye` base image ([#1289]).
4849
- hbase: move hbck2.env to hbase-operator-tools image and add log4j2 properties for this tool ([#1300]).
4950
- hbase: replace `sed` calls with `config-utils template` where possible ([#1301]).
50-
- kafka: update JMX config and rename file from `broker.yaml` to `server.yaml` due to shared use with controller ([#1308]).
5151

5252
### Removed
5353

kafka/stackable/jmx/broker.yaml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
lowercaseOutputName: true
3+
4+
rules:
5+
# Special cases and very specific rules
6+
- pattern: kafka.server<type=(.+), name=(.+), clientId=(.+), topic=(.+), partition=(.*)><>Value
7+
name: kafka_server_$1_$2
8+
type: GAUGE
9+
labels:
10+
clientId: "$3"
11+
topic: "$4"
12+
partition: "$5"
13+
- pattern: kafka.server<type=(.+), name=(.+), clientId=(.+), brokerHost=(.+), brokerPort=(.+)><>Value
14+
name: kafka_server_$1_$2
15+
type: GAUGE
16+
labels:
17+
clientId: "$3"
18+
broker: "$4:$5"
19+
- pattern: kafka.coordinator.(\w+)<type=(.+), name=(.+)><>Value
20+
name: kafka_coordinator_$1_$2_$3
21+
type: GAUGE
22+
23+
# Generic per-second counters with 0-2 key/value pairs
24+
- pattern: kafka.(\w+)<type=(.+), name=(.+)PerSec\w*, (.+)=(.+), (.+)=(.+)><>Count
25+
name: kafka_$1_$2_$3_total
26+
type: COUNTER
27+
labels:
28+
"$4": "$5"
29+
"$6": "$7"
30+
- pattern: kafka.(\w+)<type=(.+), name=(.+)PerSec\w*, (.+)=(.+)><>Count
31+
name: kafka_$1_$2_$3_total
32+
type: COUNTER
33+
labels:
34+
"$4": "$5"
35+
- pattern: kafka.(\w+)<type=(.+), name=(.+)PerSec\w*><>Count
36+
name: kafka_$1_$2_$3_total
37+
type: COUNTER
38+
39+
- pattern: kafka.server<type=(.+), client-id=(.+)><>([a-z-]+)
40+
name: kafka_server_quota_$3
41+
type: GAUGE
42+
labels:
43+
resource: "$1"
44+
clientId: "$2"
45+
46+
- pattern: kafka.server<type=(.+), user=(.+), client-id=(.+)><>([a-z-]+)
47+
name: kafka_server_quota_$4
48+
type: GAUGE
49+
labels:
50+
resource: "$1"
51+
user: "$2"
52+
clientId: "$3"
53+
54+
# Generic gauges with 0-2 key/value pairs
55+
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+), (.+)=(.+)><>Value
56+
name: kafka_$1_$2_$3
57+
type: GAUGE
58+
labels:
59+
"$4": "$5"
60+
"$6": "$7"
61+
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+)><>Value
62+
name: kafka_$1_$2_$3
63+
type: GAUGE
64+
labels:
65+
"$4": "$5"
66+
- pattern: kafka.(\w+)<type=(.+), name=(.+)><>Value
67+
name: kafka_$1_$2_$3
68+
type: GAUGE
69+
70+
# Emulate Prometheus 'Summary' metrics for the exported 'Histogram's.
71+
#
72+
# Note that these are missing the '_sum' metric!
73+
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+), (.+)=(.+)><>Count
74+
name: kafka_$1_$2_$3_count
75+
type: COUNTER
76+
labels:
77+
"$4": "$5"
78+
"$6": "$7"
79+
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.*), (.+)=(.+)><>(\d+)thPercentile
80+
name: kafka_$1_$2_$3
81+
type: GAUGE
82+
labels:
83+
"$4": "$5"
84+
"$6": "$7"
85+
quantile: "0.$8"
86+
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+)><>Count
87+
name: kafka_$1_$2_$3_count
88+
type: COUNTER
89+
labels:
90+
"$4": "$5"
91+
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.*)><>(\d+)thPercentile
92+
name: kafka_$1_$2_$3
93+
type: GAUGE
94+
labels:
95+
"$4": "$5"
96+
quantile: "0.$6"
97+
- pattern: kafka.(\w+)<type=(.+), name=(.+)><>Count
98+
name: kafka_$1_$2_$3_count
99+
type: COUNTER
100+
- pattern: kafka.(\w+)<type=(.+), name=(.+)><>(\d+)thPercentile
101+
name: kafka_$1_$2_$3
102+
type: GAUGE
103+
labels:
104+
quantile: "0.$4"

kafka/stackable/jmx/server.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
lowercaseOutputName: true
23

34
rules:

0 commit comments

Comments
 (0)