Skip to main content
Version: 1.7.0

Monitor Metrics

JMX Configuration

# The listener of JMX is AgentJmxMetricListener
agent.domainListeners=org.apache.inlong.agent.metrics.AgentJmxMetricListener

Prometheus Configuration

# The listener of Prometheus is AgentPrometheusMetricListener
agent.domainListeners=org.apache.inlong.agent.metrics.AgentPrometheusMetricListener
# the default is 9080
agent.prometheus.exporter.port=9080

Custom Configuration

If the user wants to monitor the indicator capabilities in other ways, You can inherit the org.apache.inlong.agent.metrics.AgentMetricBaseListener class and implement it, and finally configure the agent.domainListeners property in the agent.properties file.

Appendix: Metrics Items

AgentTaskMetric

propertydescription
runningTaskstasks currently being executed
retryingTasksTasks that are currently being retried
fatalTasksThe total number of currently failed tasks

JobMetrics

propertydescription
runningJobsthe total number of currently running jobs
fatalJobsthe total number of currently failed jobs

PluginMetric

propertydescription
readNumthe number of reads
sendNumthe number of sent items
sendFailedNumthe number of failed sending
readFailedNumthe number of failed reads
readSuccessNumthe number of successful reads
sendSuccessNumthe number of successfully sent

SourceMetric

propertytypedescription
agent_source_count_successCounterthe success message count in agent source since agent started
agent_source_count_failCounterthe sink success message count in agent source since agent started

SinkMetric

propertytypedescription
agent_sink_count_successCounterthe sink success message count in agent source since agent started
agent_sink_count_failCounterthe sink failed message count in agent source since agent started