Skip to content

Commit

Permalink
fix(JMX exporter): Optimize the metric collection (confluentinc#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
srolija authored May 11, 2020
1 parent bc14da0 commit 15e3b73
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/cp-kafka-connect/templates/jmx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ data:
lowercaseOutputName: true
lowercaseOutputLabelNames: true
ssl: false
whitelistObjectNames:
- kafka.connect:type=connect-worker-metrics
- kafka.connect:type=connect-metrics, client-id=*
- kafka.connect:type=connector-task-metrics, connector=*, task=*
rules:
- pattern : "kafka.connect<type=connect-worker-metrics>([^:]+):"
name: "cp_kafka_connect_connect_worker_metrics_$1"
Expand Down
3 changes: 3 additions & 0 deletions charts/cp-kafka-rest/templates/jmx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ data:
lowercaseOutputName: true
lowercaseOutputLabelNames: true
ssl: false
whitelistObjectNames:
- kafka.rest:type=jetty-metrics
- kafka.rest:type=jersey-metrics
rules:
- pattern : 'kafka.rest<type=jetty-metrics>([^:]+):'
name: "cp_kafka_rest_jetty_metrics_$1"
Expand Down
10 changes: 10 additions & 0 deletions charts/cp-kafka/templates/jmx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ data:
lowercaseOutputName: true
lowercaseOutputLabelNames: true
ssl: false
whitelistObjectNames:
- kafka.server:type=ReplicaManager, name=*
- kafka.controller:type=KafkaController, name=*
- kafka.server:type=BrokerTopicMetrics, name=*
- kafka.network:type=RequestMetrics, name=RequestsPerSec, request=*
- kafka.network:type=SocketServer, name=NetworkProcessorAvgIdlePercent
- kafka.server:type=ReplicaFetcherManager, name=MaxLag, clientId=*
- kafka.server:type=KafkaRequestHandlerPool, name=RequestHandlerAvgIdlePercent
- kafka.controller:type=ControllerStats, name=*
- kafka.server:type=SessionExpireListener, name=*
rules:
- pattern : kafka.server<type=ReplicaManager, name=(.+)><>(Value|OneMinuteRate)
name: "cp_kafka_server_replicamanager_$1"
Expand Down
2 changes: 2 additions & 0 deletions charts/cp-ksql-server/templates/jmx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ data:
lowercaseOutputName: true
lowercaseOutputLabelNames: true
ssl: false
whitelistObjectNames:
- io.confluent.ksql.metrics:type=ksql-engine-query-stats
rules:
- pattern : 'io.confluent.ksql.metrics<type=ksql-engine-query-stats>([^:]+):'
name: "cp_ksql_server_metrics_$1"
Expand Down
4 changes: 4 additions & 0 deletions charts/cp-schema-registry/templates/jmx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ data:
lowercaseOutputName: true
lowercaseOutputLabelNames: true
ssl: false
whitelistObjectNames:
- kafka.schema.registry:type=jetty-metrics
- kafka.schema.registry:type=master-slave-role
- kafka.schema.registry:type=jersey-metrics
rules:
- pattern : 'kafka.schema.registry<type=jetty-metrics>([^:]+):'
name: "cp_kafka_schema_registry_jetty_metrics_$1"
Expand Down
5 changes: 5 additions & 0 deletions charts/cp-zookeeper/templates/jmx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ data:
lowercaseOutputName: true
lowercaseOutputLabelNames: true
ssl: false
whitelistObjectNames:
- org.apache.ZooKeeperService:name0=ReplicatedServer_id*
- org.apache.ZooKeeperService:name0=ReplicatedServer_id*, name1=replica.*
- org.apache.ZooKeeperService:name0=ReplicatedServer_id*, name1=replica.*, name2=*
- org.apache.ZooKeeperService:name0=ReplicatedServer_id*, name1=replica.*, name2=*, name3=*
rules:
- pattern: "org.apache.ZooKeeperService<name0=ReplicatedServer_id(\\d+)><>(\\w+)"
name: "cp_zookeeper_$2"
Expand Down

0 comments on commit 15e3b73

Please sign in to comment.