Skip to content

Instantly share code, notes, and snippets.

@adam-hert
Last active December 19, 2017 21:05
Show Gist options
  • Save adam-hert/9222082642d164381d9c11c74e836ec1 to your computer and use it in GitHub Desktop.
Save adam-hert/9222082642d164381d9c11c74e836ec1 to your computer and use it in GitHub Desktop.
Collectd.conf for AppOptics
Interval 60
Hostname steve
LoadPlugin syslog
LoadPlugin cpu
LoadPlugin disk
LoadPlugin load
LoadPlugin memory
LoadPlugin df
LoadPlugin write_http
#Log collectd events in syslog
<Plugin syslog>
LogLevel "info"
</Plugin>
#Librato configuration
<Plugin "write_http">
<Node "AppOptics">
URL "https://collectd.librato.com/v1/measurements"
User "your_AppOptics_api_key"
Password ""
Format "JSON"
</Node>
</Plugin>
#Report aggregated CPU as % (not per core)
<Plugin cpu>
ReportByCpu false
ReportByState false
ValuesPercentage true
</Plugin>
#Report disk-free in percent bytes (not of 1k blocks)
<Plugin df>
ValuesAbsolute true
ValuesPercentage true
</Plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment