Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

(Minimal) Diamond in Docker

Minimal Diamond fork that writes a small set of metrics to Librato.

docker run -name your-diamond-collector \
-e DIAMOND_HOSTNAME=unique-hostname \
-e NGINX_COLLECTOR_ENABLED=True \
-e NGINX_HOST=baz.foo.com \
-e HTTPD_COLLECTOR_ENABLED=True \
-e HTTPD_URLS="baz http:\/\/baz:8080\/server-status?auto, foo http:\/\/foo:8080\/server-status?auto" \
-e LIBRATO_API_KEY=yourkeyhere \
-v /proc:/host_proc:ro \
topicusonderwijs/diamond

Collectors and their output

cpu

Total cpu usage and iowait (for all cores).

  • <code>cpu.percent</code>
  • <code>cpu.total.iowait</code>

httpd

Reads the apache httpd status page.

  • <code>httpd.IdleWorkers</code>
  • <code>httpd.ReqPerSec</code>

diskusage

Reports <code>iops</code> for <code>/dev/vda9</code> or <code>/dev/xvda1</code> (one of these two must be in place)

  • <code>iostat.disk.iops</code>

load

1 minute load.

  • <code>loadavg.load</code>

memory

Calculate the actual free memory (free + buffered + cached).

  • <code>memory.MemActualFree</code>
  • <code>memory.MemTotal</code>
  • <code>memory.SwapFree</code>

nginx

Reads the nginx_status page.

  • <code>nginx.active_connections</code>
  • <code>nginx.act_waits</code>

ping

Check for a working outgoiing connection to Google's DNS.

  • <code>ping.8_8_8_8</code>
Docker Pull Command
Owner
topicusonderwijs
Source Repository