Watch buffer_queue_length
of td-agent. Notify to mail if greater than a threshold.
The script is exec the Cron once five minutes.
You need to allow the monitor config.
<source>
type monitor_agent
bind 0.0.0.0
port 24220
</source>
['td_agent_watch']['script_path']
- script path.
{
"td-agent-watch": {
"threshold": 256
"mail_notify": true,
"mail_from": "[email protected]",
"mail_to": "[email protected]"
}
}
subject: [WARN] {hostname}/td-agent
buffer_queue_length 256 over.
- buffer_path: /var/log/td-agent/buffer/sample