Get metrics from Fluentd to:
The Fluentd check is packaged with the Agent, so simply install the Agent on your Fluentd servers.
fluentd.yaml file in the Agent’s
In your fluentd configuration file, add a
<source> @type monitor_agent bind 0.0.0.0 port 24220 </source>
fluentd.yamlfile to start gathering your Fluentd metrics:
init_config: instances: - monitor_agent_url: http://localhost:24220/api/plugins.json #tag_by: "type" # defaults to 'plugin_id' #plugin_ids: # collect metrics only on your chosen plugin_ids (optional) # - plg1 # - plg2
See the sample fluentd.yaml for all available configuration options.
Follow those instructions to forward logs to Datadog with Fluentd.
Run the Agent’s
status subcommand and look for
fluentd under the Checks section:
Checks ====== [...] fluentd ------- - instance #0 [OK] - Collected 26 metrics, 0 events & 1 service check [...]
|The number of retries for this plugin.
shown as time
|The length of the buffer queue for this plugin.
shown as buffer
|The size of the buffer queue for this plugin.
shown as byte
The FluentD check does not include any event at this time.
Returns ‘Critical’ if the Agent cannot connect to Fluentd to collect metrics. This is the check which most other integrations would call
Need help? Contact Datadog Support.