Coder Social home page Coder Social logo

cabify / goshe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darron/goshe

0.0 9.0 0.0 68 KB

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

License: Apache License 2.0

Makefile 2.40% Ruby 1.66% Go 65.59% Shell 0.55% HTML 29.80%

goshe's Introduction

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

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

Usage:
  goshe apache [flags]

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

Global Flags:
  -i, --interval int     Interval when running in a loop. (default 5)
      --prefix string    Metric prefix. (default "goshe")
  -p, --process string   Process name to match.
      --verbose          log output to stdout

dnsmasq

darron@: bin/goshe dnsmasq -h
Grab stats from dnsmasq logs and send to Datadog.

Usage:
  goshe dnsmasq [flags]

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

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

ping

darron@: bin/goshe ping -h
Ping an address and send stats to Datadog. Need to be root to use.

Usage:
  goshe ping [flags]

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

Global Flags:
  -i, --interval int     Interval when running in a loop. (default 5)
      --prefix string    Metric prefix. (default "goshe")
      --verbose          log output to stdout

match

darron@: bin/goshe match -h
Grab memory stats from matching processes and sends to Datadog.

Usage:
  goshe match [flags]

Global Flags:
  -i, --interval int     Interval when running in a loop. (default 5)
      --prefix string    Metric prefix. (default "goshe")
  -p, --process string   Process name to match.
      --verbose          log output to stdout

tail

darron@: bin/goshe tail -h
Tail logs, match lines and send metrics to Datadog.

Usage:
  goshe tail [flags]

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

Global 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

goshe's People

Contributors

darron avatar

Watchers

 avatar James Cloos avatar Manuel Albarran avatar Daniele Valeriani avatar Borja Fernández avatar  avatar  avatar Roberto Perez avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.