Fluentd
Search…
Monitoring by REST API
This article describes how to get the internal Fluentd metrics via the REST API.

Monitoring Agent

Fluentd has a monitoring agent to retrieve internal metrics in JSON format via HTTP.
Add these lines to your configuration file:
1
<source>
2
@type monitor_agent
3
bind 0.0.0.0
4
port 24220
5
</source>
Copied!
Restart the agent and get the metrics via HTTP:
1
$ curl http://host:24220/api/plugins.json
2
{
3
"plugins":[
4
{
5
"plugin_id":"object:3fec669d6ac4",
6
"type":"forward",
7
"output_plugin":false,
8
"config":{
9
"type":"forward"
10
}
11
},
12
{
13
"plugin_id":"object:3fec669dfa48",
14
"type":"monitor_agent",
15
"output_plugin":false,
16
"config":{
17
"type":"monitor_agent",
18
"port":"24220"
19
}
20
},
21
{
22
"plugin_id":"object:3fec66aead48",
23
"type":"forward",
24
"output_plugin":true,
25
"buffer_queue_length":0,
26
"buffer_total_queued_size":0,
27
"retry_count":0,
28
"config":{
29
"type":"forward",
30
"host":"192.168.0.11"
31
}
32
}
33
]
34
}
Copied!
See in_monitor_agent article for more detail.

Monitoring the Event Flow

Datadog (dd-agent) Integration

Datadog is a cloud monitoring service, and its monitoring agent dd-agent has native integration with Fluentd.
For more details:
If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is an open-source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.
Last modified 4mo ago