当前位置:网站首页>Monitoring of debezium synchronization debezium
Monitoring of debezium synchronization debezium
2022-07-26 02:05:00 【Auspicious flight】
Catalog
monitor Debezium Index of connector
Enable in the local installation JMX
Zookeeper JMX environment variable
Kafka JMX environment variable
Kafka Connect JMX environment variable
Docker Medium Zookeeper JMX environment variable
Docker Medium Kafka JMX environment variable
Docker Medium Kafka Connect JMX environment variable
You can use Apache Zookeeper、Apache Kafka and Kafka Connect Provided JMX Indicators to monitor Debezium. Use these indicators , You must start Zookeeper、Kafka and Kafka Connect Enable them when serving . Enable JMX It involves setting the correct environment variables . The environment variables you must set depend on whether you are installing locally or Docker Running in the container Zookeeper、Kafka and Kafka Connect.
If you run multiple services on the same machine , Please make sure to use different for each service JMX port . |
monitor Debezium Index of connector
Except yes Kafka、Zookeeper and Kafka Connect Medium JMX In addition to the built-in support of indicators , Each connector provides additional metrics , You can use these indicators to monitor their activities .
Enable in the local installation JMX
Use Zookeeper、Kafka and Kafka Connect, You can enable JMX.
Zookeeper JMX environment variable
Zookeeper Built in right JMX Support for . Run with a local installation Zookeeper when ,zkServer.sh The script will recognize the following environment variables :
JMXPORT
Enable JMX And specify that it will be used for JMX Port number . This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.port=$JMXPORT.
JMXAUTH
JMX Whether the client must use password authentication when connecting . Must be true or false. The default value is false. This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.authenticate=$JMXAUTH.
JMXSSL
JMX Whether the client uses SSL/TLS Connect . Must be true or false. The default value is false. This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.ssl=$JMXSSL.
JMXLOG4J
Whether it should be disabled Log4J JMX MBean. Must be true( Default ) or false. The default value is true. This value is used to specify JVM Parameters -Dzookeeper.jmx.log4j.disable=$JMXLOG4J.
Kafka JMX environment variable
Run with a local installation Kafka when ,kafka-server-start.sh The script will recognize the following environment variables :
JMX_PORT
Enable JMX And specify that it will be used for JMX Port number . This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.port=$JMX_PORT.
KAFKA_JMX_OPTS
JMX Options , During startup, it is passed directly to JVM. The default option is :
-Dcom.sun.management.jmxremote-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=false
Kafka Connect JMX environment variable
Run with a local installation Kafka when ,connect-distributed.sh The script will recognize the following environment variables :
JMX_PORT
Enable JMX And specify that it will be used for JMX Port number . This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.port=$JMX_PORT.
KAFKA_JMX_OPTS
JMX Options , During startup, it is passed directly to JVM. The default option is :
-Dcom.sun.management.jmxremote-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=false
stay Docker Enable JMX
If you pass Debezium Container image operation Apache Zookeeper、Kafka and Kafka Connect, Enable JMX You need several additional environment variables that are usually not needed when running on the local computer . This is because JVM You need to JMX The client notifies its host name . therefore ,Debezium Of Zookeeper、Kafka and Kafka Connect Container mirroring uses multiple environment variables to enable and configure JMX. Most of the environment variables for all images are the same , But there are some subtle differences .
Docker Medium Zookeeper JMX environment variable
The debezium/zookeeper Image recognition is related to JMX Related environment variables :
JMXPORT( Essential )
Will be used for JMX Port number . This value is used to specify the following JVM Parameters :
-Dcom.sun.management.jmxremote.port=$JMXPORT-Dcom.sun.management.jmxremote.rmi.port=$JMXPORT
JMXHOST( Essential )
Docker The host IP Address or resolvable host name ,JMX Use it to construct send to JMX Client's URL.localhostor Value 127.0.0.1 It doesn't work . Usually ,0.0.0.0 have access to . This value is used to specify JVM Parameters -Djava.rmi.server.hostname=$JMXHOST.
JMXAUTH
JMX Whether the client must use password authentication when connecting . Must be true or false. The default value is false. This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.authenticate=$JMXAUTH.
JMXSSL
JMX Whether the client uses SSL/TLS Connect . Must be true or false. The default value is false. This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.ssl=$JMXSSL.
JMXLOG4J
Whether it should be disabled Log4J JMX MBean. Must be true or false. The default value is true. This value is used to specify JVM Parameters -Dzookeeper.jmx.log4j.disable=$JMXLOG4J.
Following example Docker The command uses and environment variables debezium/zookeeper Value image boot container , And will Docker Host port 9010 Mapped to container JMX port :JMXPORTJMXHOST
$ docker run -it --rm --name zookeeper -p 2181:2181 -p 2888:2888 -p 3888:3888 -p 9010:9010 -e JMXPORT=9010 -e JMXHOST=10.0.1.10 debezium/zookeeper:latestDocker Medium Kafka JMX environment variable
The debezium/kafka Image recognition is related to JMX Related environment variables :
JMXPORT( Essential )
Will be used for JMX Port number . This value is used to specify the following JVM Parameters :
-Dcom.sun.management.jmxremote.port=$JMXPORT-Dcom.sun.management.jmxremote.rmi.port=$JMXPORT
JMXHOST( Essential )
Docker The host IP Address or resolvable host name ,JMX Use it to construct send to JMX Client's URL.localhostor Value 127.0.0.1 It doesn't work . Usually ,0.0.0.0 have access to . This value is used to specify JVM Parameters -Djava.rmi.server.hostname=$JMXHOST.
JMXAUTH
JMX Whether the client must use password authentication when connecting . Must be true or false. The default value is false. This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.authenticate=$JMXAUTH.
JMXSSL
JMX Whether the client uses SSL/TLS Connect . Must be true or false. The default value is false. This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.ssl=$JMXSSL.
Following example Docker The command uses and environment variables debezium/kafka Value image boot container , And will Docker Host port 9011 Mapped to container JMX port :JMXPORTHOST_NAME
$ docker run -it --rm --name kafka -p 9092:9092 -p 9011:9011 -e JMXPORT=9011 -e JMXHOST=10.0.1.10 --link zookeeper:zookeeper debezium/kafka:latestDocker Medium Kafka Connect JMX environment variable
The debezium/connect Image recognition is related to JMX Related environment variables :
JMXPORT( Essential )
Will be used for JMX Port number . This value is used to specify the following JVM Parameters :
-Dcom.sun.management.jmxremote.port=$JMXPORT-Dcom.sun.management.jmxremote.rmi.port=$JMXPORT
JMXHOST( Essential )
Docker The host IP Address or resolvable host name ,JMX Use it to construct send to JMX Client's URL.localhostor Value 127.0.0.1 It doesn't work . Usually ,0.0.0.0 have access to . This value is used to specify JVM Parameters -Djava.rmi.server.hostname=$JMXHOST.
JMXAUTH
JMX Whether the client must use password authentication when connecting . Must be true or false. The default value is false. This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.authenticate=$JMXAUTH.
JMXSSL
JMX Whether the client uses SSL/TLS Connect . Must be true or false. The default value is false. This value is used to specify JVM Parameters -Dcom.sun.management.jmxremote.ssl=$JMXSSL.
Following example Docker The command uses and environment variables debezium/connect Value image boot container , And will Docker Host port 9012 Mapped to container JMX port :JMXPORTJMXHOST
$ docker run -it --rm --name connect \
-p 8083:8083 -p 9012:9012 \
-e JMXPORT=9012 -e JMXHOST=10.0.1.10 \
-e GROUP_ID=1 \
-e CONFIG_STORAGE_TOPIC=my_connect_configs \
-e OFFSET_STORAGE_TOPIC=my_connect_offsets \
-e STATUS_STORAGE_TOPIC=my_connect_statuses \
--link zookeeper:zookeeper \
--link kafka:kafka \
--link mysql:mysql \
debezium/connect:latestUse Prometheus and Grafana
Debezium and Kafka Public indicators can be used Prometheus and Grafana Export and display . You can go to Debezium Sample Repository Find examples of the required configurations and sample dashboards for different connectors .
These dashboards are not Debezium Part of itself , Instead, try your best to maintain . |
Java Flight records
Kafka Connect Of Debezium The container image is also JDK Flight Recorder Provides easy-to-use support . To enable recording , Environment variables must be set ENABLE_JFR=true. Then recording will start automatically when the container starts . By default , Enable recording , That is, use the default settings for continuous recording , Then you can use jcmd or JDK Mission Control dump .
You can modify the behavior of the recorder . So , You need to set any environment variable prefixed with JFR_RECORDING_ To set recording parameters . The part after the prefix is converted to lowercase , Underline is replaced by dash , therefore JFR_RECORDING_PATH_TO_GC_ROOTS=true Turn into path-to-gc-roots=true.
Flight recorder control options can be through JFR_OPT_ Prefix environment variables .
边栏推荐
- Dest0g3 520 orientation (under update)
- Protect syslog servers and devices
- Qt程序美化之样式表的使用方法,Qt使用图片作为背景与控件透明化,Qt自定义按钮样式
- Worthington papain - production of glycopeptides from purified proteoglycans (attached Literature)
- Navica tool imports remote MySQL into local MySQL database
- 【2020】【论文笔记】磁控溅射法生长Bi2Te3/CoFeB双层异质结——
- How to use the pagoda panel to deploy the full stack project of node to the server
- Basic usage of set, map, DOM classlist in ES6
- DialogRPT-Dialog Ranking Pretrained Transformers
- [C language brush leetcode] 1462. curriculum IV (m)
猜你喜欢

