Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to monitor Fluentd

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to monitor Fluentd". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to monitor Fluentd.

Today's article focuses on how to monitor Fluentd. The purpose of monitoring is to ensure that log collection can run stably and efficiently.

Fluentd Internal operating Metrics Fluentd stores some operating metrics, which can be obtained directly through REST api or accessed through third-party tools such as Prometheus. Prometheus is an officially recommended monitoring tool. We will introduce it briefly in today's second article.

Two ruby processes are generated after the process monitoring Fluentd is running, and you need to make sure that these two processes are running properly. For td-agent, there will be two processes: / opt/td-agent/embedded/bin/ruby / usr/sbin/td-agent-- daemon / var/run/td-agent/td-agent.pid-- log/ var/log/td-agent/td-agent.log

On Linux systems, you can view the status of these two processes with the following command:

$ps w-C ruby-C td-agent-- no-heading32342? Sl 0:00 / opt/td-agent/embedded/bin/ruby / usr/sbin/td-agent-daemon / var/run/td-agent/td-agent.pid-log/ var/log/td-agent/td-agent.log32345? Sl 0:01 / opt/td-agent/embedded/bin/ruby / usr/sbin/td-agent-- daemon / var/run/td-agent/td-agent.pid-- log/ var/log/td-agent/td-agent.log port monitoring Fluentd opens several ports depending on the configuration. You can see if these ports are in normal use. For example, the default HTTP and Forward ports are:

The TCP 0.0.0.0 9880 (HTTP by default) TCP 0.0.0.0 24224 (Forward by default) debug port can also be configured to open the Fluentd debug port, so you can view the Fluentd running status through the fluent-debug command. @ type debug_agent bind 127.0.0.1 port 24230 adds the above configuration to the Fluentd configuration file to open the local debug port.

Thank you for your reading, the above is the content of "how to monitor Fluentd", after the study of this article, I believe you have a deeper understanding of how to monitor Fluentd, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report