dockerzhang commented on code in PR #504: URL: https://github.com/apache/inlong-website/pull/504#discussion_r939862851
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/modules/agent/metrics.md: ########## @@ -14,17 +14,26 @@ Agent 提供了 JMX 和 Prometheus 方式的监控指标能力,默认使用 JM -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false ``` +`agent.properties` 文件需要指定监听类 +```properties +# JMX监听类是AgentJmxMetricListener +agent.domainListeners=org.apache.inlong.agent.metrics.AgentJmxMetricListener +``` ## Prometheus 配置 用户可以在`agent.properties`中声明是否启用Prometheus以及HTTPServer端口号 ```properties -# 默认不启用Prometheus -agent.prometheus.enable=true -# 默认端口为8080 -agent.prometheus.exporter.port=8080 +# Prometheus监听类是AgentPrometheusMetricListener +agent.domainListeners=org.apache.inlong.agent.metrics.AgentPrometheusMetricListener +# 默认端口为9080 +agent.prometheus.exporter.port=9080 ``` +## 自定义 配置 Review Comment: 自定义 配置 -> 自定义配置 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
