This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,182 additions
and
0 deletions.
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
collectd-graphite-memcached-single-server/collectd.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
Hostname "{{ HOST_NAME }}" | ||
|
||
FQDNLookup false | ||
Interval {{ COLLECT_INTERVAL | default("10") }} | ||
Timeout 2 | ||
ReadThreads 5 | ||
|
||
LoadPlugin cpu | ||
LoadPlugin df | ||
LoadPlugin load | ||
LoadPlugin memory | ||
LoadPlugin disk | ||
LoadPlugin interface | ||
LoadPlugin uptime | ||
LoadPlugin swap | ||
LoadPlugin write_graphite | ||
LoadPlugin processes | ||
LoadPlugin aggregation | ||
LoadPlugin match_regex | ||
LoadPlugin memcached | ||
|
||
<Plugin "memcached"> | ||
Host "127.0.0.1" | ||
Port "11211" | ||
</Plugin> | ||
|
||
<Plugin df> | ||
# expose host's mounts into container using -v /:/host:ro (location inside container does not matter much) | ||
# ignore rootfs; else, the root file-system would appear twice, causing | ||
# one of the updates to fail and spam the log | ||
FSType rootfs | ||
# ignore the usual virtual / temporary file-systems | ||
FSType sysfs | ||
FSType proc | ||
FSType devtmpfs | ||
FSType devpts | ||
FSType tmpfs | ||
FSType fusectl | ||
FSType cgroup | ||
FSType overlay | ||
FSType debugfs | ||
FSType pstore | ||
FSType securityfs | ||
FSType hugetlbfs | ||
FSType squashfs | ||
FSType mqueue | ||
MountPoint "/etc/resolv.conf" | ||
MountPoint "/etc/hostname" | ||
MountPoint "/etc/hosts" | ||
IgnoreSelected true | ||
ReportByDevice false | ||
ReportReserved true | ||
ReportInodes true | ||
ValuesAbsolute true | ||
ValuesPercentage true | ||
ReportInodes true | ||
</Plugin> | ||
|
||
<Plugin "disk"> | ||
Disk "/^[hs]d[a-z]/" | ||
IgnoreSelected false | ||
</Plugin> | ||
|
||
<Plugin "aggregation"> | ||
<Aggregation> | ||
Plugin "cpu" | ||
Type "cpu" | ||
GroupBy "Host" | ||
GroupBy "TypeInstance" | ||
CalculateAverage true | ||
</Aggregation> | ||
</Plugin> | ||
|
||
<Plugin interface> | ||
Interface "lo" | ||
Interface "/^veth.*/" | ||
Interface "/^docker.*/" | ||
IgnoreSelected true | ||
</Plugin> | ||
|
||
<Chain "PostCache"> | ||
<Rule> | ||
<Match regex> | ||
Plugin "^cpu$" | ||
PluginInstance "^[0-9]+$" | ||
</Match> | ||
<Target write> | ||
Plugin "aggregation" | ||
</Target> | ||
Target stop | ||
</Rule> | ||
Target "write" | ||
</Chain> | ||
|
||
<Plugin "write_graphite"> | ||
<Carbon> | ||
Host "{{ GRAPHITE_HOST }}" | ||
Port "{{ GRAPHITE_PORT | default("2003") }}" | ||
Prefix "{{ GRAPHITE_PREFIX | default("collectd.") }}" | ||
EscapeCharacter "_" | ||
SeparateInstances true | ||
StoreRates true | ||
AlwaysAppendDS false | ||
</Carbon> | ||
</Plugin> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 KB
collectd-graphite-memcached-single-server/memcached_full_dashboard_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.