Code Monkey home page Code Monkey logo

inspect's Introduction

inspect is a collection of operating system/application monitoring analysis libraries and utilities with an emphasis on problem detection.

Installation

  1. get go
  2. go get -u -v github.com/square/inspect/...

The above commands should install three binaries in your original $GOPATH/bin directory.

  1. inspect
  2. inspect-mysql (work in progress)
  3. inspect-postgres (work in progress)

Please see subdirectories for more detailed documentation

Glossary

  • cmd - Directory for command line programs based on the below libraries

  • os - Operating system metric measurement libraries used by inspect.
  • mysql - MySQL metric reporting libraries.
  • postgres - Postgres metric reporting libraries.
  • metrics/metricscheck - Simple metrics libraries for golang.

Development

Development setup is a bit tricky given interaction of godep/gopath:

  • Create a fork
  • Setup golang workspace and set GOPATH Reference
    • export GOPATH=$HOME/godev # example
    • mkdir -p $GOPATH/{src,bin,pkg}
  • Setup project
    • mkdir -p $GOPATH/src/github.com/square
    • cd $GOPATH/src/github.com/square
    • git clone [email protected]:CHANGE-ME/inspect.git # change path to your fork
    • cd inspect
  • Setup a reference to upstream to sync changes with upstream easily etc
    • git remote add upstream github.com/square/inspect.git
[s@pain inspect (master)]$ git remote -v
origin	[email protected]:syamp/inspect.git (fetch)
origin	[email protected]:syamp/inspect.git (push)
upstream	github.com/square/inspect.git (fetch)
upstream	github.com/square/inspect.git (push)
  • We use godep for vendoring and dependency management. We rewrite import paths. If you are adding a new dependency or updating one, please run

    1. godep save -r
  • Please format, test and lint before submitting PRs

    1. go fmt ./...
    2. go test ./...
    3. $GOPATH/bin/golint ./...

Todo

  • metriccheck uses some darkmagic and uses golang/x/tools APIs which tend to break API compat often. Need to fix it.

inspect's People

Contributors

achow avatar arrozalewis avatar brianip avatar bwester avatar daniel-nichter avatar eslocombe avatar felixp-square avatar jcesario avatar jeeyoungk avatar jsoref avatar lewisj-square avatar mcpherrinm avatar michaelfinch avatar nerdrew avatar postster avatar rjchee avatar spenceral avatar sqcesario avatar syamp 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.