Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
448 views
in Technique[技术] by (71.8m points)

jmx - Enable monitoring in Apache Flink through Jolokia agent

How to enable monitoring on Apache Flink ? I want to monitor flink on ELK stack. I am using Jolokia to get metrics from Flink. By far I am able to get metrics of job manager but I am not able to get task manager metrics.

I have added below line on both taskmanager.sh and jobmanager.sh

export FLINK_ENV_JAVA_OPTS="-javaagent:/data/applications/flink-1.11.3/lib/jolokia-jvm-1.6.2-agent.jar=port=8778,host=0.0.0.0"

I am running flink code with jolokia_JVM agent. Below is the JMX settings in flink-conf.yaml file.

metrics.reporters: jmx
metrics.reporter.jmx.class: org.apache.flink.metrics.jmx.JMXReporter
metrics.reporter.jmx.port: 8789
metrics.delimiter: .
env.java.opts: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -javaagent:/data/applications/flink-1.11.3/lib/jolokia-jvm-1.6.2-agent.jar=8778

How can i get both taskmanager and jobmanager metrics through JMX.

question from:https://stackoverflow.com/questions/65933131/enable-monitoring-in-apache-flink-through-jolokia-agent

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...