GithubHelp home page GithubHelp logo

tachyon-meter's Introduction

kstat generator

To build

cd kstat
make

Running ./kstat.sh in the kstat directory which runs ./kstat -x url stat [stat....]

Testing is easy just use -p instead of -x url

./kstat -p 'sd:::writes' 1 1

Protocol a packet is preceeded by its length (int) the packet contains, starting at time field

description | time | name | module | class | instance | ks_name | value |
types       | t    | s    | s      | s     | i        | s       | [isd] | d - double, i - int
length      | 8    | var  | var    | var   | 4        | var     | var   |
data        | 123  | sd   |        |       | 0        |         |       |

Notes The original source is from the illuminos distro of OpenSolaris illumos-joyent/usr/src/uts/common/io/kstat.c

Added -x flag that takes one parameter

around line kstat.c:923

//...
	} else if (g_nflg) {
		ks_print_fn = &ks_instance_print_nsq;
		tm_curl_set_url(tachyon_url);
	} else {
//...

The new function ks_instance_print_nsq formats statistics and passes them via curl to the url passed in. The server at the other end should be nsq.

tachyon-meter's People

Contributors

licenser 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.