Skip to content

Commit

Permalink
Add metrics quota kafka for client-id or/and user (#433)
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Bacelar <[email protected]>
  • Loading branch information
alvarobacelar authored and brian-brazil committed Sep 30, 2019
1 parent 3ae312a commit a46db5a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions example_configs/kafka-2_0_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ rules:
name: kafka_$1_$2_$3_total
type: COUNTER

- pattern: kafka.server<type=(.+), client-id=(.+)><>([a-z-]+)
name: kafka_server_quota_$3
type: GAUGE
labels:
resource: "$1"
clientId: "$2"

- pattern: kafka.server<type=(.+), user=(.+), client-id=(.+)><>([a-z-]+)
name: kafka_server_quota_$4
type: GAUGE
labels:
resource: "$1"
user: "$2"
clientId: "$3"

# Generic gauges with 0-2 key/value pairs
- pattern: kafka.(\w+)<type=(.+), name=(.+), (.+)=(.+), (.+)=(.+)><>Value
name: kafka_$1_$2_$3
Expand Down

0 comments on commit a46db5a

Please sign in to comment.