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

Align kafka connect metrics #635

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
12 changes: 11 additions & 1 deletion example_configs/kafka-connect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,19 @@ rules:
help: "Kafka $1 JMX metric type $2"
type: GAUGE

#kafka.connect:type=connector-metrics,connector="{connector}"
- pattern: 'kafka.(.+)<type=connector-metrics, connector=(.+)><>(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"
Comment on lines +65 to +71

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first group is unused. Can it be removed?

Suggested change
- pattern: 'kafka.(.+)<type=connector-metrics, connector=(.+)><>(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"
- pattern: 'kafka.connect<type=connector-metrics, connector=(.+)><>(connector-class|connector-type|connector-version|status): (.+)'
name: kafka_connect_connector_$2
value: 1
labels:
connector: "$1"
$2: "$3"
help: "Kafka Connect $2 JMX metric type connector"

type: GAUGE

#kafka.connect:type=connector-task-metrics,connector="{connector}",task="{task}<> status"
- pattern: 'kafka.connect<type=connector-task-metrics, connector=(.+), task=(.+)><>status: ([a-z-]+)'
name: kafka_connect_connector_status
name: kafka_connect_connector_task_status
value: 1
labels:
connector: "$1"
Expand Down