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

Adding cluster linking metrics #1410

Open
wants to merge 1 commit into
base: 7.4.0-post
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
83 changes: 83 additions & 0 deletions roles/kafka_broker/templates/kafka.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ blacklistObjectNames:
- "kafka.server:type=*,cipher=*,protocol=*,listener=*,networkProcessor=*"
- "kafka.server:type=*"
rules:
# Needed for Cluster Linking metrics
# This rule is more specific than the next rule; it has to come before it otherwise it will never be hit
# "kafka.server:type=*, name=*, client-id=*, topic=*, partition=*, link-name=*"
- pattern: kafka.server<type=(.+), name=(.+), clientId=(.+), topic=(.+), partition=(.*), link-name=(.+)><>Value
name: kafka_server_$1_$2
type: GAUGE
cache: {{ kafka_broker_jmxexporter_bean_name_expressions_cache | lower }}
labels:
clientId: "$3"
topic: "$4"
partition: "$5"
linkName: "$6" # The other Cluster Linking metrics are using the "link-name" syntax
# This rule is more specific than the next rule; it has to come before it otherwise it will never be hit
# "kafka.server:type=*, name=*, client-id=*, topic=*, partition=*"
- pattern: kafka.server<type=(.+), name=(.+), clientId=(.+), topic=(.+), partition=(.*)><>Value
Expand Down Expand Up @@ -187,6 +199,77 @@ rules:
cache: {{ kafka_broker_jmxexporter_bean_name_expressions_cache | lower }}
labels:
quantile: "0.$4"
# Needed for Cluster Linking metrics
# kafka.server.link:type=ClusterLinkFetcherManager,name=*,clientId=&,link-name=*
- pattern : kafka.server.link<type=ClusterLinkFetcherManager, name=(.+), (.+)=(.+), (.+)=(.+)><>Value
name: kafka_server_link_clusterlinkfetchermanager_$1
type: GAUGE
cache: {{ kafka_broker_jmxexporter_bean_name_expressions_cache | lower }}
labels:
"$2": "$3"
"$4": "$5"
# kafka.server:type=cluster-link,link-name=*
- pattern : kafka.server<type=cluster-link, (.+)=(.+)><>(fetch-throttle-time-avg|fetch-throttle-time-max)
name: kafka_server_cluster_link_$3
type: GAUGE
labels:
"$1": "$2"
# kafka.server:type=cluster-link-metadata-metrics,link-name=*, mechanism=*
- pattern : 'kafka.server<type=cluster-link-metadata-metrics, (.+)=(.+), (.+)=(.+)><>(.+):'
name: kafka_server_cluster_link_metadata_metrics_$5
type: GAUGE
cache: {{ kafka_broker_jmxexporter_bean_name_expressions_cache | lower }}
labels:
"$1": "$2"
"$3": "$4"
# kafka.server:type=cluster-link-fetcher-metrics,link-name=*,broker-id=*,fetcher-id=*, mechanism=*
- pattern : 'kafka.server<type=cluster-link-fetcher-metrics, (.+)=(.+), (.+)=(.+), (.+)=(.+), (.+)=(.+)><>(.+):'
name: kafka_server_cluster_link_fetcher_metrics_$9
type: GAUGE
labels:
"$1": "$2"
"$3": "$4"
"$5": "$6"
"$7": "$8"
# kafka.server:type=cluster-link-fetcher-metrics,link-name=*,broker-id=*,fetcher-id=*
- pattern : 'kafka.server<type=cluster-link-fetcher-metrics, (.+)=(.+), (.+)=(.+), (.+)=(.+)><>(.+):'
name: kafka_server_cluster_link_fetcher_metrics_$7
type: GAUGE
cache: {{ kafka_broker_jmxexporter_bean_name_expressions_cache | lower }}
labels:
"$1": "$2"
"$3": "$4"
"$5": "$6"
# kafka.server:type=cluster-link-metrics, mode=*, state=*, link-name=*, name=*
- pattern : 'kafka.server<type=cluster-link-metrics, (.+)=(.+), (.+)=(.+), (.+)=(.+)><>(.+):'
name: kafka_server_cluster_link_metrics_$7
type: GAUGE
labels:
"$1": "$2"
"$3": "$4"
"$5": "$6"
# kafka.server:type=cluster-link-metrics,state=*,link-name=*,name=*
- pattern : 'kafka.server<type=cluster-link-metrics, (.+)=(.+), (.+)=(.+)><>(.+):'
name: kafka_server_cluster_link_metrics_$5
type: GAUGE
cache: {{ kafka_broker_jmxexporter_bean_name_expressions_cache | lower }}
labels:
"$1": "$2"
"$3": "$4"
# kafka.server:type=cluster-link-metrics,name=*,link-name=*
- pattern : 'kafka.server<type=cluster-link-metrics, (.+)=(.+)><>(.+):'
name: kafka_server_cluster_link_metrics_$3
type: GAUGE
labels:
"$1": "$2"
# kafka.server:type=cluster-link-source-metrics,request=*,link-id=*
- pattern : kafka.server<type=cluster-link-source-metrics, (.+)=(.+), (.+)=(.+)><>Value
name: kafka_server_cluster_link_source_metrics
type: GAUGE
cache: {{ kafka_broker_jmxexporter_bean_name_expressions_cache | lower }}
labels:
"$1: "$2"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"$1: "$2"
"$1": "$2"

"$3": "$4"
# Additional Rules for Confluent Server Metrics
# 'confluent.metadata:type=*, name=*, topic=*, partition=*'
- pattern: confluent.(\w+)<type=(.+), (.+)=(.+), (.+)=(.+), (.+)=(.+)><>Value
Expand Down