Giter VIP home page Giter VIP logo

gollector's Introduction

Gollector

Gollector is a metrics collector that emits JSON responses, which can be consumed by monitoring systems such as Circonus. The flexibility of the JSON responses leads to many monitoring possibilities, such as the included 'gstat', which is an n-host iostat-alike for all metrics gollector is collecting.

Gollector was birthed by Triggit and still maintained regularly. It is in production on hundreds of machines as of this writing.

Here's a graph generated in Circonus from data provided by Gollector:

An Example

Most of the built-in collectors are linux-only for now, and probably the future unless pull requests happen. Many plugins very likely require a 3.0 or later kernel release due to dependence on system structs and other deep voodoo.

Gollector does not need to be run as root to collect its metrics. For things that need root, or work with additional data sources (such as data stores), check out the sister project Gollector Monitors.

Gollector also now supports Graphite! make gollector-graphite or just make will build the program, which bridges the two services. Please see the tool's usage information (no arguments) for assistance using this feature.

Unlike other collectors that use fat tools like netstat and df which can take expensive resources on loaded systems, Gollector opts to use the C interfaces directly when it can. This allows it to keep a very small footprint; with the go runtime, it clocks in just above 5M resident and unnoticeable CPU usage at the time of writing. The agent can sustain over 8000qps with a benchmarking tool like wrk, so it will be plenty fine getting hit once per minute, or even once per second.

Docker Example

The pre-programmed metrics in the docker image come from test.json in this repository.

docker pull erikh/gollector
docker run -i -t erikh/gollector:latest
# wait a few seconds for it to start. the process will block.
# to get the metrics
curl http://gollector:gollector@`docker port $(docker ps | grep gollector | awk '{ print $1 }') 8000`

If you're having trouble parsing the metrics with your eyes, piping to jq . (jq is here) can give you a nice, colored, pretty printed version.

Quick Start from Source

In the gollector directory on a Linux machine with kernel 3.0 or better:

$ make
$ ./gollector generate > gollector.json
$ ./gollector gollector.json &
$ ./gstat -hosts localhost -metric "load_average"

Should yield an array of floats that contain your current load average.

$ curl http://gollector:gollector@localhost:8000/

Will yield a json object of all current metrics.

Wiki

Our wiki contains tons of information on advanced configuration, usage, and even tools you can use with Gollector. Check it out!

License

  • MIT (C) 2013 Erik Hollensbe

gollector's People

Contributors

erikh avatar petergoldstein avatar

Watchers

 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.