Skip to content

Commit

Permalink
Scrape less, and improve scrape time further ...
Browse files Browse the repository at this point in the history
through ssl=false and whitelist.

Thanks to @yacut, see #49
  • Loading branch information
solsson committed Oct 6, 2017
1 parent 275db1f commit 6504390
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
19 changes: 19 additions & 0 deletions 10broker-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,22 @@ data:
# Change to DEBUG to enable audit log for the authorizer
log4j.logger.kafka.authorizer.logger=WARN, authorizerAppender
log4j.additivity.kafka.authorizer.logger=false
jmx-kafka-prometheus.yml: |+
lowercaseOutputName: true
jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:5555/jmxrmi
ssl: false
whitelistObjectNames: ["kafka.server:*","java.lang:*"]
rules:
- pattern : kafka.server<type=ReplicaFetcherManager, name=MaxLag, clientId=(.+)><>Value
- pattern : kafka.server<type=BrokerTopicMetrics, name=(.+), topic=(.+)><>OneMinuteRate
- pattern : kafka.server<type=KafkaRequestHandlerPool, name=RequestHandlerAvgIdlePercent><>OneMinuteRate
- pattern : kafka.server<type=Produce><>queue-size
- pattern : kafka.server<type=ReplicaManager, name=(.+)><>(Value|OneMinuteRate)
- pattern : kafka.server<type=controller-channel-metrics, broker-id=(.+)><>(.*)
- pattern : kafka.server<type=socket-server-metrics, networkProcessor=(.+)><>(.*)
- pattern : kafka.server<type=Fetch><>queue-size
- pattern : kafka.server<type=SessionExpireListener, name=(.+)><>OneMinuteRate
- pattern : java.lang<type=OperatingSystem><>SystemCpuLoad
- pattern : java.lang<type=Memory><HeapMemoryUsage>used
- pattern : java.lang<type=OperatingSystem><>FreePhysicalMemorySize
5 changes: 4 additions & 1 deletion 50kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
- -jar
- jmx_prometheus_httpserver.jar
- "5556"
- example_configs/kafka-prometheus-monitoring.yml
- /etc/kafka/jmx-kafka-prometheus.yml
ports:
- containerPort: 5556
resources:
Expand All @@ -76,6 +76,9 @@ spec:
memory: 100Mi
limits:
memory: 150Mi
volumeMounts:
- name: config
mountPath: /etc/kafka
volumes:
- name: config
configMap:
Expand Down

0 comments on commit 6504390

Please sign in to comment.