diff --git a/example_configs/kafka-connect.yml b/example_configs/kafka-connect.yml index 80ce38bc..2744e880 100644 --- a/example_configs/kafka-connect.yml +++ b/example_configs/kafka-connect.yml @@ -61,9 +61,19 @@ rules: help: "Kafka $1 JMX metric type $2" type: GAUGE + #kafka.connect:type=connector-metrics,connector="{connector}" + - pattern: 'kafka.(.+)<>(connector-class|connector-type|connector-version|status): (.+)' + name: kafka_connect_connector_$3 + value: 1 + labels: + connector: "$2" + $3: "$4" + help: "Kafka Connect $3 JMX metric type connector" + type: GAUGE + #kafka.connect:type=connector-task-metrics,connector="{connector}",task="{task}<> status" - pattern: 'kafka.connect<>status: ([a-z-]+)' - name: kafka_connect_connector_status + name: kafka_connect_connector_task_status value: 1 labels: connector: "$1"