Last active
December 11, 2015 19:58
-
-
Save youyo/4652167 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type forward | |
port 24224 | |
bind 0.0.0.0 | |
</source> | |
<match ping.**> | |
type copy | |
<store> | |
type redeliver | |
regexp ^ping\.(.*)$ | |
replace process.\1 | |
</store> | |
<store> | |
type redeliver | |
regexp ^ping\.(.*)$ | |
replace checker.\1 | |
</store> | |
</match> | |
<match process.**> | |
type forest | |
subtype flowcounter | |
remove_prefix process | |
<template> | |
count_keys * | |
unit minute | |
aggregate all | |
tag zabbix.ping.__TAG__ | |
</template> | |
</match> | |
<match zabbix.ping.**> | |
type forest | |
subtype zabbix | |
remove_prefix zabbix.ping | |
<template> | |
zabbix_server zabbix.server | |
host __TAG__ | |
name_keys count | |
add_key_prefix fluent_process | |
</template> | |
</match> | |
<match checker.**> | |
type forest | |
subtype ping_message_checker | |
remove_prefix checker | |
<template> | |
tag missing.ping.__TAG__ | |
check_interval 60 | |
notification_times 60 | |
</template> | |
</match> | |
<match missing.ping.**> | |
type file | |
path /var/log/td-agent/ping_error | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment