DataDog/goshe

Name: goshe

Owner: Datadog, Inc.

Description: Sends metrics to Datadog for items that don't have agent integrations.

Forked from: darron/goshe

Created: 2017-10-13 21:09:35.0

Updated: 2017-10-13 21:09:37.0

Pushed: 2016-06-23 04:56:55.0

Homepage:

Size: 68

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

goshe

wercker status

Replacement for some old Ruby scripts that send stats to Datadog. Works with Apache, dnsmasq, ping (afternoon hack) and general memory stats.

apache
on@: bin/goshe apache -h
 stats from Apache2 processes - and mod_status - and sends to Datadog.

e:
she apache [flags]

s:
, --memory uint   Smallest Apache memory size to log. (default 10485760)

al Flags:
, --interval int     Interval when running in a loop. (default 5)
  --prefix string    Metric prefix. (default "goshe")
, --process string   Process name to match.
  --verbose          log output to stdout
dnsmasq
on@: bin/goshe dnsmasq -h
 stats from dnsmasq logs and send to Datadog.

e:
she dnsmasq [flags]

s:
  --full         Use full --log-queries logs.
  --log string   dnsmasq log file. (default "/var/log/dnsmasq/dnsmasq")

al Flags:
  --prefix string    Metric prefix. (default "goshe")
  --verbose          log output to stdout
ping
on@: bin/goshe ping -h
 an address and send stats to Datadog. Need to be root to use.

e:
she ping [flags]

s:
, --endpoint string   Endpoint to ping. (default "www.google.com")

al Flags:
, --interval int     Interval when running in a loop. (default 5)
  --prefix string    Metric prefix. (default "goshe")
  --verbose          log output to stdout
match
on@: bin/goshe match -h
 memory stats from matching processes and sends to Datadog.

e:
she match [flags]

al Flags:
, --interval int     Interval when running in a loop. (default 5)
  --prefix string    Metric prefix. (default "goshe")
, --process string   Process name to match.
  --verbose          log output to stdout
tail
on@: bin/goshe tail -h
 logs, match lines and send metrics to Datadog.

e:
she tail [flags]

s:
  --log string      File to tail.
  --match string    Match this regex.
  --metric string   Send this metric name.
  --tag string      Add this tag to the metric.

al Flags:
  --prefix string    Metric prefix. (default "goshe")
  --verbose          log output to stdout

These are much faster and use significantly less memory than the old Ruby versions.

Plus - they run from a single binary that doesn't require a Ruby runtime.

wercker status


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.