2 # Copyright (c) 2023 Deutsche Telekom
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License..
16 lowercaseOutputName: true
18 # Special cases and very specific rules
19 - pattern: kafka.server<type=(.+), name=(.+), clientId=(.+), topic=(.+), partition=(.*)><>Value
20 name: kafka_server_$1_$2
26 - pattern: kafka.server<type=(.+), name=(.+), clientId=(.+), brokerHost=(.+), brokerPort=(.+)><>Value
27 name: kafka_server_$1_$2
32 - pattern: kafka.server<type=(.+), cipher=(.+), protocol=(.+), listener=(.+), networkProcessor=(.+)><>connections
33 name: kafka_server_$1_connections_tls_info
39 networkProcessor: "$5"
40 - pattern: kafka.server<type=(.+), clientSoftwareName=(.+), clientSoftwareVersion=(.+), listener=(.+), networkProcessor=(.+)><>connections
41 name: kafka_server_$1_connections_software
44 clientSoftwareName: "$2"
45 clientSoftwareVersion: "$3"
47 networkProcessor: "$5"
48 - pattern: "kafka.server<type=(.+), listener=(.+), networkProcessor=(.+)><>(.+):"
49 name: kafka_server_$1_$4
53 networkProcessor: "$3"
54 - pattern: kafka.server<type=(.+), listener=(.+), networkProcessor=(.+)><>(.+)
55 name: kafka_server_$1_$4
59 networkProcessor: "$3"
60 # Some percent metrics use MeanRate attribute
61 # Ex) kafka.server<type=(KafkaRequestHandlerPool), name=(RequestHandlerAvgIdlePercent)><>MeanRate
62 - pattern: kafka.(\w+)<type=(.+), name=(.+)Percent\w*><>MeanRate
63 name: kafka_$1_$2_$3_percent
65 # Generic gauges for percents
66 - pattern: kafka.(\w+)<type=(.+), name=(.+)Percent\w*><>Value
67 name: kafka_$1_$2_$3_percent
69 - pattern: kafka.(\w+)<type=(.+), name=(.+)Percent\w*, (.+)=(.+)><>Value
70 name: kafka_$1_$2_$3_percent
74 # Generic per-second counters with 0-2 key/value pairs
75 - pattern: kafka.(\w+)<type=(.+), name=(.+)PerSec\w*, (.+)=(.+), (.+)=(.+)><>Count
76 name: kafka_$1_$2_$3_total
81 - pattern: kafka.(\w+)<type=(.+), name=(.+)PerSec\w*, (.+)=(.+)><>Count
82 name: kafka_$1_$2_$3_total
86 - pattern: kafka.(\w+)<type=(.+), name=(.+)PerSec\w*><>Count
87 name: kafka_$1_$2_$3_total
89 # Generic gauges with 0-2 key/value pairs
90 - pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+), (.+)=(.+)><>Value
96 - pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+)><>Value
101 - pattern: kafka.(\w+)<type=(.+), name=(.+)><>Value
104 # Emulate Prometheus 'Summary' metrics for the exported 'Histogram's.
105 # Note that these are missing the '_sum' metric!
106 - pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+), (.+)=(.+)><>Count
107 name: kafka_$1_$2_$3_count
112 - pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.*), (.+)=(.+)><>(\d+)thPercentile
119 - pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+)><>Count
120 name: kafka_$1_$2_$3_count
124 - pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.*)><>(\d+)thPercentile
130 - pattern: kafka.(\w+)<type=(.+), name=(.+)><>Count
131 name: kafka_$1_$2_$3_count
133 - pattern: kafka.(\w+)<type=(.+), name=(.+)><>(\d+)thPercentile