2
0

fix(kafka): Disable support metrics in Kafka & ZK (#290)

Disables the annoying automatic support metrics for Kafka and ZK while defaulting all logs to WARN level, instead of some being WARN and some ERROR.
This commit is contained in:
Burak Yigit Kaya 2019-12-04 01:30:24 +03:00 committed by GitHub
parent 62c0cb16bf
commit 6c0d7e48f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,9 @@ services:
image: 'confluentinc/cp-zookeeper:5.1.2' image: 'confluentinc/cp-zookeeper:5.1.2'
environment: environment:
ZOOKEEPER_CLIENT_PORT: '2181' ZOOKEEPER_CLIENT_PORT: '2181'
ZOOKEEPER_LOG4J_ROOT_LOGLEVEL: 'ERROR' CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
ZOOKEEPER_TOOLS_LOG4J_LOGLEVEL: 'ERROR' ZOOKEEPER_LOG4J_ROOT_LOGLEVEL: 'WARN'
ZOOKEEPER_TOOLS_LOG4J_LOGLEVEL: 'WARN'
volumes: volumes:
- 'sentry-zookeeper:/var/lib/zookeeper' - 'sentry-zookeeper:/var/lib/zookeeper'
kafka: kafka:
@ -78,9 +79,10 @@ services:
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181' KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka:9092' KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka:9092'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: '1' KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: '1'
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
KAFKA_LOG4J_LOGGERS: 'kafka.cluster=WARN,kafka.controller=WARN,kafka.coordinator=WARN,kafka.log=WARN,kafka.server=WARN,kafka.zookeeper=WARN,state.change.logger=WARN' KAFKA_LOG4J_LOGGERS: 'kafka.cluster=WARN,kafka.controller=WARN,kafka.coordinator=WARN,kafka.log=WARN,kafka.server=WARN,kafka.zookeeper=WARN,state.change.logger=WARN'
KAFKA_LOG4J_ROOT_LOGLEVEL: 'ERROR' KAFKA_LOG4J_ROOT_LOGLEVEL: 'WARN'
KAFKA_TOOLS_LOG4J_LOGLEVEL: 'ERROR' KAFKA_TOOLS_LOG4J_LOGLEVEL: 'WARN'
volumes: volumes:
- 'sentry-kafka:/var/lib/kafka' - 'sentry-kafka:/var/lib/kafka'
clickhouse: clickhouse: