mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
update collectd
This commit is contained in:
14
collectd/data/collectd.conf
Normal file
14
collectd/data/collectd.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
Hostname "localhost"
|
||||
|
||||
FQDNLookup false
|
||||
Interval 10
|
||||
Timeout 2
|
||||
ReadThreads 5
|
||||
WriteThreads 5
|
||||
|
||||
LoadPlugin cpu
|
||||
LoadPlugin interface
|
||||
LoadPlugin load
|
||||
LoadPlugin memory
|
||||
|
||||
Include "/etc/collectd/conf.d/*.conf"
|
||||
34
collectd/data/conf.d/filters.conf
Normal file
34
collectd/data/conf.d/filters.conf
Normal file
@@ -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>
|
||||
|
||||
17
collectd/data/conf.d/graphite.conf
Normal file
17
collectd/data/conf.d/graphite.conf
Normal file
@@ -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>
|
||||
6
collectd/data/conf.d/network.conf
Normal file
6
collectd/data/conf.d/network.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
LoadPlugin network
|
||||
|
||||
<Plugin "network">
|
||||
Listen "0.0.0.0" "25826"
|
||||
Server "influxdb" "25826"
|
||||
</Plugin>
|
||||
6
collectd/data/conf.d/ping.conf
Normal file
6
collectd/data/conf.d/ping.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
LoadPlugin ping
|
||||
|
||||
<Plugin ping>
|
||||
Host "httpbin.org"
|
||||
Host "ifconfig.co"
|
||||
</Plugin>
|
||||
51
collectd/data/conf.d/thresholds.conf
Normal file
51
collectd/data/conf.d/thresholds.conf
Normal file
@@ -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>
|
||||
|
||||
22
collectd/data/conf.d/weather.conf
Normal file
22
collectd/data/conf.d/weather.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
LoadPlugin curl_json
|
||||
|
||||
<Plugin curl_json>
|
||||
<URL "https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%3D2151330%20and%20u%3D'c'&format=json">
|
||||
Instance "Beijing"
|
||||
<Key "query/results/channel/item/condition/temp">
|
||||
Type "gauge"
|
||||
</Key>
|
||||
</URL>
|
||||
<URL "https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%3D2151849%20and%20u%3D'c'&format=json">
|
||||
Instance "Shanghai"
|
||||
<Key "query/results/channel/item/condition/temp">
|
||||
Type "gauge"
|
||||
</Key>
|
||||
</URL>
|
||||
<URL "https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%3D23511745%20and%20u%3D'c'&format=json">
|
||||
Instance "Silicon_Valley"
|
||||
<Key "query/results/channel/item/condition/temp">
|
||||
Type "gauge"
|
||||
</Key>
|
||||
</URL>
|
||||
</Plugin>
|
||||
Reference in New Issue
Block a user