1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00

update collectd

This commit is contained in:
kev 2017-03-19 22:22:54 +08:00
parent 2bd33382c9
commit 09b2938e7e
5 changed files with 109 additions and 0 deletions

@ -0,0 +1,34 @@
# Filter configuration for collectd(1).
#
# See the section "FILTER CONFIGURATION" in collectd.conf(5) for details.
#PreCacheChain "PreCache"
#PostCacheChain "PostCache"
#LoadPlugin match_empty_counter
#LoadPlugin match_hashed
#LoadPlugin match_regex
#LoadPlugin match_timediff
#LoadPlugin match_value
#LoadPlugin target_notification
#LoadPlugin target_replace
#LoadPlugin target_scale
#LoadPlugin target_set
#LoadPlugin target_v5upgrade
#<Chain "PreCache">
# <Rule "no_fqdn">
# <Match "regex">
# Host "^[^\.]*$"
# Invert false
# </Match>
# Target "stop"
# </Rule>
#</Chain>
# Default behavior:
#<Chain "PostCache">
# Target "write"
#</Chain>

@ -0,0 +1,17 @@
<LoadPlugin write_graphite>
Interval 60
</LoadPlugin>
<Plugin write_graphite>
<Node "graphite">
Host "example.com"
Port "2003"
Protocol "tcp"
LogSendErrors true
Prefix "collectd."
Postfix ""
StoreRates true
AlwaysAppendDS false
EscapeCharacter "_"
</Node>
</Plugin>

@ -1,5 +1,6 @@
LoadPlugin network
<Plugin "network">
Listen "0.0.0.0" "25826"
Server "influxdb" "25826"
</Plugin>

@ -0,0 +1,6 @@
LoadPlugin ping
<Plugin ping>
Host "httpbin.org"
Host "ifconfig.co"
</Plugin>

@ -0,0 +1,51 @@
# Threshold configuration for collectd(1).
#
# See the collectd-threshold(5) manual page for details.
#LoadPlugin "threshold"
#<Plugin "threshold">
# <Type "counter">
# WarningMin 0.00
# WarningMax 1000.00
# FailureMin 0
# FailureMax 1200.00
# Invert false
# Persist false
# Instance "some_instance"
# </Type>
#
# <Type "load">
# DataSource "midterm"
# WarningMax 1
# Hysteresis 0.3
# </Type>
#
# <Type "cpu">
# Instance "user"
# WarningMax 85
# Hits 6
# </Type>
#
# <Plugin "interface">
# Instance "eth0"
# <Type "if_octets">
# DataSource "rx"
# FailureMax 10000000
# </Type>
# </Plugin>
#
# <Host "hostname">
# <Type "cpu">
# Instance "idle"
# FailureMin 10
# </Type>
#
# <Plugin "memory">
# <Type "memory">
# Instance "cached"
# WarningMin 100000000
# </Type>
# </Plugin>
# </Host>
#</Plugin>