本地仓库导致的报错

Pt onnx ncnn conversion problem record (followed by yolov5 training)

PHP Alipay transfer to Alipay account

I.MX6UL核心模块使用连载-触摸屏校准 (九)

obsidian移动端PC段同步

I.MX6UL核心模块使用连载-nand flash读写测试 (三)

P3166 number triangle (tolerance and exclusion +gcd)

1. Mx6ul core module serial WiFi test (VIII)
![[independent station construction] Shopify seller: learn these points and double the sales volume of online stores!](/img/52/8c1520db38ffa8927e975b6f244a65.png)
[independent station construction] Shopify seller: learn these points and double the sales volume of online stores!

Postman报Json序列化错误
随机推荐
Web3.0 blog DAPP development practice [2022]
E. OpenStreetMap (2D monotone queue)
转:高效做正确的事
Worthington nuclease and Micrococcus related research and determination scheme
opengauss如何手工安装(非OM方式)
Infinite fraction path (BFS pruning)
[C language brush leetcode] 735. Planetary collision (m)
E. Split into two sets
CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"
Turn: do the right thing efficiently
重发布基础与配置
How to display numbers / English time in Excel
i.MX6ULL SNVS电源域GPIO状态保持验证
1. Mx6ul core module use serial TF card read / write test (V)
Worthington核酸酶、微球菌相关研究及测定方案
Dest0g3 520 orientation (under update)
Redis cluster construction (based on 6.x)
Redis集群搭建(基于6.x)
C# 迭代器的实现
Protect syslog servers and devices