From 09b2938e7e26629e9ef22fe8eef5742b8c5ce6c2 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 19 Mar 2017 22:22:54 +0800 Subject: [PATCH] update collectd --- collectd/collectd/conf.d/filters.conf | 34 ++++++++++++++++ collectd/collectd/conf.d/graphite.conf | 17 ++++++++ collectd/collectd/conf.d/network.conf | 1 + collectd/collectd/conf.d/ping.conf | 6 +++ collectd/collectd/conf.d/thresholds.conf | 51 ++++++++++++++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 collectd/collectd/conf.d/filters.conf create mode 100644 collectd/collectd/conf.d/graphite.conf create mode 100644 collectd/collectd/conf.d/ping.conf create mode 100644 collectd/collectd/conf.d/thresholds.conf diff --git a/collectd/collectd/conf.d/filters.conf b/collectd/collectd/conf.d/filters.conf new file mode 100644 index 0000000..5dbf890 --- /dev/null +++ b/collectd/collectd/conf.d/filters.conf @@ -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 + +# +# +# +# Host "^[^\.]*$" +# Invert false +# +# Target "stop" +# +# + +# Default behavior: +# +# Target "write" +# + diff --git a/collectd/collectd/conf.d/graphite.conf b/collectd/collectd/conf.d/graphite.conf new file mode 100644 index 0000000..b626037 --- /dev/null +++ b/collectd/collectd/conf.d/graphite.conf @@ -0,0 +1,17 @@ + + Interval 60 + + + + + Host "example.com" + Port "2003" + Protocol "tcp" + LogSendErrors true + Prefix "collectd." + Postfix "" + StoreRates true + AlwaysAppendDS false + EscapeCharacter "_" + + diff --git a/collectd/collectd/conf.d/network.conf b/collectd/collectd/conf.d/network.conf index dfc3199..0954cb8 100644 --- a/collectd/collectd/conf.d/network.conf +++ b/collectd/collectd/conf.d/network.conf @@ -1,5 +1,6 @@ LoadPlugin network + Listen "0.0.0.0" "25826" Server "influxdb" "25826" diff --git a/collectd/collectd/conf.d/ping.conf b/collectd/collectd/conf.d/ping.conf new file mode 100644 index 0000000..880db5e --- /dev/null +++ b/collectd/collectd/conf.d/ping.conf @@ -0,0 +1,6 @@ +LoadPlugin ping + + + Host "httpbin.org" + Host "ifconfig.co" + diff --git a/collectd/collectd/conf.d/thresholds.conf b/collectd/collectd/conf.d/thresholds.conf new file mode 100644 index 0000000..2bd4f2c --- /dev/null +++ b/collectd/collectd/conf.d/thresholds.conf @@ -0,0 +1,51 @@ +# Threshold configuration for collectd(1). +# +# See the collectd-threshold(5) manual page for details. + +#LoadPlugin "threshold" +# +# +# WarningMin 0.00 +# WarningMax 1000.00 +# FailureMin 0 +# FailureMax 1200.00 +# Invert false +# Persist false +# Instance "some_instance" +# +# +# +# DataSource "midterm" +# WarningMax 1 +# Hysteresis 0.3 +# +# +# +# Instance "user" +# WarningMax 85 +# Hits 6 +# +# +# +# Instance "eth0" +# +# DataSource "rx" +# FailureMax 10000000 +# +# +# +# +# +# Instance "idle" +# FailureMin 10 +# +# +# +# +# Instance "cached" +# WarningMin 100000000 +# +# +# +# +